mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
LibWeb: Add support for parsing 'inset' shorthand CSS property
This commit is contained in:
parent
e129c8049b
commit
cabfb7867c
4 changed files with 72 additions and 0 deletions
25
Tests/LibWeb/Layout/input/inset-shorthand-property.html
Normal file
25
Tests/LibWeb/Layout/input/inset-shorthand-property.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html><style>
|
||||
.parent {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: grey;
|
||||
position: relative;
|
||||
}
|
||||
.bad {
|
||||
position: absolute;
|
||||
background-color: red;
|
||||
top: 10px;
|
||||
right: 20px;
|
||||
bottom: 40px;
|
||||
left: 30px;
|
||||
}
|
||||
.good {
|
||||
position: absolute;
|
||||
inset: 10px 20px 40px 30px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<div class="parent">
|
||||
<div class="bad">Bad</div>
|
||||
<div class="good"></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue