Unify sizing logic for replaced elements (#34076)

The logic varied quite a bit depending on the case, now it's unified.

This also fixes the following case where the iframe was 150px tall
instead of 50px:
```html
<iframe style="min-width: 400px; max-height: 50px"></iframe>
```

This also modifies video-intrinsic-width-height.html to expect the new
behavior that we share with Blink and WebKit. In fact WebKit already
modified this test but forgot to export the change upstream. Firefox is
different but it was already failing anyways.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-11-01 13:34:28 +01:00 committed by GitHub
parent f95c4cfaba
commit d2c4448ac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 66 additions and 174 deletions

View file

@ -1,10 +1,4 @@
[position-absolute-replaced-minmax.html]
[minmax replaced IFRAME 10]
expected: FAIL
[minmax replaced IFRAME 11]
expected: FAIL
[minmax replaced IMG svg 23]
expected: FAIL