Summary: | :placeholder-shown pseudo-class: cannot change value of color property. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Philippe Wittenbergh <phiw2> | ||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED WORKSFORME | ||||||
Severity: | Normal | CC: | 50167214, benjamin, bfulgham | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
I think this is not a bug. See: https://github.com/Fyrd/caniuse/issues/2150#issuecomment-165012958 I think this is not a bug. See: https://github.com/Fyrd/caniuse/issues/2150#issuecomment-165012958 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. |
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