Re: [csswg-drafts] [mediaqueries-5] Script control of (prefers-*) queries (#6517)

If I do `CSS.customMedia.set('prefers-color-scheme', 'dark');` will iframes on the page respond to `(prefers-color-scheme: dark)`? I would expect them to as you don't want all the page to be dark except a weather widget, and it's no different than a user changing the setting from the iframe's perspective.

But, conversely, I wouldn't expect an iframe to be able to override the containing document's preference.

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


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

Received on Monday, 30 May 2022 19:01:58 UTC