mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 07:32:52 +00:00
While updating the parser to the latest spec algorithms, this started parsing incorrectly as a declaration, and we had no tests covering it.
16 lines
410 B
HTML
16 lines
410 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
@media all {
|
|
div:is(#target) {
|
|
color: rgb(0, 128, 0);
|
|
}
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<div id="target">This text should look green</div>
|
|
<script>
|
|
test(() => {
|
|
let target = document.getElementById("target");
|
|
println(`Color is: "${getComputedStyle(target).color}", should be "rgb(0, 128, 0)"`);
|
|
});
|
|
</script>
|