[Webkit-unassigned] [Bug 243665] New: CSS `color-scheme` can't be assigned via CSS variable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 8 05:45:32 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=243665
Bug ID: 243665
Summary: CSS `color-scheme` can't be assigned via CSS variable
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tomac at google.com
Created attachment 461482
--> https://bugs.webkit.org/attachment.cgi?id=461482&action=review
Correct behavior in Chrome
It's impossible in Safari to make the following CSS work:
```css
:root {
--color-scheme: dark light;
color-scheme: var(--color-scheme);
}
```
Go to https://aboard-bustling-bit.glitch.me/ in Safari and inspect the `<input>` with the value "Just a test". Note how the computed style for the `color-scheme` is always `auto`. Run the same test in Chrome and see how it reflects what is set via `var(--color-scheme)`.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220808/fddd2e4c/attachment-0001.htm>
More information about the webkit-unassigned
mailing list