Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Error when using :where - subselects_1.subselects[name] #90

Closed
wSedlacek opened this issue Dec 7, 2021 · 3 comments · Fixed by #93
Closed

Error when using :where - subselects_1.subselects[name] #90

wSedlacek opened this issue Dec 7, 2021 · 3 comments · Fixed by #93

Comments

@wSedlacek
Copy link

When using the :where selector with critters@0.0.14 as part of @angular-devkit/build-angular@13.0.4 like in the following selector:

/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
*:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

I get the following warning in my console

Warning: 1 rules skipped due to selector errors:
  *:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) -> subselects_1.subselects[name] is not a function

And the selector does not get inlined.

@wSedlacek
Copy link
Author

Recreation:
https://stackblitz.com/edit/node-yfjhw4?file=index.ts
npm run start

@developit developit added the bug Something isn't working label Dec 7, 2021
@developit
Copy link
Collaborator

This is fixed by fb55/css-select#582, which was merged on Oct 15th but has not yet been released.

@jeripeierSBB
Copy link
Contributor

The fix of css-select was published with version 4.2.0 https://github.com/fb55/css-select/releases/tag/v4.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants