Skip to content

Error when used inside :has() #22

Open
@WebMechanic

Description

@WebMechanic

Hello,
love this plugin!! and I'm glad it still works in PostCSS 8.

With :has() gaining more browser support I tried using it, but the Plugin bails with an error:

Cannot read properties of undefined (reading 'apply')
/* change list layout mode */
ul:has( li:exactly(2) ) {
  display: grid;
  grid-auto-flow: column;
}

Please also consider a proper migration to PostCSS 8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions