<?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>251597</bug_id>
          
          <creation_ts>2023-02-02 08:59:16 -0800</creation_ts>
          <short_desc>REGRESSION (256782@main): Animating visibility with a display:contents child causes an element to disappear</short_desc>
          <delta_ts>2023-02-23 14:53:27 -0800</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>Safari 16</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247803</see_also>
          <bug_file_loc>https://rado.bg/safari-16.3.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rado">rado</reporter>
          <assigned_to name="Antti Koivisto">koivisto</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>karlcow</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1930496</commentid>
    <comment_count>0</comment_count>
      <attachid>464815</attachid>
    <who name="Rado">rado</who>
    <bug_when>2023-02-02 08:59:16 -0800</bug_when>
    <thetext>Created attachment 464815
Test page

An element with transitioned color on hover, inside a display: contents parent, which is displayed by animated visibility: visible. Hover it to hide it only in Safari 16.3. Normal transition observed in older Safari and Chrome.

&lt;style&gt;
	@keyframes menu-opening {
		100% {
			visibility: visible;
		}
	}

	ul {
		animation: menu-opening .3s 1 forwards;
		visibility: hidden;
	}

	li {
		display: contents;
	}

	a {
		transition: color .2s ease-in-out;
	}

	a:hover {
		color: red;
	}
&lt;/style&gt;

&lt;ul&gt;
	&lt;li&gt;
		&lt;a href=&quot;/&quot;&gt;Hover me on Safari 16.3 and I disappear&lt;/a&gt;
	&lt;/li&gt;
&lt;/ul&gt;

https://rado.bg/safari-16.3.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931540</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-02-06 15:50:03 -0800</bug_when>
    <thetext>&lt;rdar://problem/105102892&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931550</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-02-06 16:13:06 -0800</bug_when>
    <thetext>regression range:
https://commits.webkit.org/compare/256789@main...256757@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931552</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-02-06 16:15:26 -0800</bug_when>
    <thetext>(In reply to zalan from comment #2)
&gt; regression range:
&gt; https://commits.webkit.org/compare/256789@main...256757@main
there&apos;s a few strong candidates in that range, I&apos;d start with [web-animation].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931651</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-02-07 01:06:18 -0800</bug_when>
    <thetext>This regressed with 256782@main, the fix for bug 247803.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932278</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-02-09 01:07:19 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9853</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933507</commentid>
    <comment_count>6</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-02-14 09:31:07 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10094</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933565</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-14 12:41:42 -0800</bug_when>
    <thetext>Committed 260270@main (53814777b5f2): &lt;https://commits.webkit.org/260270@main&gt;

Reviewed commits have been landed. Closing PR #9853 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936346</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-23 14:53:27 -0800</bug_when>
    <thetext>Committed 259548.276@safari-7615-branch (403ebdb08ec1): &lt;https://commits.webkit.org/259548.276@safari-7615-branch&gt;

Reviewed commits have been landed. Closing PR #414 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>464815</attachid>
            <date>2023-02-02 08:59:16 -0800</date>
            <delta_ts>2023-02-02 08:59:16 -0800</delta_ts>
            <desc>Test page</desc>
            <filename>safari-16.3.html</filename>
            <type>text/html</type>
            <size>612</size>
            <attacher name="Rado">rado</attacher>
            
              <data encoding="base64">PHN0eWxlPgoJQGtleWZyYW1lcyBtZW51LW9wZW5pbmcgewoJCTEwMCUgewoJCQl2aXNpYmlsaXR5
OiB2aXNpYmxlOwoJCX0KCX0KCgl1bCB7CgkJYW5pbWF0aW9uOiBtZW51LW9wZW5pbmcgLjNzIDEg
Zm9yd2FyZHM7CgkJdmlzaWJpbGl0eTogaGlkZGVuOwoJfQoKCWxpIHsKCQlkaXNwbGF5OiBjb250
ZW50czsKCX0KCglhIHsKCQl0cmFuc2l0aW9uOiBjb2xvciAuMnMgZWFzZS1pbi1vdXQ7Cgl9CgoJ
YTpob3ZlciB7CgkJY29sb3I6IHJlZDsKCX0KPC9zdHlsZT4KCjx1bD4KCTxsaT4KCQk8YSBocmVm
PSIvIj5Ib3ZlciBtZSBvbiBTYWZhcmkgMTYuMyBhbmQgSSBkaXNhcHBlYXI8L2E+Cgk8L2xpPgo8
L3VsPgoKPHByZT4KCUBrZXlmcmFtZXMgbWVudS1vcGVuaW5nIHsKCQkxMDAlIHsKCQkJdmlzaWJp
bGl0eTogdmlzaWJsZTsKCQl9Cgl9CgkKCXVsIHsKCQlhbmltYXRpb246IG1lbnUtb3BlbmluZyAu
M3MgMSBmb3J3YXJkczsKCQl2aXNpYmlsaXR5OiBoaWRkZW47Cgl9CgkKCWxpIHsKCQlkaXNwbGF5
OiBjb250ZW50czsKCX0KCQoJYSB7CgkJdHJhbnNpdGlvbjogY29sb3IgLjJzIGVhc2UtaW4tb3V0
OwoJfQoJCglhOmhvdmVyIHsKCQljb2xvcjogcmVkOwoJfQo8L3ByZT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>