mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb: Support auto vertical margins for grid items
This commit is contained in:
parent
9f06e130a2
commit
fd9b3bdc94
3 changed files with 53 additions and 9 deletions
15
Tests/LibWeb/Layout/input/grid/vertical-margins-auto.html
Normal file
15
Tests/LibWeb/Layout/input/grid/vertical-margins-auto.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.container {
|
||||
display: grid;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
}
|
||||
.item {
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
<div class="container"><div class="item">item</div></div>
|
Loading…
Add table
Add a link
Reference in a new issue