Bug 1340206 - Force compositing layer to avoid blurry RTL URL bar. r=Gijs draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 24 Feb 2017 19:10:33 -0600
changeset 489561 480a52c6395337f2e6ad25524f3a6ce742266d89
parent 489279 6f2117c0b9895dfeb06fa74d2dc91bff660386ce
child 547035 d86bbb1789a69faede83cb798a164576e67fdfac
push id46857
push userbmo:jryans@gmail.com
push dateSat, 25 Feb 2017 01:13:21 +0000
reviewersGijs
bugs1340206
milestone54.0a1
Bug 1340206 - Force compositing layer to avoid blurry RTL URL bar. r=Gijs With Compact Themes and RTL locales, the URL bar becomes blurry on hover. This seems to be triggered by the combination: ``` transform: scaleX(-1); clip-path: none; ``` By forcing a compositing layer, the blurry issue goes away. MozReview-Commit-ID: KKQt6h6VzT7
browser/themes/shared/compacttheme.inc.css
--- a/browser/themes/shared/compacttheme.inc.css
+++ b/browser/themes/shared/compacttheme.inc.css
@@ -207,16 +207,21 @@ toolbar[brighttext] #downloads-indicator
 }
 
 window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
   overflow: -moz-hidden-unscrollable;
   clip-path: none;
   margin-inline-start: 0;
 }
 
+window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl) {
+  /* Resolves text blurring issue when hovering, see bug 1340206 */
+  will-change: transform;
+}
+
 #urlbar-zoom-button:-moz-lwtheme-brighttext:hover {
   background-color: rgba(255,255,255,.2);
 }
 
 #urlbar-zoom-button:-moz-lwtheme-brighttext:hover:active {
   background-color: rgba(255,255,255,.3);
 }