Open Bug 548626 Opened 15 years ago Updated 2 years ago

Placeholder attribute text should be italicized on Windows Vista and 7

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 7
defect

Tracking

()

People

(Reporter: faaborg, Unassigned)

Details

(Keywords: polish, Whiteboard: [polish-visual][polish-p3])

Attachments

(1 file)

Spin off bug from bug 457800, the self describing text in the search field should be italicized to match the native appearance of self describing fields in Windows Vista and 7.
Whiteboard: [polish-easy] [polish-visual][polish-p3]
I think an easy way of doing this would be using :-moz-system-metric(windows-default-theme) and :-moz-system-metric(windows-classic).
Wouldn't that trigger on Luna on XP though? Not sure how search-box changes the style for Vista and 7.
Attached patch Patch v0.1Splinter Review
This patch may fix the bug. I have to test on Windows XP/Vista/7 to be sure it behaves correctly. At least, it behaves correctly on GNU/Linux ;)
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Comment on attachment 429596 [details] [diff] [review] Patch v0.1 This is going to affect XP.
(In reply to comment #4) > (From update of attachment 429596 [details] [diff] [review]) > This is going to affect XP. Hmm, yes, that's right. Dao, do we have any way to style html.css level things per platform?
Just noticed the summary that is for Windows only but the bug is assigned to OS X... So if this is Windows only, the platform have to be changed right?
OS: Mac OS X → Windows 7
Keywords: polish
Whiteboard: [polish-easy] [polish-visual][polish-p3] → [polish-visual][polish-p3]
Perhaps we need :-moz-system-metric(windows-5.0), :-moz-system-metric(windows-6.0) and :-moz-system-metric(windows-6.1) selectors? Would that be a good solution? (5.0 is XP, 6.0 is Vista and 6.1 is Windows 7, based on the official version numbers. We could also consider creating selectors for other OS's and their versions in the same way, if we do this for Windows.)
I'm not really knowledgeable in this domain but probably adding :-moz-system-metric(windows-aero) would be enough ? We can even imagine this selector may be able to know if we are using XP or Aero theme on Windows.
We can just do this for chrome in toolkit/themes/winstripe/ once we have the placeholder pseudo class/element selector. I don't think placeholder text needs to be italicized by default for web content.
>I don't think placeholder text needs to be italicized by default for web content. That's the purpose of the bug, external consistency with the OS.
Assignee: mounir → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: