Skip to content

embed background is not transparent if color schemes don't match #1053

@raynecloudy

Description

@raynecloudy

i was working on a project that makes frequent use of turbowarp embeds. however, i quickly noticed something was not right. the embed background was white. i have allowtransparency enabled on the iframe.

Image

i've located the source of this issue, which is that there is a disconnect between the parent's color-scheme and the iframe's color-scheme. they have to be the same for the iframe to have a transparent background. i'm not sure if this is a fixable issue, but it's good to be aware of.

i talked about this with garbo and he found a workaround that works: adding style="color-scheme: light;" to the iframe element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions