3 ms·
Very true! Nonetheless this approach would also break compatibility with `color-scheme`'s custom identifiers, which is just bad in general for CSS even for thes
by jjcm 3y ago
Very true! Nonetheless this approach would also break compatibility with `color-scheme`'s custom identifiers, which is just bad in general for CSS even for these small projects. The alternative proposal I put together here would allow this to scale and still provide a helper function for small projects to use: https://github.com/w3c/csswg-drafts/issues/7561#issuecomment-1754069460 https://github.com/w3c/csswg-drafts/issues/7561#issuecomment...
- wldcordeiro 3y agoI appreciate that you not only have a nuanced critique but an alternative proposal as well.
- stevage 3y agoI do like your alternative proposal. For the viewers at home: :root { color-scheme: light dark high-contrast; } body { background: scheme(light #eee, dark #333, high-contrast #fff); }