mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
If a & simple selector is on a style rule with no parent style rule, then it behaves like :scope - but notably, :scope provides 1 specificity in the class category, but & is supposed to provide 0. To solve this, we stop replacing it directly, and just handle the & like any other simple selector. We know that if the selector engine ever sees one, it's equivalent to :scope, because the nested ones will have been replaced with :is() before that point. This gets us one more subtest pass. :^)
11 lines
137 B
Plaintext
11 lines
137 B
Plaintext
Summary
|
|
|
|
Harness status: OK
|
|
|
|
Rerun
|
|
|
|
Found 1 tests
|
|
|
|
1 Pass
|
|
Details
|
|
Result Test Name MessagePass CSS Nesting: Specificity of top-level '&' |