зеркало из https://github.com/mozilla/pjs.git
Bug 416013 - switching the text input direction should not affect emptytext. r=ehsan,gavin
This commit is contained in:
Родитель
977938f51e
Коммит
9a764eeb13
|
@ -205,6 +205,10 @@
|
|||
this.boxObject.removeProperty("value");
|
||||
}
|
||||
|
||||
// Bindings that extend this one wouldn't inherit the
|
||||
// chromedir attribute if it would only be set in <content>.
|
||||
this.setAttribute("chromedir", "]]>&locale.dir;<![CDATA[");
|
||||
|
||||
this._updateVisibleText();
|
||||
this._setNewlineHandling();
|
||||
]]></constructor>
|
||||
|
|
|
@ -658,6 +658,18 @@ html|*.textbox-textarea {
|
|||
text-shadow: inherit;
|
||||
}
|
||||
|
||||
textbox[empty="true"] html|*.textbox-input ,
|
||||
textbox[empty="true"] html|*.textbox-textarea {
|
||||
text-align: left;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
textbox[empty="true"][chromedir="rtl"] html|*.textbox-input ,
|
||||
textbox[empty="true"][chromedir="rtl"] html|*.textbox-textarea {
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
textbox[empty="true"] html|*.textbox-input[emptytextdelay="true"] ,
|
||||
textbox[empty="true"] html|*.textbox-textarea[emptytextdelay="true"] {
|
||||
color: transparent !important;
|
||||
|
|
Загрузка…
Ссылка в новой задаче