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:
parent
1cd77fd1b4
commit
c547bed13b
2 changed files with 54 additions and 34 deletions
|
@ -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)">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue