Bug 150021 - :placeholder-shown pseudo-class: cannot change value of color property.
Summary: :placeholder-shown pseudo-class: cannot change value of color property.
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 18:30 PDT by Philippe Wittenbergh
Modified: 2022-07-14 15:06 PDT (History)
3 users (show)

See Also:


Attachments
testcase (910 bytes, text/html)
2015-10-11 18:30 PDT, Philippe Wittenbergh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Wittenbergh 2015-10-11 18:30:37 PDT
Created attachment 262874 [details]
testcase

Specifying the `color` property has no effect when specified with the :placeholder-shown pseudo-class.

In the test case, the first input element should show the text in yellow. Instead the default light grey is rendered. Strangely (?) the WebKit inspector tells that the computed value is indeed yellow.
The second input uses the prefixed pseudo-element, that works fine.

Safari 9, OS X 10.11 and 10.10
Nightly on OS X10.10
Comment 1 yisibl 2015-12-15 22:23:33 PST
I think this is not a bug. See: https://github.com/Fyrd/caniuse/issues/2150#issuecomment-165012958
Comment 2 yisibl 2015-12-15 22:24:10 PST
I think this is not a bug. See: https://github.com/Fyrd/caniuse/issues/2150#issuecomment-165012958
Comment 3 Brent Fulgham 2022-07-14 15:06:25 PDT
Safari and Chrome behave the same, and indeed it seems like the WG believes this behavior is correct.

Firefox works the way the author expected.