Hide all ancestors of the full screen element when going full screen
authorenne@google.com <enne@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 22:32:28 +0000 (22:32 +0000)
committerenne@google.com <enne@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 22:32:28 +0000 (22:32 +0000)
commit5c265b1a83213d026ffa7daafc22e0ea1a0e9ece
tree6aef621220aac9380a9db9abab8ce55a90cfd00b
parent3beb5e74a31828f45e4e46709d7b753c27686d86
Hide all ancestors of the full screen element when going full screen
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: https://svn.webkit.org/repository/webkit/trunk@128514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fullscreen/full-screen-fixed-pos-parent-expected.png [new file with mode: 0644]
LayoutTests/fullscreen/full-screen-fixed-pos-parent-expected.txt [new file with mode: 0644]
LayoutTests/fullscreen/full-screen-fixed-pos-parent.html [new file with mode: 0644]
LayoutTests/fullscreen/resources/green.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/fullscreen.css