mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 14:44:58 +00:00

As outlined in: https://www.w3.org/TR/selectors-4/#compat We now do not treat unknown webkit pseudo-elements as invalid at parse time, and also support serializing these elements. Fixes: #21959
14 lines
372 B
HTML
14 lines
372 B
HTML
<!DOCTYPE html><style type="text/css">
|
|
.d-none,
|
|
.oops::-webkit-asDF {
|
|
display: none !important;
|
|
}
|
|
</style><div class="d-none">should not be displayed</div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let rules = document.styleSheets[0].cssRules;
|
|
let rule = rules.item(0);
|
|
println(rule.selectorText);
|
|
});
|
|
</script>
|