ladybird/Tests/LibWeb/Text/input/css/parse-nested-pseudo-selectors-as-selectors.html

17 lines
410 B
HTML
Raw Normal View History

<!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>