player iframe background is not transparent when the parent document has a different color-scheme
#1020
dyc3
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior
The iframe background should always be transparent.
Actual Behavior
In browsers, whenever the root document has a
color-scheme
that is different from the embedded document, the background of the embedded document will become forcibly opaque.From my research, it might be possible to have the iframe inherit the color scheme of the parent if the child iframe has this style:
These may be useful:
color-scheme
should affect embedded iframes w3c/csswg-drafts#4772Steps to Reproduce
See my codepen: https://codepen.io/dyc3/pen/ZEVbZbE
Beta Was this translation helpful? Give feedback.
All reactions