<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228913</bug_id>
          
          <creation_ts>2021-08-09 05:41:33 -0700</creation_ts>
          <short_desc>REGRESSION(r277997): aspect-ratio not applied correctly to img with height:auto</short_desc>
          <delta_ts>2021-08-12 07:30:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>228872</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=228872</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Koivisto">koivisto</reporter>
          <assigned_to name="cathiechen">cathiechen</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1782872</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2021-08-09 05:41:33 -0700</bug_when>
    <thetext>see the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782873</commentid>
    <comment_count>1</comment_count>
      <attachid>435184</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2021-08-09 05:41:54 -0700</bug_when>
    <thetext>Created attachment 435184
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783045</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-08-09 17:50:06 -0700</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783085</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-08-09 19:52:12 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; What is the correct behavior here? I see a green square in Safari 14.1.2,
&gt; and a vertical green rectangle in Safari 15 beta. 
&gt; 
&gt; So is this a regression?

aspect-ratio wasn&apos;t supported previously, so not a regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783103</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2021-08-09 21:57:48 -0700</bug_when>
    <thetext>Green 50x50px square is the correct behaviour. It is a regression for img because r277997 added implicit aspect-ratio to to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783797</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-12 05:18:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/81843417&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783806</commentid>
    <comment_count>6</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-08-12 06:04:22 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 228872 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783820</commentid>
    <comment_count>7</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-08-12 07:30:02 -0700</bug_when>
    <thetext>BTW: This test has been added to WPT by https://github.com/web-platform-tests/wpt/pull/29964</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>435184</attachid>
            <date>2021-08-09 05:41:54 -0700</date>
            <delta_ts>2021-08-09 05:41:54 -0700</delta_ts>
            <desc>test</desc>
            <filename>aspect-ratio-height.html</filename>
            <type>text/html</type>
            <size>742</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">PHN0eWxlPgouY29udGFpbmVyIHsgbWFyZ2luLWJvdHRvbTogMTAwcHg7IGRpc3BsYXk6IGZsZXg7
IGJvcmRlcjogMnB4IHNvbGlkIGJsdWU7IH0KLnBob3RvIHsgd2lkdGg6NTBweDsgaGVpZ2h0OmF1
dG87IH0KPC9zdHlsZT4KPGRpdiBjbGFzcz0iY29udGFpbmVyIj4KPGltZyBjbGFzcz0icGhvdG8i
IHNyYz0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFJQUFB
QUNBQ0FJQUFBQk1YUGFjQUFBQUNYQklXWE1BQUFzVEFBQUxFd0VBbXB3WUFBQUJMVWxFUVZSNG5P
M1JRUkVBSUF6QXNJRi96ME5HSGpRS2V0Y3pPNEd1RHZoZEE3QUdZQTNBR29BMUFHc0ExZ0NzQVZn
RHNBWmdEY0FhZ0RVQWF3RFdBS3dCV0FPd0JtQU53QnFBTlFCckFOWUFyQUZZQTdBR1lBM0FHb0Ex
QUdzQTFnQ3NBVmdEc0FaZ0RjQWFnRFVBYXdEV0FLd0JXQU93Qm1BTndCcUFOUUJyQU5ZQXJBRllB
N0FHWUEzQUdvQTFBR3NBMWdDc0FWZ0RzQVpnRGNBYWdEVUFhd0RXQUt3QldBT3dCbUFOd0JxQU5R
QnJBTllBckFGWUE3QUdZQTNBR29BMUFHc0ExZ0NzQVZnRHNBWmdEY0FhZ0RVQWF3RFdBS3dCV0FP
d0JtQU53QnFBTlFCckFOWUFyQUZZQTdBR1lBM0FHb0ExQUdzQTFnQ3NBVmdEc0FaZ0RjQWFnRFVB
YXdEV0FLd0JXQU93Qm1BTndCcUFOUUJyQU5ZQXJBRllBN0FHWUEzQUdvQTFBR3NBOWdETzRnSC9p
REpDVFFBQUFBQkpSVTVFcmtKZ2dnPT0iIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij4KPC9kaXY+
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>