Bug 1371995 - Use the browser UI direction to set the fade-out direction for the New Tab string in tab titles; r=mconley
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 12 Jun 2017 11:20:29 -0400
changeset 363513 be5745a13ea4f94a5cdc1f354be22bb6de7bea8d
parent 363512 76fcf40c564b9bbd945d15bada25f04babe9730a
child 363514 095c2cf82e414ebe9603151bd2bf29a9adfd4379
push id32018
push userkwierso@gmail.com
push dateTue, 13 Jun 2017 00:03:05 +0000
treeherdermozilla-central@2a3a253806d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1371995
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1371995 - Use the browser UI direction to set the fade-out direction for the New Tab string in tab titles; r=mconley
browser/base/content/tabbrowser.css
--- a/browser/base/content/tabbrowser.css
+++ b/browser/base/content/tabbrowser.css
@@ -46,22 +46,24 @@
 .tab-label-container {
   overflow: hidden;
 }
 
 .tab-label-container[pinned] {
   width: 0;
 }
 
-.tab-label-container[textoverflow][dir=ltr]:not([pinned]) {
+.tab-label-container[textoverflow][dir=ltr]:not([pinned]),
+.tab-label-container[textoverflow]:not([dir]):not([pinned]):-moz-locale-dir(ltr) {
   direction: ltr;
   mask-image: linear-gradient(to left, transparent, black 2em);
 }
 
-.tab-label-container[textoverflow][dir=rtl]:not([pinned]) {
+.tab-label-container[textoverflow][dir=rtl]:not([pinned]),
+.tab-label-container[textoverflow]:not([dir]):not([pinned]):-moz-locale-dir(rtl) {
   direction: rtl;
   mask-image: linear-gradient(to right, transparent, black 2em);
 }
 
 .tab-stack {
   vertical-align: top; /* for pinned tabs */
 }