1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +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:
Shannon Booth 2023-12-10 22:06:55 +13:00 committed by Alexander Kalenik
parent 83758d4cdd
commit ed97946975
9 changed files with 76 additions and 6 deletions

View file

@ -0,0 +1,12 @@
<!doctype html>
<link rel="match" href="reference/text-div.html" />
<style>
* {
visibility: visible;
}
.d-none,
.oops::-webkit-jkl() {
visibility: hidden;
}
</style>
<div class="d-none">Well, hello friends!</div>