Closed
Bug 477113
Opened 17 years ago
Closed 16 years ago
Investigate RTL text-align changes throughout the theme because of bug 299837
Categories
(Toolkit :: Themes, defect)
Toolkit
Themes
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a4
People
(Reporter: ehsan.akhgari, Assigned: dao)
References
()
Details
(Keywords: rtl)
Attachments
(2 files)
|
8.93 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
|
9.46 KB,
patch
|
Details | Diff | Splinter Review |
Bug 299837 implements "text-align: end", and also fixes the meaning of "left" and "right" for the text-align CSS rule in RTL mode. This may have some subtle effects on the themes for different platforms, so I'll do this investigation in this bug and attach a patch as needed.
Comment 1•17 years ago
|
||
To be precise, the meaning of "text-align: right" is only affected for:
<xul:treecol>
<xul:label>
and the meaning of "text-align: left" is only affected for <xul:label>.
| Reporter | ||
Comment 2•17 years ago
|
||
Here are the relevant rules, patch forthcoming.
<http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/winstripe/global/menulist.css#162>
<http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/pinstripe/global/menulist.css#144>
<http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/gnomestripe/global/menulist.css#142>
<http://mxr.mozilla.org/mozilla-central/source/browser/themes/pinstripe/browser/places/organizer.css#631>
<http://mxr.mozilla.org/mozilla-central/source/browser/themes/pinstripe/browser/browser.css#1386>
| Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> patch forthcoming.
hm? :)
| Assignee | ||
Comment 4•16 years ago
|
||
Assignee: ehsan.akhgari → dao
Attachment #432520 -
Flags: review?(ehsan.akhgari)
| Assignee | ||
Updated•16 years ago
|
Component: Theme → Themes
Product: Firefox → Toolkit
QA Contact: theme → themes
| Assignee | ||
Comment 5•16 years ago
|
||
Comment on attachment 432520 [details] [diff] [review]
patch
>--- a/toolkit/themes/pinstripe/global/datetimepicker.css
>+++ b/toolkit/themes/pinstripe/global/datetimepicker.css
>@@ -60,21 +60,17 @@ datepicker, timepicker {
> color: -moz-FieldText;
> }
>
> .datetimepicker-input-subbox {
> width: 1.6em;
> }
>
> html|*.datetimepicker-input {
>- text-align: right;
>-}
>-
>-html|*.datetimepicker-input:-moz-locale-dir(rtl) {
>- text-align: left;
>+ text-align: end;
> }
I wonder whether this should always be right...
| Reporter | ||
Comment 6•16 years ago
|
||
Comment on attachment 432520 [details] [diff] [review]
patch
Thanks for picking up my slack!
(In reply to comment #5)
> (From update of attachment 432520 [details] [diff] [review])
> >--- a/toolkit/themes/pinstripe/global/datetimepicker.css
> >+++ b/toolkit/themes/pinstripe/global/datetimepicker.css
> >@@ -60,21 +60,17 @@ datepicker, timepicker {
> > color: -moz-FieldText;
> > }
> >
> > .datetimepicker-input-subbox {
> > width: 1.6em;
> > }
> >
> > html|*.datetimepicker-input {
> >- text-align: right;
> >-}
> >-
> >-html|*.datetimepicker-input:-moz-locale-dir(rtl) {
> >- text-align: left;
> >+ text-align: end;
> > }
>
> I wonder whether this should always be right...
No, it should be left in RTL mode, and actually this patch makes things work, because :-moz-locale-dir is not supported for HTML elements!
(I trust that removal of plugins.css is OK, it seemed to be pointing to empty-file right now.)
Attachment #432520 -
Flags: review?(ehsan.akhgari) → review+
| Reporter | ||
Comment 8•16 years ago
|
||
(In reply to comment #7)
> Created an attachment (id=432605) [details]
> what I'm going to land
>
> Fixed winstripe's datetimepicker.css too, based on comment 6.
Seems good!
| Assignee | ||
Comment 9•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.3a4
You need to log in
before you can comment on or make changes to this bug.
Description
•