Bug 971124 - workaround for backgound-attachment: fixed jitter r=sfoster
authorRodrigo Silveira <rsilveira@mozilla.com>
Wed, 12 Feb 2014 11:36:49 -0800
changeset 168868 2c154d398ab2503e1470d7a0862996427902028e
parent 168867 113b3bb5ba8c8c316b248dddf5c6b0176f7d175f
child 168869 080f388799bbc149c7b9e714f3c696611d8afb1a
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerssfoster
bugs971124
milestone30.0a1
Bug 971124 - workaround for backgound-attachment: fixed jitter r=sfoster
browser/metro/theme/platform.css
browser/metro/theme/start.css
--- a/browser/metro/theme/platform.css
+++ b/browser/metro/theme/platform.css
@@ -635,22 +635,16 @@ tabmodalprompt:not([promptType="promptUs
     min-width: @touch_action_snapped_minwidth@;
   }
 }
 
 /*.meta -------------------------------------------------------------------- */
 
 .meta {
   background-color: @panel_light_color@;
-  /* bug 969354
-  background-image: url("chrome://browser/skin/images/firefox-watermark.png");
-  background-repeat: no-repeat;
-  background-position: center center;
-  background-attachment: fixed;
-  */
 }
 
 /* needs to observe the viewstate */
 .meta-section-container {
   padding: 45px 75px 0;
   -moz-box-orient: horizontal;
 }
 
--- a/browser/metro/theme/start.css
+++ b/browser/metro/theme/start.css
@@ -33,8 +33,24 @@
   width: 100%;
   max-width: 100%; /* ensure page doesn't expand, messing up @media rules */
   height: auto;
 }
 
 #start-container[viewstate="snapped"] .meta-section:not([expanded]) > richgrid {
   visibility: collapse;
 }
+
+/* Watermark */
+#startui-body::after {
+  content: '';
+  width: 256px;
+  height: 256px;
+  position: fixed;
+  left: 50%;
+  top: 50%;
+  margin-top: -128px;
+  margin-left: -128px;
+  z-index: -1;
+  background-image: url("chrome://browser/skin/images/firefox-watermark.png");
+  background-repeat: no-repeat;
+  background-position: center center;
+}