mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00

Previously, the code assumed that in dividing up the space in the affected tracks there would never be an overshoot. Instead, we can check for each track how much extra space is left and never consume any extra. In the same way, we can ensure that all extra space is consumed by distributing all remaining extra space starting from the first track. Thus, if there is no growth limit, the space distribution should always consume all the extra space.
21 lines
1.2 KiB
Text
21 lines
1.2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x65.6875 [BFC] children: not-inline
|
|
Box <body> at (10,10) content-size 780x47.6875 [GFC] children: not-inline
|
|
BlockContainer <div.foo> at (11,11) content-size 778x21.84375 [BFC] children: inline
|
|
line 0 width: 33.9375, height: 21.84375, bottom: 21.84375, baseline: 16.921875
|
|
frag 0 from TextNode start: 0, length: 3, rect: [11,11 33.9375x21.84375]
|
|
"foo"
|
|
TextNode <#text>
|
|
BlockContainer <div.bar> at (11,34.84375) content-size 778x21.84375 [BFC] children: inline
|
|
line 0 width: 34.546875, height: 21.84375, bottom: 21.84375, baseline: 16.921875
|
|
frag 0 from TextNode start: 0, length: 3, rect: [11,34.84375 34.546875x21.84375]
|
|
"bar"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x67.6875]
|
|
PaintableBox (Box<BODY>) [9,9 782x49.6875]
|
|
PaintableWithLines (BlockContainer<DIV>.foo) [10,10 780x23.84375]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.bar) [10,33.84375 780x23.84375]
|
|
TextPaintable (TextNode<#text>)
|