1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:57:47 +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,12 +2,12 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
BlockContainer <body> at (10,10) content-size 780x21 children: not-inline
Box <div.grid-container> at (11,11) content-size 778x19 [GFC] children: not-inline
BlockContainer <div.a> at (12,12) content-size 387x17 [BFC] children: inline
BlockContainer <div.a> at (12,12) content-size 385.765625x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [12,12 6.34375x17] baseline: 13.296875
"1"
TextNode <#text>
BlockContainer <div.b> at (401,12) content-size 387x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [401,12 8.8125x17] baseline: 13.296875
BlockContainer <div.b> at (399.765625,12) content-size 388.234375x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [399.765625,12 8.8125x17] baseline: 13.296875
"2"
TextNode <#text>
@ -15,7 +15,7 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x602]
PaintableWithLines (BlockContainer<BODY>) [9,9 782x23]
PaintableBox (Box<DIV>.grid-container) [10,10 780x21]
PaintableWithLines (BlockContainer<DIV>.a) [11,11 389x19]
PaintableWithLines (BlockContainer<DIV>.a) [11,11 387.765625x19]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.b) [400,11 389x19]
PaintableWithLines (BlockContainer<DIV>.b) [398.765625,11 390.234375x19]
TextPaintable (TextNode<#text>)