Skip to content

:defined CSS pseudo class does not work on shadow DOM elements #7988

@billyvg

Description

@billyvg

The CSS pseudo class :defined is not being applied to shadow DOM elements.

As an example if you use web components and have the following CSS:

:not(:defined) {
opacity: 0;
}

The web components will have opacity: 0 because they are not in the CustomElementsRegistry.

Metadata

Metadata

Assignees

Labels

Package: replayIssues related to the Sentry Replay SDK
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions