| Index: LayoutTests/fullscreen/full-screen-css.html | 
| diff --git a/LayoutTests/fullscreen/full-screen-css.html b/LayoutTests/fullscreen/full-screen-css.html | 
| index 394e6dd48c679c365cb961f10bb3f65416a10e90..034cc7be7909833f96bd1b2772d8a5863e132b38 100644 | 
| --- a/LayoutTests/fullscreen/full-screen-css.html | 
| +++ b/LayoutTests/fullscreen/full-screen-css.html | 
| @@ -18,33 +18,32 @@ | 
| if (callback) | 
| callback(event) | 
| }; | 
| -        waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged); | 
| +        waitForEvent(document, "webkitfullscreenchange", fullscreenChanged); | 
| + | 
| +        var span = document.getElementsByTagName("span")[0]; | 
|  | 
| -        var span = document.getElementsByTagName('span')[0]; | 
| - | 
| testExpected("document.defaultView.getComputedStyle(span, null).getPropertyValue('background-color')", "rgba(0, 0, 0, 0)"); | 
| testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('background-color')", "rgba(0, 0, 0, 0)"); | 
| testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('color')", "rgb(0, 0, 0)"); | 
| - | 
| -        var spanEnteredFullScreen = function(event) { | 
| -            testExpected("document.webkitCurrentFullScreenElement", span); | 
| -            testExpected("document.defaultView.getComputedStyle(span, null).getPropertyValue('background-color')", "rgb(0, 255, 0)"); | 
| -            testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('background-color')", "rgb(255, 0, 0)"); | 
| -            testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('color')", "rgb(0, 0, 255)"); | 
| - | 
| -            callback = documentEnteredFullScreen; | 
| -            runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()}); | 
| -        }; | 
| - | 
| + | 
| var documentEnteredFullScreen = function(event) { | 
| testExpected("document.webkitCurrentFullScreenElement", document.documentElement); | 
| testExpected("document.defaultView.getComputedStyle(span, null).getPropertyValue('background-color')", "rgba(0, 0, 0, 0)"); | 
| testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('background-color')", "rgb(0, 255, 0)"); | 
| testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('color')", "rgb(0, 0, 255)"); | 
| +            callback = spanEnteredFullScreen; | 
| +            runWithKeyDown(function(){span.webkitRequestFullScreen()}); | 
| +        }; | 
| + | 
| +         var spanEnteredFullScreen = function(event) { | 
| +            testExpected("document.webkitCurrentFullScreenElement", span); | 
| +            testExpected("document.defaultView.getComputedStyle(span, null).getPropertyValue('background-color')", "rgb(0, 255, 0)"); | 
| +            testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('background-color')", "rgb(255, 0, 0)"); | 
| +            testExpected("document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('color')", "rgb(0, 0, 255)"); | 
| endTest(); | 
| }; | 
| - | 
| -        callback = spanEnteredFullScreen; | 
| -        runWithKeyDown(function(){span.webkitRequestFullScreen()}); | 
| + | 
| +        callback = documentEnteredFullScreen; | 
| +        runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()}); | 
| } | 
| </script> | 
|  |