[csswg-drafts] [mediaqueries-5] Preference override interaction with iframes (#11577)

lukewarlow has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] Preference override interaction with iframes ==
Need to work out the exact specifics with regards to iframes both same-origin and cross-origin.

Same-origin iframes should probably be updated with the parent frame's preference overrides but in an opaque manner.

e.g. if the parent frame sets colorScheme to dark then the iframe should see prefers-color-scheme as dark but shouldn't read navigator.preferences.colorScheme.value as dark.

Whereas, cross-origin iframes should maybe not be updated with the parent frame's preference overrides. This is an unfortunate limitation but is probably necessary to prevent new forms of data exfiltration.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11577 using your GitHub account


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

Received on Monday, 27 January 2025 13:40:07 UTC