1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 22:17:45 +00:00

LibWeb: Align with spec "stretch auto tracks" step in GFC

Now, we will evenly distribute the remaining free space across tracks
using the auto max-tracks sizing function, exactly as the specification
states. Many tests are affected, but they are not visually broken.

Fixes https://github.com/SerenityOS/serenity/issues/22798
This commit is contained in:
Aliaksandr Kalenik 2024-01-16 12:13:27 +01:00 committed by Andreas Kling
parent dd9f3c980f
commit 9e23503c9c
21 changed files with 233 additions and 207 deletions

View file

@ -2,11 +2,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x50 children: not-inline
Box <div.container> at (8,8) content-size 784x50 [GFC] children: not-inline
BlockContainer <div.item> at (434.203125,8) content-size 357.796875x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [434.203125,8 6.34375x17] baseline: 13.296875
BlockContainer <div.item> at (435.4375,8) content-size 356.5625x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [435.4375,8 6.34375x17] baseline: 13.296875
"1"
TextNode <#text>
BlockContainer <div.item> at (8,41) content-size 357.796875x17 [BFC] children: inline
BlockContainer <div.item> at (8,41) content-size 359.03125x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [8,41 8.8125x17] baseline: 13.296875
"2"
TextNode <#text>
@ -15,7 +15,7 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]
PaintableBox (Box<DIV>.container) [8,8 784x50]
PaintableWithLines (BlockContainer<DIV>.item) [434.203125,8 357.796875x17]
PaintableWithLines (BlockContainer<DIV>.item) [435.4375,8 356.5625x17]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.item) [8,41 357.796875x17]
PaintableWithLines (BlockContainer<DIV>.item) [8,41 359.03125x17]
TextPaintable (TextNode<#text>)