Re: [csswg-drafts] [css-color-adjust-1] `color-scheme` should affect embedded iframes (#4772)

If we introduce this on the root element instead of the canvas you would also have the question of whether it should be solid white, instead of transparent, for the light color-scheme. That would not be web-compatible.

You have the same issue, without color-scheme, embedding an unstyled document in a top document with a black background:

```
<!doctype html>
<body style="background:black;color:white">
<p>Do you see the iframe text?</p>
<iframe src="data:text/html,iframe text"></iframe>
```

If the root element got a solid dark background here, and you wanted a transparent iframe with a dark color-scheme, you would have to explicitly set the background to transparent, which is the opposite of how iframes normally work.

My take is that we should resolve this issue with no change.


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

Received on Thursday, 20 February 2020 07:48:06 UTC