pascalduez / postcss-quantity-queries

PostCSS plugin enabling quantity-queries
The Unlicense
114 stars 4 forks source link

Error when used inside :has() #22

Open WebMechanic opened 1 year ago

WebMechanic commented 1 year ago

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.