mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
While updating the parser to the latest spec algorithms, this started parsing incorrectly as a declaration, and we had no tests covering it. (cherry picked from commit 9241f37823f227ae94461a494c6f7ab4b6cd0e4e)
17 lines
410 B
HTML
17 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>
|