Kevin Powell - CommunityKP-C
Kevin Powell - Community11mo ago
15 replies
rctneil

Vanilla nested CSS query

Hi all,

I wonder if anyone can help me figure out why the following CSS will not work?

::part(form-control-label) {
.filter-bar & {
color: yellow;
}
}

but this CSS does:

::part(form-control-label) {
color: yellow;
}

As far as I know, the nested selector (&) is allowed to be used this way so I expect it to work.

Any suggestions?
Was this page helpful?