Re: [csswg-drafts] [mediaqueries] Effect of <meta name=color-scheme> on the (prefers-color-scheme) MQ (#10249)

> It's also worth mentioning the alternative for authors if `<meta name=color-scheme>` and the `color-scheme` property don't affect the `prefers-color-scheme` MQs.

You could [use a custom property and a style query](https://codepen.io/bramus/pen/mdZqGgW). Requires setting a custom prop on `*` though _([blanket mode](https://css-tricks.com/the-big-gotcha-with-custom-properties/#aa-solution-3-blanket-mode))_, to work around custom props getting computed before inheriting _(until we get style queries on regular props)_.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2289192793 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 14 August 2024 15:59:17 UTC