RESOLVED DUPLICATE of bug 228872228913
REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto
https://bugs.webkit.org/show_bug.cgi?id=228913
Summary REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto
Antti Koivisto
Reported 2021-08-09 05:41:33 PDT
see the test
Attachments
test (742 bytes, text/html)
2021-08-09 05:41 PDT, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2021-08-09 05:41:54 PDT
Alexey Proskuryakov
Comment 2 2021-08-09 17:50:06 PDT
What is the correct behavior here? I see a green square in Safari 14.1.2, and a vertical green rectangle in Safari 15 beta. So is this a regression?
Sam Sneddon [:gsnedders]
Comment 3 2021-08-09 19:52:12 PDT
(In reply to Alexey Proskuryakov from comment #2) > What is the correct behavior here? I see a green square in Safari 14.1.2, > and a vertical green rectangle in Safari 15 beta. > > So is this a regression? aspect-ratio wasn't supported previously, so not a regression.
Antti Koivisto
Comment 4 2021-08-09 21:57:48 PDT
Green 50x50px square is the correct behaviour. It is a regression for img because r277997 added implicit aspect-ratio to to.
Radar WebKit Bug Importer
Comment 5 2021-08-12 05:18:32 PDT
cathiechen
Comment 6 2021-08-12 06:04:22 PDT
*** This bug has been marked as a duplicate of bug 228872 ***
cathiechen
Comment 7 2021-08-12 07:30:02 PDT
BTW: This test has been added to WPT by https://github.com/web-platform-tests/wpt/pull/29964
Note You need to log in before you can comment on or make changes to this bug.