1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibWeb: Fix grid item placement when only grid-column-end is specified

This commit is contained in:
aplefull 2025-05-30 23:07:22 +02:00 committed by Alexander Kalenik
parent 4b3dccd0f2
commit 3781c132aa
Notes: github-actions[bot] 2025-06-03 20:23:39 +00:00
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,22 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x64 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x48 children: not-inline
Box <div.a> at (8,8) content-size 784x48 [GFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text>
BlockContainer <div.b> at (8,8) content-size 48x48 [BFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text>
BlockContainer <div.c> at (56,8) content-size 48x48 [BFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,56) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x64]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x48]
PaintableBox (Box<DIV>.a) [8,8 784x48]
PaintableWithLines (BlockContainer<DIV>.b) [8,8 48x48]
PaintableWithLines (BlockContainer<DIV>.c) [56,8 48x48]
PaintableWithLines (BlockContainer(anonymous)) [8,56 784x0]

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<style>
.a {
display: grid;
grid-template-columns: auto 1fr;
}
.b {
width: 48px;
height: 48px;
background-color: red;
}
.c {
width: 48px;
height: 48px;
background-color: blue;
grid-column-end: -1;
}
</style>
<div class="a">
<div class="b"></div>
<div class="c"></div>
</div>