Skip to content

iframe CSS is applied to the snapdom wrapper. #372

@wesbos

Description

@wesbos

When rendering an iframes iframe.contentDocument.documentElement, any inline CSS can be applied to the wrapper.

For example, we have the css of div { 10px solid red; }, which is applied to the wrapper div you inset into the SVG element.

I think if we apply CSS all: unset; to that div, it will fix it. But I can't seem to find out how to target that div or inject that CSS?

Demo: (click the Capture Document Element) https://codepen.io/wesbos/pen/qENpKPp

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions