1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibWeb: Reorganize box-shadow parsing code

The pattern we've adopted for other multi-value properties is to run in
a loop like this, since that makes it easier to cater for values
appearing in different orders.
This commit is contained in:
Sam Atkins 2022-02-08 12:41:50 +00:00 committed by Andreas Kling
parent 1cd77fd1b4
commit c547bed13b
2 changed files with 54 additions and 34 deletions

View file

@ -21,8 +21,8 @@
<p>box-shadow: 20px 10px magenta</p>
</div>
<div class="box" style="box-shadow: -40px -20px magenta">
<p>box-shadow: -40px -20px magenta</p>
<div class="box" style="box-shadow: magenta -40px -20px">
<p>box-shadow: magenta -40px -20px</p>
</div>
<div class="box" style="box-shadow: 20px 10px rgba(255,0,255,0.5)">