Skip to content

Commit

Permalink
Fix to Chrome inheritance bug (#22872) (#23118)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
prateekgoel authored and mdo committed Aug 11, 2017
1 parent ffa7893 commit 7b66aeb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
// 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
Expand All @@ -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; }
Expand Down

0 comments on commit 7b66aeb

Please sign in to comment.