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

I guess that depends on the content of the iframe?

image the typical Wordpress theme "browser" where you have the next/previous theme buttons and some info about the theme store at the top and below that you have an iframe of the actual theme...
if such a theme comes with its own theme switcher then yes I would expect that iframe to be able to set its own preferred color scheme.

a weather widget will probably not come with its own light/dark mode switch... and even if it does it will hopefully not persist that setting (for example via localstorage)

but yes ultimately how to handle default values is in the hands of the implementer - IMHO rightfully so

-- 
GitHub Notification of comment by daKmoR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6517#issuecomment-1141427621 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:18:24 UTC