1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Resolve block max-width percentage against containing block

This commit is contained in:
FalseHonesty 2023-10-28 20:53:17 -04:00 committed by Alexander Kalenik
parent 8df3e6b203
commit 2285dfb80e
5 changed files with 37 additions and 24 deletions

View file

@ -0,0 +1,14 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x37.46875 [BFC] children: not-inline
BlockContainer <body> at (10,10) content-size 780x19.46875 children: not-inline
BlockContainer <span.text> at (11,11) content-size 66.671875x17.46875 children: inline
line 0 width: 66.671875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 7, rect: [11,11 66.671875x17.46875]
"Trimmed"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x39.46875]
PaintableWithLines (BlockContainer<BODY>) [9,9 782x21.46875]
PaintableWithLines (BlockContainer<SPAN>.text) [10,10 68.671875x19.46875]
TextPaintable (TextNode<#text>)