fune/testing/web-platform/tests/css/css-nesting/pseudo-where-crash.html
Emilio Cobos Álvarez 7fc8fb8c60 Bug 1878579 - Don't assert stateless pseudo-element selector shape. r=dshin
With nesting it might not hold. It still doesn't change the correctness
of that code tho. We might need to rework this a bit more in the future
to handle specificity properly, see linked spec issue.

But for now crashing is not useful at all.

Differential Revision: https://phabricator.services.mozilla.com/D204304
2024-03-12 19:44:03 +00:00

9 lines
116 B
HTML

<!DOCTYPE html>
<style>
.foo {
::before:where(&) {
color: red;
}
}
</style>
<div class=foo></div>