<?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>289474</bug_id>
          
          <creation_ts>2025-03-10 10:45:12 -0700</creation_ts>
          <short_desc>Inability to have an exit animation on the backdrop of a dialog</short_desc>
          <delta_ts>2025-03-11 19:29:18 -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>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>276727</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeroen Zwartepoorte">jeroen.zwartepoorte</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>graouts</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2101968</commentid>
    <comment_count>0</comment_count>
    <who name="Jeroen Zwartepoorte">jeroen.zwartepoorte</who>
    <bug_when>2025-03-10 10:45:12 -0700</bug_when>
    <thetext>If you are using `@starting-style` to animate the entry of a dialog+backdrop, there is no way to also animate the exit.

There seems to be a proposal for an `overlay` property that only Chromium implements to far. This codepen showcases how you can do `transition: overlay 1s allow-discrete` to have an exit animation on the backdrop. See https://codepen.io/argyleink/pen/zYbQBOm for a complete example.

Related to this, i filed https://bugs.webkit.org/show_bug.cgi?id=289473 for how dialog behaves on exit, without support for `overlay` atm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102017</commentid>
    <comment_count>1</comment_count>
    <who name="Jeroen Zwartepoorte">jeroen.zwartepoorte</who>
    <bug_when>2025-03-10 13:16:00 -0700</bug_when>
    <thetext>The `overlay` property is from https://drafts.csswg.org/css-position-4/#overlay btw</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102432</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-03-11 19:29:18 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 276727 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>