Re: [csswg-drafts] [mediaqueries-5] How does script control of preferences work with forced color schemes? (#11575)

IUC `light only` was to instruct the UA to not try and automagically create a dark theme _(Chrome had this [as an experiment](https://developer.chrome.com/blog/auto-dark-theme/) once, but the feature (thankfully) got pulled)_.

If the website/author indicates `light only` through the meta tag then I would kinda assume that:
 
- The author stylesheet contains no dark styles, so overriding it to `dark` would have no effect
- Overriding the value to `light` has no effect, as it has the same outcome as `light only`
- The `light only` in the meta tag would be a hint for the UA to indicate that an override will have no effect
- Overrides that don’t line up with the `x` in `x only` have no effect. E.g. overriding to `dark` when the meta tag is set to `light only` would have no effect

So my expectation would be for the `requestOverride` to throw in this case, because the page has indicated it doesn’t support any of that.

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


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

Received on Tuesday, 21 October 2025 13:02:32 UTC