Closed Bug 918977 Opened 11 years ago Closed 11 years ago

remove invalid "dialog" css rules from TB themes

Categories

(Thunderbird :: Theme, defect)

All
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 27.0

People

(Reporter: aceman, Assigned: jsbruner)

Details

Attachments

(1 file, 1 obsolete file)

These CSS rules are found in Thunderbird theme files:
linux/mail/accountCreation.css:  background-color: dialog;
osx/mail/compose/messengercompose.css:  -moz-appearance: dialog;
osx/mail/compose/messengercompose.css:  -moz-appearance: dialog;

These are supposedly invalid per:
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#System_Colors
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance

Maybe they just need update to the proper '*dialog*' keyword.
Until then, they are causing a CSS warning output in the Error console. E.g. the first one can be seen when entering New mail account wizard.
Attached patch Fix. (obsolete) — Splinter Review
Done. :)
Assignee: nobody → josiah
Status: NEW → ASSIGNED
Attachment #807955 - Flags: review?(richard.marti)
There is no "-moz-dialog" value on the -moz-appearance page...
Comment on attachment 807955 [details] [diff] [review]
Fix.

(In reply to :aceman from comment #2)
> There is no "-moz-dialog" value on the -moz-appearance page...

Correct, I cancelled the review request waiting for a new patch.

I tried removing both -moz-appearance and saw no difference. Josiah, please can you test this without the -moz-appearance and make a new patch?
Attachment #807955 - Flags: review?(richard.marti)
Attached patch FixSplinter Review
So although the -moz prefix apparently silences the error when used with -moz-appearance, it doesn't do anything.

Turns out we do need the styling though, so I switched to background-color: -moz-dialog there as well.
Attachment #807955 - Attachment is obsolete: true
Attachment #808002 - Flags: review?(richard.marti)
Comment on attachment 808002 [details] [diff] [review]
Fix

Review of attachment 808002 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.

Thank you, Josiah.
Attachment #808002 - Flags: review?(richard.marti) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/ec19b2b1da85
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 27.0
JFTR (and you can't rely on official documentation here):

1) "moz-dialog" is a color: see for example http://mxr.mozilla.org/mozilla-central/source/widget/cocoa/nsLookAndFeel.mm#222

2) -moz-appearance: dialog is valid. But it's just a background anyway. See http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSProps.cpp#596 and http://mxr.mozilla.org/mozilla-central/source/widget/cocoa/nsNativeThemeCocoa.mm#2004 (I don't think it works on windows, though)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: