Closed
Bug 1900488
Opened 1 year ago
Closed 1 year ago
Setting color-scheme: light on iframe disables prefers-color-scheme media query in the framed document
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: timdream, Unassigned)
References
()
Details
(Keywords: parity-chrome, parity-safari)
STR:
Open test case:
data:text/html,<iframe style="color-scheme:light" src="data:text/html,<style>@media (prefers-color-scheme: dark) { body { background: rebeccapurple } }</style>">
Expected:
The iframe doc background color should be purple.
Actual:
The iframe doc background color is transparent.
Note:
The test case expands to
<iframe style="color-scheme:light" src="frame.html">
and in frame.html:
<style>
@media (prefers-color-scheme: dark) {
body {
background: rebeccapurple
}
}
</style>
Both Chrome and Safari shows purple background in this case.
Comment 1•1 year ago
|
||
This is a bug in Chrome and Safari, see https://github.com/w3c/csswg-drafts/issues/7493
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•