<?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>240871</bug_id>
          
          <creation_ts>2022-05-24 07:29:09 -0700</creation_ts>
          <short_desc>REGRESSION (r252945): accelerated animations prevent videos from taking up entire screen in fullscreen mode</short_desc>
          <delta_ts>2026-10-30 04:47:32 -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>Animations</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>
          
          <blocked>276855</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Liam DeBeasi">ldebeasi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>fred.wang</cc>
    
    <cc>graouts</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1871483</commentid>
    <comment_count>0</comment_count>
      <attachid>459722</attachid>
    <who name="Liam DeBeasi">ldebeasi</who>
    <bug_when>2022-05-24 07:29:09 -0700</bug_when>
    <thetext>Created attachment 459722
Code reproduction

Running an accelerated animation on an element prevents the containing &lt;video&gt; element from taking up the entire screen when in fullscreen mode.

Steps to reproduce:

1. Open attached code reproduction in Safari for macOS.
2. Click the fullscreen button on the video. Observe that the video goes fullscreen and takes up the entire screen.
3. Exit fullscreen.
4. Click &quot;Add Animation&quot;
5. Click the fullscreen button on the video. Observe that the video goes fullscreen but does not take up the entire screen.

Expected Behavior:

I expect that the video takes up the entire screen when in fullscreen mode.

Actual Behavior:

The video does not take up the entire screen when in fullscreen mode.

Other Information:

- I reproduced this on both Safari 15.5 and STP 145.
- This issue does not reproduce on Chrome or Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871490</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-24 07:45:16 -0700</bug_when>
    <thetext>Thanks for filing this Liam. Do you have any indication that this behavior could have regressed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871491</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-24 07:45:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/93831877&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871505</commentid>
    <comment_count>3</comment_count>
    <who name="Liam DeBeasi">ldebeasi</who>
    <bug_when>2022-05-24 09:09:19 -0700</bug_when>
    <thetext>Thanks for taking a look.

This does appear to have regressed. Safari 12.1 does not reproduce the issue, but Safari 13.1+ does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871516</commentid>
    <comment_count>4</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2022-05-24 09:40:25 -0700</bug_when>
    <thetext>The current fullscreen implementation works by forcibly removing/overriding all styles that create a stacking context between the root and the fullscreen element. In this case, the animation is creating a stacking context that limits the width and height of the video element in fullscreen to the size of the .wrapper div.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871518</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-24 09:47:47 -0700</bug_when>
    <thetext>(In reply to Liam DeBeasi from comment #3)
&gt; Thanks for taking a look.
&gt; 
&gt; This does appear to have regressed. Safari 12.1 does not reproduce the
&gt; issue, but Safari 13.1+ does.

Are you sure that it wasn&apos;t the case that the repro you create uses the Web Animations API which wasn&apos;t available in Safari 12.1 and thus no animation is added?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871521</commentid>
    <comment_count>6</comment_count>
      <attachid>459727</attachid>
    <who name="Liam DeBeasi">ldebeasi</who>
    <bug_when>2022-05-24 09:59:49 -0700</bug_when>
    <thetext>Created attachment 459727
CSS only reproduction

Ah, good point!

I attached a reproduction that only uses CSS Animations. However, I get the same results as before: Safari 12.1 does not reproduce the issue, but Safari 13.1+ does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871530</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-24 10:30:50 -0700</bug_when>
    <thetext>This regressed when we enabled Web Animations for CSS-originated animations in r252945.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2271864</commentid>
    <comment_count>8</comment_count>
      <attachid>482068</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-10-30 04:44:16 -0700</bug_when>
    <thetext>Created attachment 482068
testcase with a different video

The link to the video seems broken, here is the testcase with the video URL tweaked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2271866</commentid>
    <comment_count>9</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-10-30 04:47:32 -0700</bug_when>
    <thetext>I cannot reproduce in Safari 27.0.1, so tentatively closing this. Feel free to reopen if you still see it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>459722</attachid>
            <date>2022-05-24 07:29:09 -0700</date>
            <delta_ts>2022-05-24 07:29:09 -0700</delta_ts>
            <desc>Code reproduction</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>962</size>
            <attacher name="Liam DeBeasi">ldebeasi</attacher>
            
              <data encoding="base64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gfSwKICAgICAgICAgIHsgb2Zmc2V0OiAxLCB0cmFuc2Zvcm06IGB0
cmFuc2xhdGVZKDBweClgIH0sCiAgICAgICAgXSwgewogICAgICAgICAgZmlsbDogJ2JvdGgnCiAg
ICAgICAgfSk7CiAgICAgIH0KICAgIDwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>459727</attachid>
            <date>2022-05-24 09:59:49 -0700</date>
            <delta_ts>2022-05-24 09:59:49 -0700</delta_ts>
            <desc>CSS only reproduction</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>868</size>
            <attacher name="Liam DeBeasi">ldebeasi</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgi
IC8+CiAgICA8dGl0bGU+VmlkZW8gLSBBY2NlbGVyYXRlZCBBbmltYXRpb24gLSBDU1MgQW5pbWF0
aW9uPC90aXRsZT4KICAgIDxtZXRhCiAgICAgIG5hbWU9InZpZXdwb3J0IgogICAgICBjb250ZW50
PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MS4wLCB2aWV3cG9ydC1maXQ9Y292
ZXIiCiAgICAvPgogICAgPHN0eWxlPgogICAgICAud3JhcHBlciB7CiAgICAgICAgd2lkdGg6IDYw
MHB4OwogICAgICAgIGhlaWdodDogNDAwcHg7CiAgICAgICAgCiAgICAgICAgYW5pbWF0aW9uOiB0
cmFuc2Zvcm07CiAgICAgICAgYW5pbWF0aW9uLWR1cmF0aW9uOiAwczsKICAgICAgICBhbmltYXRp
b24tZmlsbC1tb2RlOiBib3RoOwogICAgICB9CiAgICAgIAogICAgICBAa2V5ZnJhbWVzIHRyYW5z
Zm9ybSB7CiAgICAgICAgZnJvbSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMHB4
KQogICAgICAgIH0KICAgICAgICB0byB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVko
MHB4KQogICAgICAgIH0KICAgICAgfQogICAgPC9zdHlsZT4KICA8L2hlYWQ+CgogIDxib2R5Pgog
ICAgPGRpdiBjbGFzcz0id3JhcHBlciI+CiAgICAgIDx2aWRlbwogICAgICAgIGNvbnRyb2xzCiAg
ICAgICAgcHJlbG9hZD0iYXV0byIKICAgICAgICBhdXRvcGxheQogICAgICA+CiAgICAgICAgPHNv
dXJjZSBzcmM9Imh0dHA6Ly90ZWNoc2xpZGVzLmNvbS9kZW1vcy9zYW1wbGUtdmlkZW9zL3NtYWxs
Lm1wNCIgdHlwZT0idmlkZW8vbXA0IiAvPgogICAgICA8L3ZpZGVvPgogICAgPC9kaXY+CiAgPC9i
b2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>482068</attachid>
            <date>2026-10-30 04:44:16 -0700</date>
            <delta_ts>2026-10-30 04:44:16 -0700</delta_ts>
            <desc>testcase with a different video</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>997</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgi
IC8+CiAgICA8dGl0bGU+VmlkZW8gLSBBY2NlbGVyYXRlZCBBbmltYXRpb248L3RpdGxlPgogICAg
PG1ldGEKICAgICAgbmFtZT0idmlld3BvcnQiCiAgICAgIGNvbnRlbnQ9IndpZHRoPWRldmljZS13
aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAsIHZpZXdwb3J0LWZpdD1jb3ZlciIKICAgIC8+CiAgICA8
c3R5bGU+CiAgICAgIC53cmFwcGVyIHsKICAgICAgICB3aWR0aDogNjAwcHg7CiAgICAgICAgaGVp
Z2h0OiA0MDBweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2hlYWQ+CgogIDxib2R5PgogICAg
PGRpdiBjbGFzcz0id3JhcHBlciI+CiAgICAgIDx2aWRlbwogICAgICAgIGNvbnRyb2xzCiAgICAg
ICAgcHJlbG9hZD0iYXV0byIKICAgICAgICBhdXRvcGxheQogICAgICA+CiAgICAgICAgPHNvdXJj
ZSBzcmM9Imh0dHBzOi8vYXJjaGl2ZS5vcmcvZG93bmxvYWQvQmlnQnVja0J1bm55XzEyNC9Db250
ZW50L2JpZ19idWNrX2J1bm55XzcyMHBfc3Vycm91bmQubXA0IiB0eXBlPSJ2aWRlby9tcDQiIC8+
CiAgICAgIDwvdmlkZW8+CiAgICA8L2Rpdj4KICAgIAogICAgPGJ1dHRvbiBvbmNsaWNrPSJhZGRB
bmltYXRpb24oKSI+QWRkIEFuaW1hdGlvbjwvYnV0dG9uPgogICAgCiAgICA8c2NyaXB0PgogICAg
ICBjb25zdCB3cmFwcGVyID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignLndyYXBwZXInKTsKICAg
ICAgY29uc3QgYWRkQW5pbWF0aW9uID0gKCkgPT4gewogICAgICAgIHdyYXBwZXIuYW5pbWF0ZShb
CiAgICAgICAgICB7IG9mZnNldDogMCwgdHJhbnNmb3JtOiAndHJhbnNsYXRlWSgwcHgpJyB9LAog
ICAgICAgICAgeyBvZmZzZXQ6IDEsIHRyYW5zZm9ybTogYHRyYW5zbGF0ZVkoMHB4KWAgfSwKICAg
ICAgICBdLCB7CiAgICAgICAgICBmaWxsOiAnYm90aCcKICAgICAgICB9KTsKICAgICAgfQogICAg
PC9zY3JpcHQ+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>