mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
LibWeb: Size box as normal if it has aspect ratio but auto sizes
Otherwise we apply `calculate_stretch_fit_width()` instead of calculating width based on the content inside the box, like other browsers do.
This commit is contained in:
parent
006f276cab
commit
fc45121b70
Notes:
github-actions[bot]
2025-03-27 23:38:46 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: fc45121b70
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4124
3 changed files with 40 additions and 5 deletions
|
@ -0,0 +1,21 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x208 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x192 children: not-inline
|
||||
Box <div.flex> at (8,8) content-size 784x192 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div.wrapper> at (8,8) content-size 192x192 flex-item [BFC] children: not-inline
|
||||
BlockContainer <div.aspectratio> at (8,8) content-size 192x192 children: not-inline
|
||||
BlockContainer <div.box> at (8,8) content-size 192x192 children: not-inline
|
||||
BlockContainer <(anonymous)> at (200,8) content-size 36.84375x192 flex-item [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [200,8 36.84375x17] baseline: 13.296875
|
||||
"hello"
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x208]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x192]
|
||||
PaintableBox (Box<DIV>.flex) [8,8 784x192]
|
||||
PaintableWithLines (BlockContainer<DIV>.wrapper) [8,8 192x192]
|
||||
PaintableWithLines (BlockContainer<DIV>.aspectratio) [8,8 192x192]
|
||||
PaintableWithLines (BlockContainer<DIV>.box) [8,8 192x192]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [200,8 36.84375x192]
|
||||
TextPaintable (TextNode<#text>)
|
Loading…
Add table
Add a link
Reference in a new issue