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
> light.dark.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
> 
> PS: this assumes `prefers-color-scheme` is/will be a document level setting... e.g. not a browser-wide/system-wide setting

should this be per-origin? 

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


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

Received on Friday, 10 June 2022 10:52:35 UTC