Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player iframe background is not transparent when the parent document has a different color-scheme #950

Closed
dyc3 opened this issue Aug 26, 2023 · 0 comments

Comments

@dyc3
Copy link

dyc3 commented Aug 26, 2023

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:

html {
    color-scheme: light dark;
}

These may be useful:

Steps to Reproduce

See my codepen: https://codepen.io/dyc3/pen/ZEVbZbE

@vimeo vimeo locked and limited conversation to collaborators Apr 3, 2024
@bdougherty bdougherty converted this issue into discussion #1020 Apr 3, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant