Bug 240925
| Summary: | System colors do not always respect inherited color-scheme values | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Shannon Moeller <me> |
| Component: | CSS | Assignee: | Aditya Keerthi <akeerthi> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | akeerthi, cdumez, me, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 12 | ||
Shannon Moeller
Unfocused form fields (at least input and select) don't respect the current `color-scheme` property value when selecting the default background color; it instead uses the system-defined value. For example, if the system is in dark mode and a form field exists in a container that has set `color-scheme: light;`, the form field incorrectly has a dark background in addition to dark text. The correct background color is used when the field receives focus, but reverts to the incorrect value when blurred again.
https://twitter.com/shannonmoeller/status/1528801195963256833
https://codepen.io/shannonmoeller/full/dyJOedj
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/94247591>
Aditya Keerthi
Pull request: https://github.com/WebKit/WebKit/pull/2706
EWS
Committed 253041@main (ae8a3909d325): <https://commits.webkit.org/253041@main>
Reviewed commits have been landed. Closing PR #2706 and removing active labels.