Skip to content

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

Closed
getsentry/rrweb
#87

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.

Activity

  1. mydea commented on Apr 28, 2023

    @mydea
    Member

    Hmm, should we move this issue to our rrweb fork, maybe? WDYT?

  2. billyvg commented on Apr 28, 2023

    @billyvg
    MemberAuthor

    @mydea I wanted to add it here for visibility since users would end up in this repo

  3. self-assigned this
    on May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions