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

imho it should behave the same as the DevTools switch... 
e.g. everyone gets the change by default

see example
Codepen (https://codepen.io/daKmoR/pen/KKQoQjj?editors=0100) + video

https://user-images.githubusercontent.com/24378/171123032-b0cdff1c-cedb-4d8c-93ea-51dcd77bda1c.mp4

But the iframe content can do as it needs e.g. it could
- do nothing (then it will just get the parent's context)
- manually sync to parent context selection
- manually override

In any case, if the frame adds code to change the `prefers-color-scheme` then it becomes responsible for its value and it can decide when/how/why to sync or not

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


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

Received on Tuesday, 31 May 2022 08:08:56 UTC