Bug 21299 - REGRESSION: <input> color specified in inline style applies to placeholder (affects MobileMe)
: REGRESSION: <input> color specified in inline style applies to placeholder (a...
Status: RESOLVED FIXED
: WebKit
Forms
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P1 Major
Assigned To:
: http://me.com/
: Regression
:
:
  Show dependency treegraph
 
Reported: 2008-10-02 00:02 PST by
Modified: 2008-10-02 17:30 PST (History)


Attachments
patch (20.97 KB, patch)
2008-10-02 17:02 PST, Adele Peterson
mitz: review+
Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-10-02 00:02:58 PST
An <input>'s inline style declaration overrides the -webkit-input-placeholder-mode pseudo-class declaration, causing the placeholder text to have the color specified in inline style.

For example, <input style="color: black;" placeholder="holding"> will show "holding" in black instead of dark gray.
------- Comment #1 From 2008-10-02 11:21:22 PST -------
I'll switch to using a pseudo element. bah.
------- Comment #2 From 2008-10-02 17:02:37 PST -------
Created an attachment (id=24034) [details]
patch
------- Comment #3 From 2008-10-02 17:17:08 PST -------
(From update of attachment 24034 [details])
r=me!
------- Comment #4 From 2008-10-02 17:30:27 PST -------
Committed revision 37217