Bug 150134

Summary: Full screen videos are hidden when a parent node has animation
Product: WebKit Reporter: David Zhang <david.zhang>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: dino, jer.noble, jonlee, pleger2, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: OS X 10.10   

Description David Zhang 2015-10-14 12:21:51 PDT
Steps to reproduce:
1. Go to https://www.appdirect.com/apps/577#!overview
2. Click on "Watch Demo"
3. Click "Full screen" in the Youtube player

Expected:
Full screen video player

Actual:
Browser is full screen, video player is hidden

Workaround:
Either removing the animation/-webkit-animation property from the .adb-modal selector, or adding this CSS solves the problem:

:-webkit-full-screen-ancestor:not(iframe) {
    animation-name: none !important;
}

So I believe the problem is just that this style is missing from WebCore/css/fullscreen.css, since it already clears transform and transition for the same selector.
Comment 1 pleger2 2017-04-04 13:47:20 PDT
As David says, I think it makes sense to add: 

:-webkit-full-screen-ancestor:not(iframe) {
    animation: none !important;
}

since the reset is already applied to other properties that affects stacking context like transition and transform.
Comment 2 Radar WebKit Bug Importer 2017-04-04 13:59:42 PDT
<rdar://problem/31436850>
Comment 3 Jon Lee 2017-04-09 09:02:45 PDT
This bug no longer reproduces for me on a recent build.