Implement the aspect-ratio property for replaced elements (#32800)

* Add WPT tests for box-sizing with aspect-ratio

Signed-off-by: valadaptive <valadaptive@protonmail.com>

* Implement `aspect-ratio` for replaced elements

There are two regressions because we don't implement `object-fit`, and
one because we don't properly represent non-available <img>s with `alt`
attributes.

Signed-off-by: valadaptive <valadaptive@protonmail.com>

---------

Signed-off-by: valadaptive <valadaptive@protonmail.com>
This commit is contained in:
valadaptive 2024-07-24 07:40:23 -04:00 committed by GitHub
parent e425ad0cb7
commit 60e65c175d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 314 additions and 62 deletions

View file

@ -556187,6 +556187,20 @@
]
},
"aspect-ratio": {
"box-sizing-dimensions.html": [
"126c3e30583edc1fb61ed5dab62187e64b597500",
[
null,
{}
]
],
"box-sizing-squashed.html": [
"542dabe1b5c11784257018b6352151d9940f59bf",
[
null,
{}
]
],
"fractional-aspect-ratio.html": [
"7186f35f8a2e62d6bae515ab0453c2af5041c23b",
[