Bug 813550 - Location bar's placeholder in an RTL chrome should be aligned on the right. r=ehsan a=nonlibxul
authorDão Gottwald <dao@mozilla.com>
Tue, 22 Jan 2013 00:13:04 +0100
changeset 119447 3bc030b6ee8fdcdd567a9382e66b6c8aa1ae35d0
parent 119446 358793835d8b3f0acf81641b786ce941ba9c4c87
child 119448 539e033ad1d69082e48b3830bb14e145a2ede0e3
push id24204
push usereakhgari@mozilla.com
push dateTue, 22 Jan 2013 17:50:00 +0000
treeherdermozilla-central@8962a7fabc33 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, nonlibxul
bugs813550
milestone21.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 813550 - Location bar's placeholder in an RTL chrome should be aligned on the right. r=ehsan a=nonlibxul
browser/base/content/browser.css
layout/style/forms.css
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -216,18 +216,16 @@ splitmenu {
   display: none;
 }
 
 /* ::::: location bar ::::: */
 #urlbar {
   -moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar);
 }
 
-.uri-element-right-align:-moz-locale-dir(rtl),
-html|input.uri-element-right-align:-moz-locale-dir(rtl),
 .ac-url-text:-moz-locale-dir(rtl),
 .ac-title:-moz-locale-dir(rtl) > description {
   direction: ltr !important;
 }
 
 /* For results that are actions, their description text is shown instead of
    the URL - this needs to follow the locale's direction, unlike URLs. */
 panel:not([noactions]) > richlistbox > richlistitem[type~="action"]:-moz-locale-dir(rtl) > .ac-url-box {
--- a/layout/style/forms.css
+++ b/layout/style/forms.css
@@ -71,25 +71,26 @@ input {
 
 input > .anonymous-div,
 input::-moz-placeholder {
   word-wrap: normal !important;
   /* Make the line-height equal to the available height */
   line-height: -moz-block-height;
 }
 
-/* Make sure that the location bar's alignment in RTL mode changes according
-   to the input box direction if the user switches the text direction using
-   cmd_switchTextDirection (which applies a dir attribute to the input box's
-   anonymous div. */
 @-moz-document url-prefix(chrome://) {
-  input.uri-element-right-align:-moz-locale-dir(rtl) > .anonymous-div {
+  input.uri-element-right-align:-moz-locale-dir(rtl) {
+    direction: ltr !important;
     text-align: right !important;
   }
 
+  /* Make sure that the location bar's alignment in RTL mode changes according
+     to the input box direction if the user switches the text direction using
+     cmd_switchTextDirection (which applies a dir attribute to the input box's
+     anonymous div). */
   input.uri-element-right-align:-moz-locale-dir(rtl) > .anonymous-div[dir=ltr] {
     text-align: left !important;
   }
 }
 
 textarea {
   margin: 1px 0 1px 0;
   border: 2px inset ThreeDFace;