Skip to content

[css-nesting-1] [selectors-4] Figure out the specificity of nesting with pseudos and non-pseudos #13108

@emilio

Description

@emilio

In #9702, we're defining that something like this works and selects the pseudo-element:

.foo, ::before, ::after {
  &:hover { color: red }
}

However, it's not currently defined what the specificity of a pseudo-element is.

This is usually not observable, but will become observable now, so we also need to define that.

See #9600 for a similar bug where we defined that those are zero

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