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:
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:
Steps to Reproduce
See my codepen: https://codepen.io/dyc3/pen/ZEVbZbE