Skip to content

Allow :modal pseudo-class #496

@foxbunny

Description

@foxbunny

🙋 feature request

Support the :modal pseudo-class in @parcel/transformer-css.

🤔 Expected Behavior

When using :modal pseudo-class in CSS, no warnings or error should be emitted.

😯 Current Behavior

The following warning is emitted:

@parcel/transformer-css: Unsupported pseudo class or element: modal

💁 Possible Solution

🔦 Context

I'm using the :modal pseudo to style a dialog element as per the MDN documentation. The warning is a bit distracting as it looks like there's something wrong with the code.

Currently I can work around this using the [open] attribute selector, and it's not a big deal, but would be nice if :modal worked without issues.

💻 Examples

dialog:modal {
  // Styles when dialog is opened as a modal
}

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