mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27: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
|
@ -0,0 +1,9 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x520 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x502 children: not-inline
|
||||
Box <div.container> at (11,11) content-size 500x500 [GFC] children: not-inline
|
||||
BlockContainer <div.item> at (244.828125,252.265625) content-size 32.34375x17.46875 [BFC] children: inline
|
||||
line 0 width: 32.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [244.828125,252.265625 32.34375x17.46875]
|
||||
"item"
|
||||
TextNode <#text>
|
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