mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibWeb: Improve handling of min/max constraint violations on images
Instead of bailing after resolving one violated constraint, we have to continue down the list of remaining constraints. We now also call the constraint solver for all replaced elements with "auto" for both width and height. Co-authored-by: 0GreenClover0 <clovers02123@gmail.com>
This commit is contained in:
parent
90b21890c5
commit
197efc8985
3 changed files with 71 additions and 23 deletions
|
@ -0,0 +1,6 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x80 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x62 children: inline
|
||||
line 0 width: 82, height: 62, bottom: 62, baseline: 62
|
||||
frag 0 from ImageBox start: 0, length: 0, rect: [11,11 80x60]
|
||||
ImageBox <img> at (11,11) content-size 80x60 children: not-inline
|
Loading…
Add table
Add a link
Reference in a new issue