mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibWeb: Clamp justification space between flex items to 0
Before this change, it was possible for flex lines with negative remaining space (due to overflowing items) to put a negative amount of space between items for some values of `justify-content`. This makes https://polar.sh/SerenityOS look much better :^)
This commit is contained in:
parent
e668cdcf22
commit
1583e6ce07
3 changed files with 51 additions and 3 deletions
|
@ -0,0 +1,19 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
|
||||
Box <body> at (8,8) content-size 400x100 flex-container(row) [FFC] children: not-inline
|
||||
Box <div.outer> at (8,8) content-size 200x100 flex-container(column) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div.upper> at (8,8) content-size 200x200 flex-item [BFC] children: not-inline
|
||||
BlockContainer <div.spacer> at (8,8) content-size 200x200 children: not-inline
|
||||
BlockContainer <div.lower> at (8,208) content-size 200x17 flex-item [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [8,208 26.953125x17] baseline: 13.296875
|
||||
"whf"
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116] overflow: [0,0 800x225]
|
||||
PaintableBox (Box<BODY>) [8,8 400x100] overflow: [8,8 400x217]
|
||||
PaintableBox (Box<DIV>.outer) [8,8 200x100] overflow: [8,8 200x217]
|
||||
PaintableWithLines (BlockContainer<DIV>.upper) [8,8 200x200]
|
||||
PaintableWithLines (BlockContainer<DIV>.spacer) [8,8 200x200]
|
||||
PaintableWithLines (BlockContainer<DIV>.lower) [8,208 200x17]
|
||||
TextPaintable (TextNode<#text>)
|
Loading…
Add table
Add a link
Reference in a new issue