layout: Add support for object-fit and object-position (#33479)

This also makes a couple small improvements:
 - Rename `IntrinsicSizes` to `NaturalSizes` which reflects more
   modern spec language.
 - Move the conversion of Stylo's `ImageRendering` to WebRender's
   version to a `ToWebRender` trait implementation.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-09-18 08:20:28 +02:00 committed by GitHub
parent 632d832704
commit bd632fc814
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 169 additions and 563 deletions

View file

@ -1,18 +1,3 @@
[object-fit-computed.html]
[Property object-fit value 'contain']
expected: FAIL
[Property object-fit value 'cover']
expected: FAIL
[Property object-fit value 'cover scale-down']
expected: FAIL
[Property object-fit value 'fill']
expected: FAIL
[Property object-fit value 'none']
expected: FAIL
[Property object-fit value 'scale-down']
expected: FAIL