Fix sizing of replaced elements with min/max sizes (#32777)

If a (min/max)-(height/width) property is set, we still need to respect
the intrinsic ratio of the element if it exists. The previous code was
simply clamping the element size after doing the sizing calculations
once, but this leads to an incorrect aspect ratio.

Signed-off-by: valadaptive <valadaptive@protonmail.com>
This commit is contained in:
valadaptive 2024-07-18 03:07:13 -04:00 committed by GitHub
parent 1b1f79305e
commit f6c9714286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 232 additions and 200 deletions

View file

@ -1,2 +0,0 @@
[inline-replaced-height-010.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-replaced-height-011.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-replaced-width-016.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-replaced-width-017.xht]
expected: FAIL