mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Properly transfer min/max constraints on auto-sized replaced elements (#34026)
We were following CSS2, which didn't handle `aspect-ratio`. This patch simplifies the logic and handles it correctly. Unfortunately this makes 2 tests fail, but I'm pretty sure they aren't spec-compliant. I'm leaving them as-is for now since they are part of interop-2021, and Gecko, Blink and WebKit pass them (because of some non-interoperable incorrect behaviors). I'm adding a new test that is fully passed by Servo and WebKit. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
f12071f77e
commit
1891c5cfaf
5 changed files with 506 additions and 114 deletions
2
tests/wpt/meta/css/css-sizing/aspect-ratio/replaced-element-013.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-sizing/aspect-ratio/replaced-element-013.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[replaced-element-013.html]
|
||||
expected: FAIL
|
2
tests/wpt/meta/css/css-sizing/aspect-ratio/replaced-element-014.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-sizing/aspect-ratio/replaced-element-014.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[replaced-element-014.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue