GoogleChromeLabs / critters

🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.

Home Page:https://npm.im/critters-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:focus-within sometimes gives an invalid selector warning

ip1981 opened this issue · comments

The pseudo-class :focus-within sometimes gives an invalid selector warning.

For example, this code .group:focus-within .group-focus\:block {...} produces:

  .group:focus-within .group-focus\ -> '.group:focus-within .group-focus\' is not a valid selector

I doubt that any class with :focus-within will ever be used in critical CSS, but those warnings create some noise. A workaround if to set logLevel to "error".

This issue probably causes #47.

On the other side, I am sure some simple selectors like foo::focus-within are accepted.