Bug 813550 - Location bar's placeholder in an RTL chrome should be aligned on the right. r=ehsan a=nonlibxul

This commit is contained in:
Dão Gottwald 2013-01-22 00:13:04 +01:00
parent d8d65c38c2
commit e7a08c52ce
2 changed files with 6 additions and 7 deletions

View File

@ -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;

View File

@ -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;
}