Bug 979653 - Fix dir attribute checks for url field in rtl mode. r=ehsan, a=sledru
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 08 Apr 2014 22:47:39 +0100
changeset 183691 44a94313968a
parent 183690 2d58340206f4
child 183692 635f912b3164
push id3447
push userryanvm@gmail.com
push date2014-04-09 18:07 +0000
Treeherderresults
reviewersehsan, sledru
bugs979653
milestone29.0
Bug 979653 - Fix dir attribute checks for url field in rtl mode. r=ehsan, a=sledru
layout/style/forms.css
--- a/layout/style/forms.css
+++ b/layout/style/forms.css
@@ -82,19 +82,18 @@ input::-moz-placeholder {
 @-moz-document url-prefix(chrome://) {
   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] {
+     cmd_switchTextDirection (which applies a dir attribute to the <input>). */
+  input.uri-element-right-align[dir=ltr]:-moz-locale-dir(rtl) {
     text-align: left !important;
   }
 }
 
 textarea {
   margin: 1px 0 1px 0;
   border: 2px inset ThreeDFace;
   /* The 1px horizontal padding is for parity with Win/IE */