Bug 228913 - REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto
Summary: REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto
Status: RESOLVED DUPLICATE of bug 228872
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: cathiechen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-09 05:41 PDT by Antti Koivisto
Modified: 2021-08-12 07:30 PDT (History)
3 users (show)

See Also:


Attachments
test (742 bytes, text/html)
2021-08-09 05:41 PDT, Antti Koivisto
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2021-08-09 05:41:33 PDT
see the test
Comment 1 Antti Koivisto 2021-08-09 05:41:54 PDT
Created attachment 435184 [details]
test
Comment 2 Alexey Proskuryakov 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?
Comment 3 Sam Sneddon [:gsnedders] 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.
Comment 4 Antti Koivisto 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.
Comment 5 Radar WebKit Bug Importer 2021-08-12 05:18:32 PDT
<rdar://problem/81843417>
Comment 6 cathiechen 2021-08-12 06:04:22 PDT

*** This bug has been marked as a duplicate of bug 228872 ***
Comment 7 cathiechen 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