Skip to content

Commit

Permalink
add support for :is
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Nov 4, 2023
1 parent 40e73fc commit 973d88b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/cli/src/plugins/resource/plugin-standard-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function bundleCss(body, url, projectDirectory) {

switch (name) {

case 'is':
case 'has':
case 'lang':
case 'not':
Expand Down Expand Up @@ -154,6 +155,7 @@ function bundleCss(body, url, projectDirectory) {
case 'PseudoClassSelector':
switch (node.name) {

case 'is':
case 'has':
case 'lang':
case 'not':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ a[href*='greenwood'],a[href$='.pdf']{color:orange}

@font-feature-values Font One{@styleset {nice-style:12}}

h1:has(+h2){margin:0 0 0.25rem 0}
h1:has(+h2){margin:0 0 0.25rem 0}

:is(ol,ul,menu:unsupported) :is(ol,ul){color:green}
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,8 @@ a[href*="greenwood"], a[href$=".pdf"] {

h1:has(+ h2) {
margin: 0 0 0.25rem 0;
}

:is(ol, ul, menu:unsupported) :is(ol, ul) {
color: green;
}

0 comments on commit 973d88b

Please sign in to comment.