Skip to content

[css-shadow-parts][css-nesting] is & allowed after ::part() #10788

@dbaron

Description

@dbaron

I don't think it's clear whether the & selector is allowed after the ::part() pseudo-element. At least, I read what I think are the relevant specs and I couldn't find any wording that gives me a clear answer.

For example, is the following CSS:

:hover {
  ::part(mypart)& {
    text-decoration: underline;
  }
}

equivalent to:

::part(mypart):hover {
  text-decoration: underline;
}

or is it invalid?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Friday afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions