Bug 150021

Summary: :placeholder-shown pseudo-class: cannot change value of color property.
Product: WebKit Reporter: Philippe Wittenbergh <phiw2>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: 50167214, benjamin, bfulgham
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase none

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.