mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
LibWeb: Resolve used insets for grid items
This commit is contained in:
parent
03ec17fd37
commit
e7e454f1d6
3 changed files with 34 additions and 0 deletions
13
Tests/LibWeb/Layout/expected/grid/relpos-grid-item.txt
Normal file
13
Tests/LibWeb/Layout/expected/grid/relpos-grid-item.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (2,2) content-size 796x62.9375 [BFC] children: not-inline
|
||||
Box <body> at (12,12) content-size 600x42.9375 [GFC] children: not-inline
|
||||
BlockContainer <div.exekiller> at (14,14) content-size 200x17.46875 positioned [BFC] children: inline
|
||||
line 0 width: 65.4375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 9, rect: [14,14 65.4375x17.46875]
|
||||
"exekiller"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.athena> at (24,25.46875) content-size 200x17.46875 positioned [BFC] children: inline
|
||||
line 0 width: 53.171875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [24,25.46875 53.171875x17.46875]
|
||||
"athena"
|
||||
TextNode <#text>
|
19
Tests/LibWeb/Layout/input/grid/relpos-grid-item.html
Normal file
19
Tests/LibWeb/Layout/input/grid/relpos-grid-item.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html><style>
|
||||
* { border: 2px solid black; }
|
||||
body {
|
||||
width: 600px;
|
||||
display: grid;
|
||||
}
|
||||
div {
|
||||
width: 200px;
|
||||
position: relative;
|
||||
}
|
||||
.athena {
|
||||
background: green;
|
||||
top: -10px;
|
||||
left: 10px;
|
||||
}
|
||||
.exekiller {
|
||||
background: red;
|
||||
}
|
||||
</style><body><div class="exekiller">exekiller</div><div class="athena">athena</div></body>
|
Loading…
Add table
Add a link
Reference in a new issue