mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Remove now unnecessary -ms-viewport and -ms-overflow-style directives (#27789)
Edge/Mobile appears to have moved support for `-ms-viewport` behind a flag at some point, instead supporting meta viewport directives. Removing this altogether also fixes issues in IE11 on high-dpi displays - see https://github.com/twbs/bootstrap/issues/21780
This commit is contained in:
parent
180a06eeb7
commit
f3fc973dd9
@ -14,9 +14,7 @@
|
|||||||
// 2. Change the default font family in all browsers.
|
// 2. Change the default font family in all browsers.
|
||||||
// 3. Correct the line height in all browsers.
|
// 3. Correct the line height in all browsers.
|
||||||
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
|
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
|
||||||
// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so
|
// 5. Change the default tap highlight to be completely transparent in iOS.
|
||||||
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
|
|
||||||
// 6. Change the default tap highlight to be completely transparent in iOS.
|
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
@ -28,15 +26,7 @@ html {
|
|||||||
font-family: sans-serif; // 2
|
font-family: sans-serif; // 2
|
||||||
line-height: 1.15; // 3
|
line-height: 1.15; // 3
|
||||||
-webkit-text-size-adjust: 100%; // 4
|
-webkit-text-size-adjust: 100%; // 4
|
||||||
-ms-overflow-style: scrollbar; // 5
|
-webkit-tap-highlight-color: rgba($black, 0); // 5
|
||||||
-webkit-tap-highlight-color: rgba($black, 0); // 6
|
|
||||||
}
|
|
||||||
|
|
||||||
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
|
||||||
@at-root {
|
|
||||||
@-ms-viewport {
|
|
||||||
width: device-width;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
||||||
@ -240,9 +230,6 @@ pre {
|
|||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
// Don't allow content to break outside
|
// Don't allow content to break outside
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
// We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so
|
|
||||||
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
|
|
||||||
-ms-overflow-style: scrollbar;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
4
scss/bootstrap-grid.scss
vendored
4
scss/bootstrap-grid.scss
vendored
@ -5,10 +5,6 @@
|
|||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@at-root {
|
|
||||||
@-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-ms-overflow-style: scrollbar;
|
-ms-overflow-style: scrollbar;
|
||||||
|
@ -48,16 +48,6 @@
|
|||||||
origin: >
|
origin: >
|
||||||
Bootstrap#18504
|
Bootstrap#18504
|
||||||
|
|
||||||
-
|
|
||||||
browser: >
|
|
||||||
Edge
|
|
||||||
summary: >
|
|
||||||
`@-ms-viewport{width: device-width;}` has side-effect of making scrollbars auto-hide
|
|
||||||
upstream_bug: >
|
|
||||||
Edge#7165383
|
|
||||||
origin: >
|
|
||||||
Bootstrap#18543
|
|
||||||
|
|
||||||
-
|
-
|
||||||
browser: >
|
browser: >
|
||||||
Edge
|
Edge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user