]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix to Chrome inheritance bug (#22872) (#23118)
authorPrateek Goel <prateekgoel@users.noreply.github.com>
Fri, 11 Aug 2017 06:05:32 +0000 (07:05 +0100)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 06:05:32 +0000 (23:05 -0700)
* Fix to Chrome inheritance bug (#22872)

* Remove box-sizing from html

box-sizing removed from html and order of wild card selected and html selector swapped to maintain correctness of comments.

scss/_reboot.scss

index 9a6b025f6ef799e5975a69de37f100d8333a391f..e411e9215890818854f870c6e4414426a0acc295 100644 (file)
 //    we force a non-overlapping, non-auto-hiding scrollbar to counteract.
 // 6. Change the default tap highlight to be completely transparent in iOS.
 
-html {
+*,
+*::before,
+*::after {
   box-sizing: border-box; // 1
+}
+
+html {
   font-family: sans-serif; // 2
   line-height: 1.15; // 3
   -webkit-text-size-adjust: 100%; // 4
@@ -28,12 +33,6 @@ html {
   -webkit-tap-highlight-color: rgba(0,0,0,0); // 6
 }
 
-*,
-*::before,
-*::after {
-  box-sizing: inherit; // 1
-}
-
 // IE10+ doesn't honor `<meta name="viewport">` in some cases.
 @at-root {
   @-ms-viewport { width: device-width; }