Re: [csswg-drafts] [css-mediaqueries] Should prefers-color-scheme in iframes be context-dependent? (#7493)

The CSS Working Group just discussed `prefers-color-scheme and iframes`, and agreed to the following:

* `RESOLVED: Context-dependent color scheme propagation works for iframes (including cross-origin) unless specifically restricted`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Subtopic: prefers-color-scheme and iframes<br>
&lt;bramus> @florian I will keep on tweaking … had already done so a bit<br>
&lt;TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/7493<br>
&lt;fantasai> astearns: Should prefers-color-scheme in iframes be context-dependent?<br>
&lt;fantasai> TabAtkins: yes<br>
&lt;fantasai> TabAtkins: proposed resolution is that we propagate used color scheme to embedded documents, regardless of cross-origin status, by default<br>
&lt;florian> s/@florian I will keep on tweaking … had already done so a bit//<br>
&lt;fantasai> emilio: not used color scheme exactly, like before<br>
&lt;fantasai> TabAtkins: however we define propagation, we do the same for iframes<br>
&lt;fantasai> dholbert: Is there a term for the actually used color scheme?<br>
&lt;fantasai> TabAtkins: the actually rendered one is the "used color scheme"<br>
&lt;fantasai> emilio: but that's not what we want to propagate<br>
&lt;TabAtkins> TabAtkins: not quite in all cases - see preivou sissue<br>
&lt;fantasai> emilio: in the case of a page that doesn't specify a color scheme, we *use* light, but the preference is context-dependent and could be dark<br>
&lt;fantasai> astearns: So the thing we resolved on in the last issue, happens in all embedding contexts<br>
&lt;fantasai> TabAtkins: unless otherwise specified<br>
&lt;fantasai> TabAtkins: there are some embedding context we will restrict this<br>
&lt;fantasai> astearns: objections?<br>
&lt;fantasai> RESOLVED: Context-dependent color scheme propagation works for iframes (including cross-origin) unless specifically restricted<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7493#issuecomment-1201691078 using your GitHub account


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

Received on Monday, 1 August 2022 20:32:48 UTC