mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
LibWeb: Create EdgeStyleValue for BackgroundPositionXY with no offset
When specifying either `background-position-x: right` or `background-position-y: bottom` without an offset value no EdgeStyleValue was created. However, the spec says the offset should be optional. Now, if you do not provide an offset, it creates the EdgeStyleValue with a default offset of 0 pixels.
This commit is contained in:
parent
016b31fae2
commit
3fd870a429
4 changed files with 28 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
<div class="example" style="background-position-x: 25%"></div>
|
||||
<div class="example" style="background-position-x: 2rem"></div>
|
||||
<div class="example" style="background-position-x: right 32px"></div>
|
||||
<div class="example" style="background-position-x: right"></div>
|
||||
<br>
|
||||
<br>
|
||||
<b>background-position-y</b><br>
|
||||
|
@ -23,3 +24,4 @@
|
|||
<div class="example" style="background-position-y: 25%"></div>
|
||||
<div class="example" style="background-position-y: 2rem"></div>
|
||||
<div class="example" style="background-position-y: bottom 32px"></div>
|
||||
<div class="example" style="background-position-y: bottom"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue