Skip to content

Add support for :has() #1126

@nex3

Description

@nex3

As of 19 February, the CSS working group has decided to move away from ! and towards :has() for indicating subject selectors. Sass should support this.

Based on the discussion linked above, it looks like the syntax will be E:has(F), where F can be any arbitrary selector, including one starting with a combinator (e.g. E:has(> F)).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions