]> cat aescling's git repositories - mastodon.git/commitdiff
Fix "contains" CSS for Chromium <57 (#3317)
authorNolan Lawson <nolan@nolanlawson.com>
Thu, 25 May 2017 19:14:56 +0000 (12:14 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 25 May 2017 19:14:56 +0000 (21:14 +0200)
Fixes #3277. I've tested in QupZilla on Mac and can confirm it fixes the issue, and that Chrome 58 is not affected (because it has Grid).

app/javascript/styles/components.scss

index 2a4c9dffeba8d94a878c93801c6f1a02dab330de..91f7b8057ce8043edc1983e323feb01b2cd8ec57 100644 (file)
 .drawer {
   flex: 1 1 100%;
   overflow: hidden;
-  contain: strict;
+  @supports(display: grid) { // hack to fix Chrome <57
+    contain: strict;
+  }
 }
 
 @media screen and (min-width: 360px) {
   flex: 1 1 auto;
   backface-visibility: hidden;
   -webkit-overflow-scrolling: touch;
-  contain: strict;
+  @supports(display: grid) { // hack to fix Chrome <57
+    contain: strict;
+  }
 
   &.optionally-scrollable {
     overflow-y: auto;
@@ -2250,7 +2254,9 @@ button.icon-button.active i.fa-retweet {
   flex: 1 1 auto;
   align-items: center;
   justify-content: center;
-  contain: strict;
+  @supports(display: grid) { // hack to fix Chrome <57
+    contain: strict;
+  }
 
   a {
     color: $ui-highlight-color;