Skip to content
  • enne@google.com's avatar
    Hide all ancestors of the full screen element when going full screen · e489e468
    enne@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=96332
    
    Reviewed by James Robinson.
    
    Source/WebCore:
    
    Since fixed position elements can now sometimes become stacking
    contexts, explicitly set position: static on full-screen ancestors so
    that there are no stacking context ancestors that could cause the full
    screen element to become incorrectly sorted.
    
    Test: fullscreen/full-screen-fixed-pos-parent.html
    
    * css/fullscreen.css:
    (:-webkit-full-screen-ancestor:not(iframe)):
    
    LayoutTests:
    
    This test has an all red image that (without this patch) incorrectly
    sorts on top of the full screen element. With this patch, the all
    green full screen element appears on top.
    
    * fullscreen/full-screen-fixed-pos-parent-expected.png: Added.
    * fullscreen/full-screen-fixed-pos-parent-expected.txt: Added.
    * fullscreen/full-screen-fixed-pos-parent.html: Added.
    * fullscreen/resources/green.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e489e468