Bug 228913

Summary: REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: cathiechen <cathiechen>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=228872
Attachments:
Description Flags
test none

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