mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Support obsolete but required -webkit- CSS parsing quirk
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
This commit is contained in:
parent
83758d4cdd
commit
ed97946975
9 changed files with 76 additions and 6 deletions
|
@ -0,0 +1,14 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue