mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00

When calculating the intrinsic width of a block-level box, we now ignore the preferred width entirely, and not just when the preferred width should be treated as auto. The condition for this was both confused and wrong, as it looked at the available width around the box, but didn't check for a width constraint on the box itself. Just because the available width has an intrinsic sizing constraint doesn't mean that the box is undergoing intrinsic sizing. It could also be the box's containing block!
9 lines
665 B
Text
9 lines
665 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x39.46875 children: not-inline
|
|
Box <body.outer> at (10,10) content-size 764x21.46875 flex-container(row) children: not-inline
|
|
BlockContainer <div.middle> at (11,11) content-size 202x19.46875 flex-item children: not-inline
|
|
BlockContainer <div.inner> at (12,12) content-size 200x17.46875 children: inline
|
|
line 0 width: 45.15625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
|
frag 0 from TextNode start: 0, length: 4, rect: [12,12 45.15625x17.46875]
|
|
"OPEN"
|
|
TextNode <#text>
|