We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18271b9 commit 0e0f832Copy full SHA for 0e0f832
lib/parse/preprocess.js
@@ -192,11 +192,12 @@ function preParseCompoundSelector(node) {
192
&& !isColon(next)
193
&& findContext('function', node, node =>
194
pseudos.logical[node.definition.name]
195
- // ::part(name):not(type) must be valid (but match nothing)
196
- && node.input.prev(1, 1)?.name?.toLowerCase() !== 'part'
197
&& findParent(
198
node,
199
- node => node.definition.name === '<pseudo-compound-selector>',
+ node =>
+ node.parent?.definition.name === '<pseudo-compound-selector>'
+ // ::part(name):not(type) must be valid (but match nothing)
200
+ && node.children[0].value[1][1].name !== 'part',
201
node => node.definition.name === '<subclass-selector>'))
202
) {
203
return error(node)
0 commit comments