summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2012-01-22 22:42:49 (GMT)
committer Dries2012-01-22 22:42:49 (GMT)
commit89d83c6f1594aefdd939eca29ca992e2624ea1a4 (patch)
tree73fc4c47bba78c5a67e974f018f588c5444e2e13
parenteeed9ed8a640470003db4209a2a40b82ee49691a (diff)
- Patch #1217788 by droplet: drop IE7 support from Drupal 8.x.
-rw-r--r--core/misc/tableheader.js4
-rw-r--r--core/misc/vertical-tabs.css3
-rw-r--r--core/modules/book/book.theme-rtl.css3
-rw-r--r--core/modules/book/book.theme.css4
-rw-r--r--core/modules/overlay/overlay-parent.js38
-rw-r--r--core/modules/system/system.base.css5
-rw-r--r--core/themes/seven/ie.css6
-rw-r--r--core/themes/seven/ie7.css23
-rw-r--r--core/themes/seven/reset.css7
-rw-r--r--core/themes/seven/template.php2
10 files changed, 2 insertions, 93 deletions
diff --git a/core/misc/tableheader.js b/core/misc/tableheader.js
index 949ef52..63de30c 100644
--- a/core/misc/tableheader.js
+++ b/core/misc/tableheader.js
@@ -98,10 +98,6 @@ Drupal.tableHeader.prototype.eventhandlerRecalculateStickyHeader = function (eve
// Resize header and its cell widths.
this.stickyHeaderCells.each(function (index) {
var cellWidth = self.originalHeaderCells.eq(index).css('width');
- // Exception for IE7.
- if (cellWidth == 'auto') {
- cellWidth = self.originalHeaderCells.get(index).clientWidth + 'px';
- }
$(this).css('width', cellWidth);
});
this.stickyTable.css('width', this.originalTable.css('width'));
diff --git a/core/misc/vertical-tabs.css b/core/misc/vertical-tabs.css
index ad7a435..c946503 100644
--- a/core/misc/vertical-tabs.css
+++ b/core/misc/vertical-tabs.css
@@ -2,12 +2,10 @@
div.vertical-tabs {
margin: 1em 0 1em 15em; /* LTR */
border: 1px solid #ccc;
- position: relative; /* IE7 */
}
.vertical-tabs ul.vertical-tabs-list {
width: 15em;
list-style: none;
- list-style-image: none; /* IE7 */
border-top: 1px solid #ccc;
padding: 0;
margin: -1px 0 -1px -15em; /* LTR */
@@ -29,7 +27,6 @@ fieldset.vertical-tabs-pane > legend {
border-top: 0;
padding: 0;
margin: 0;
- min-width: 0; /* IE7 */
}
.vertical-tabs ul.vertical-tabs-list li a {
display: block;
diff --git a/core/modules/book/book.theme-rtl.css b/core/modules/book/book.theme-rtl.css
index 4a07b65..0fe891c 100644
--- a/core/modules/book/book.theme-rtl.css
+++ b/core/modules/book/book.theme-rtl.css
@@ -11,9 +11,6 @@
float: right;
text-align: right;
}
-.book-pager .up {
- *float: right;
-}
.book-pager .next {
float: left;
text-align: left;
diff --git a/core/modules/book/book.theme.css b/core/modules/book/book.theme.css
index 6af7731..9a807c8 100644
--- a/core/modules/book/book.theme.css
+++ b/core/modules/book/book.theme.css
@@ -18,12 +18,8 @@
}
.book-pager li {
display: inline-block;
- *display: inline;
- /* Prevents a line break caused by the float in .page-next in IE7. */
- *float: left; /* LTR */
list-style-type: none;
vertical-align: top;
- zoom: 1;
}
.book-pager .previous {
text-align: left; /* LTR */
diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js
index d1fc4ca..f2260b3 100644
--- a/core/modules/overlay/overlay-parent.js
+++ b/core/modules/overlay/overlay-parent.js
@@ -421,10 +421,7 @@ Drupal.overlay.eventhandlerAlterDisplacedElements = function (event) {
$(this.iframeWindow.document.body).css({
marginTop: Drupal.overlay.getDisplacement('top'),
marginBottom: Drupal.overlay.getDisplacement('bottom')
- })
- // IE7 isn't reflowing the document immediately.
- // @todo This might be fixed in a cleaner way.
- .addClass('overlay-trigger-reflow').removeClass('overlay-trigger-reflow');
+ });
var documentHeight = this.iframeWindow.document.body.clientHeight;
var documentWidth = this.iframeWindow.document.body.clientWidth;
@@ -873,18 +870,6 @@ Drupal.overlay.getDisplacement = function (region) {
* the entire page.
*/
Drupal.overlay.makeDocumentUntabbable = function (context) {
- // Manipulating tabindexes for the entire document is unacceptably slow in IE6
- // and IE7, so in those browsers, the underlying page will still be reachable
- // via the tab key. However, we still make the links within the Disable
- // message unreachable, because the same message also exists within the
- // child document. The duplicate copy in the underlying document is only for
- // assisting screen-reader users navigating the document with reading commands
- // that follow markup order rather than tab order.
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- $('#overlay-disable-message a', context).attr('tabindex', -1);
- return;
- }
-
context = context || document.body;
var $overlay, $tabbable, $hasTabindex;
@@ -920,31 +905,12 @@ Drupal.overlay.makeDocumentUntabbable = function (context) {
* the entire page.
*/
Drupal.overlay.makeDocumentTabbable = function (context) {
- // Manipulating tabindexes is unacceptably slow in IE6 and IE7. In those
- // browsers, the underlying page was never made unreachable via tab, so
- // there is no work to be done here.
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- return;
- }
-
var $needsTabindex;
context = context || document.body;
// Make the underlying document tabbable again by removing all existing
// tabindex attributes.
- var $tabindex = $('[tabindex]', context);
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- // removeAttr('tabindex') is broken in IE6-7, but the DOM function
- // removeAttribute works.
- var i;
- var length = $tabindex.length;
- for (i = 0; i < length; i++) {
- $tabindex[i].removeAttribute('tabIndex');
- }
- }
- else {
- $tabindex.removeAttr('tabindex');
- }
+ $('[tabindex]', context).removeAttr('tabindex');
// Restore the tabindex attributes that existed before the overlay was opened.
$needsTabindex = $(Drupal.overlay._hasTabindex, context);
diff --git a/core/modules/system/system.base.css b/core/modules/system/system.base.css
index 8519362..bca79ee 100644
--- a/core/modules/system/system.base.css
+++ b/core/modules/system/system.base.css
@@ -227,7 +227,6 @@ html.js .js-hide {
*/
.element-invisible {
position: absolute !important;
- clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
@@ -255,10 +254,6 @@ html.js .js-hide {
clear: both;
}
-.clearfix {
- zoom: 1; /* hasLayout trigger to clear floats in IE */
-}
-
/**
* Block-level HTML5 display definition.
*
diff --git a/core/themes/seven/ie.css b/core/themes/seven/ie.css
index 4b25695..d1a71ce 100644
--- a/core/themes/seven/ie.css
+++ b/core/themes/seven/ie.css
@@ -1,9 +1,3 @@
-
-/* IE7 renders legends in nested fieldsets without a width. */
-fieldset legend {
- height: 1%;
-}
-
/* IE renders absolute positioned legend where fieldset content starts. */
fieldset .fieldset-legend {
left: 0;
diff --git a/core/themes/seven/ie7.css b/core/themes/seven/ie7.css
deleted file mode 100644
index abcdb8a..0000000
--- a/core/themes/seven/ie7.css
+++ /dev/null
@@ -1,23 +0,0 @@
-
-ul.tabs.primary {
- padding: 0;
-}
-ul.primary li,
-ul.primary li a,
-ul.primary li.active a {
- float: none !important;
- display: inline;
-}
-ul.primary li,
-ul.primary li a,
-ul.primary li a.active,
-ul.primary li a:active,
-ul.primary li a:visited,
-ul.primary li a:hover,
-ul.primary li.active a {
- zoom: 1;
- position: relative;
-}
-ul.admin-list li {
- position: static;
-}
diff --git a/core/themes/seven/reset.css b/core/themes/seven/reset.css
index 306b1f9..de53f28 100644
--- a/core/themes/seven/reset.css
+++ b/core/themes/seven/reset.css
@@ -200,10 +200,3 @@ ul.inline:after {
display: none;
clear: none;
}
-/* IE7 */
-*:first-child + html .form-item,
-*:first-child + html ul.links,
-*:first-child + html div.admin-panel .body,
-*:first-child + html .clearfix {
- min-height: 1%;
-}
diff --git a/core/themes/seven/template.php b/core/themes/seven/template.php
index 9804d4d..145ad22 100644
--- a/core/themes/seven/template.php
+++ b/core/themes/seven/template.php
@@ -18,8 +18,6 @@ function seven_preprocess_maintenance_page(&$vars) {
function seven_preprocess_html(&$vars) {
// Add conditional CSS for IE8 and below.
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
- // Add conditional CSS for IE7 and below.
- drupal_add_css(path_to_theme() . '/ie7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
}
/**