NEW240871
REGRESSION (r252945): accelerated animations prevent videos from taking up entire screen in fullscreen mode
https://bugs.webkit.org/show_bug.cgi?id=240871
Summary REGRESSION (r252945): accelerated animations prevent videos from taking up en...
Liam DeBeasi
Reported 2022-05-24 07:29:09 PDT
Created attachment 459722 [details] Code reproduction Running an accelerated animation on an element prevents the containing <video> 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 "Add Animation" 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.
Attachments
Code reproduction (962 bytes, text/html)
2022-05-24 07:29 PDT, Liam DeBeasi
no flags
CSS only reproduction (868 bytes, text/html)
2022-05-24 09:59 PDT, Liam DeBeasi
no flags
Antoine Quint
Comment 1 2022-05-24 07:45:16 PDT
Thanks for filing this Liam. Do you have any indication that this behavior could have regressed?
Radar WebKit Bug Importer
Comment 2 2022-05-24 07:45:26 PDT
Liam DeBeasi
Comment 3 2022-05-24 09:09:19 PDT
Thanks for taking a look. This does appear to have regressed. Safari 12.1 does not reproduce the issue, but Safari 13.1+ does.
Jer Noble
Comment 4 2022-05-24 09:40:25 PDT
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.
Antoine Quint
Comment 5 2022-05-24 09:47:47 PDT
(In reply to Liam DeBeasi from comment #3) > Thanks for taking a look. > > This does appear to have regressed. Safari 12.1 does not reproduce the > issue, but Safari 13.1+ does. Are you sure that it wasn't the case that the repro you create uses the Web Animations API which wasn't available in Safari 12.1 and thus no animation is added?
Liam DeBeasi
Comment 6 2022-05-24 09:59:49 PDT
Created attachment 459727 [details] 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.
Antoine Quint
Comment 7 2022-05-24 10:30:50 PDT
This regressed when we enabled Web Animations for CSS-originated animations in r252945.
Note You need to log in before you can comment on or make changes to this bug.