User Agent stylesheet default opacity for placeholder text
Categories
(Core :: Layout: Form Controls, enhancement)
Tracking
()
People
(Reporter: karlcow, Unassigned)
References
Details
(Whiteboard: [webcompat:p2][needs-wpt-?])
User Story
Would be good for GeckoView.
Attachments
(1 file)
This will be used to track the webcompat issues related to the differences of default opacity in between Gecko and WebKit/Blink. Firefox: 0.54 WebKit/Blink: 1 * The CSS WG agreed that User Agent Stylesheets should be tested. https://github.com/w3c/web-platform-tests/issues/5625 * Someone at Google thinks it would be good to define what it should for interop https://github.com/whatwg/html/issues/2561#issuecomment-296130295
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Would be good to fix this issue interop for GeckoView.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•5 years ago
|
||
See bug 1547409. Migrating webcompat priority whiteboard tags to project flags.
Comment 4•5 years ago
|
||
There does not seem to have been any progress on this despite the WG agreeing that it should be done. As such we still need web platform tests here.
Reporter | ||
Comment 5•4 years ago
|
||
Comment 6•3 years ago
|
||
In Gecko:
Perhaps use ::placeholder { opacity: 1.0; color: color-mix(in srgb, currentColor 54%, transparent); }
or use ::placeholder { opacity: 1.0; color: rgb(from currentColor, r g b / 54%); }
once css-color-5 Relative RGB colors are supported.
And possibly alias ::-webkit-input-placeholder to ::placeholder
In Blink:
Create dark color-scheme
::-webkit-input-placeholder { color: -internal-light-dark() }
and use that until one of the two methods above.
Comment hidden (off-topic) |
Comment 8•2 years ago
|
||
Sorry, there was a problem with the detection of inactive users. I'm reverting the change.
Comment 9•2 years ago
|
||
Actually, Karl isn't with Mozilla anymore, so we might we as well unassign the bug for now.
Updated•2 years ago
|
Comment 12•1 month ago
|
||
Doing something like the color-mix in comment 6 seems reasonable to me, fwiw.
Comment 13•13 days ago
|
||
Moving the still-reproducible webcompat links to bugs dependent on our knowledge base bug for this issue, bug 1847183.
Description
•