You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSS selectors like the following are not getting included in the generated critical css file: :where(), :has(), :not(), :host(), :root() and possibly others.
Reproduction steps
I have the following files: index.html, styles.css, and the script used to run penthouse testing.js.
Running the penthouse with node testing.js produces outfile.css with nothing.
index.html:
<!DOCTYPE html><html><head><title>:where() Selector Example</title><linkrel="stylesheet" href="styles.css"></head><body><h1>This is a heading</h1><p>This is a paragraph</p><ul><li>List item 1</li><li>List item 2</li></ul><h2>Another heading</h2><p>Another paragraph</p></body></html>
Description
CSS selectors like the following are not getting included in the generated critical css file:
:where()
,:has()
,:not()
,:host()
,:root()
and possibly others.Reproduction steps
I have the following files:
index.html
,styles.css
, and the script used to run penthousetesting.js
.Running the penthouse with
node testing.js
producesoutfile.css
with nothing.index.html
:styles.css
The js script used to run penthouse:
testing.js
Question
Should these selectors be included in the generated critical CSS file If they are above the fold?
The text was updated successfully, but these errors were encountered: