Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-remove-ancestor-after.html
blobac7ff0d8ce3ff4a3da55f9977bdb8e6f8810c5b6
1 <head>
2 <script>
3 var runPixelTests = true;
4 var init = function() {
5 var callback;
6 var fullscreenChanged = function(event)
8 if (callback)
9 callback(event)
11 document.onwebkitfullscreenchange = fullscreenChanged;
13 var one = document.getElementById('one');
14 var two = document.getElementById('two');
15 var three = document.getElementById('three');
17 var threeEnteredFullScreen = function(event) {
18 if (document.webkitCurrentFullScreenElement == three) {
19 callback = threeExitedFullScreen;
20 one.removeChild(two);
24 var threeExitedFullScreen = function(event) {
25 if (document.webkitCurrentFullScreenElement == null) {
26 callback = null;
27 endTest();
31 callback = threeEnteredFullScreen;
33 function goFullScreen() {
34 document.getElementById('three').webkitRequestFullScreen();
36 runWithKeyDown(goFullScreen);
38 </script>
39 <script src="full-screen-test.js"></script>
40 <style>
41 #one {
42 border: 4px solid darkgreen;
43 background-color: green;
44 width: 600px;
45 height: 400px;
46 padding: 4px;
49 #two {
50 border: 4px solid darkred;
51 background-color: red;
52 padding: 4px;
53 height: 384px;
56 #three {
57 border: 4px solid darkblue;
58 background-color: blue;
59 padding: 4px;
60 height: 368px;
62 :-webkit-full-screen-ancestor {
63 background-color: yellow;
65 </style>
66 </head>
67 <body onload="init()">
69 This tests that, if the ancestor of the current full-screen element is removed, full screen mode will exit, and the document will render normally. At the completion of the test, a green box should be visible. Click <button onclick="goFullScreen()">go full screen</button> to run the test.
71 <div id="one">
72 <div id="two">
73 <div id="three"></div>
74 </div>
75 </div>
76 </body>