LibWeb: Don't crash on CSS all: revert

Not every value in a StyleProperties will be non-null by the time we
perform `revert`, so let's make a specialized function for reverting a
property instead of using the path that requires the value to be
non-null.
This commit is contained in:
Andreas Kling 2024-08-04 10:08:28 +02:00 committed by Andreas Kling
commit a10610a1ca
Notes: github-actions[bot] 2024-08-04 09:50:34 +00:00
5 changed files with 19 additions and 7 deletions

View file

@ -0,0 +1,9 @@
<style>
div { all: revert; }
</style>
<script src="../include.js"></script>
<script>
test(() => {
println("PASS (didn't crash)");
});
</script>