From e7a08c52ce7188bc682aa07e0312ccfd76786d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Tue, 22 Jan 2013 00:13:04 +0100 Subject: [PATCH] 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 | 2 -- layout/style/forms.css | 11 ++++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css index 4f2f1d2744e..f14829d8f06 100644 --- a/browser/base/content/browser.css +++ b/browser/base/content/browser.css @@ -221,8 +221,6 @@ splitmenu { -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; diff --git a/layout/style/forms.css b/layout/style/forms.css index d5bc6462b1b..edd54cda420 100644 --- a/layout/style/forms.css +++ b/layout/style/forms.css @@ -76,15 +76,16 @@ input::-moz-placeholder { 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; }