blob: f01119cedcc3a9bba1c2de826cb348984c60c6c6 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/run-after-layout-and-paint.js"></script>
var runPixelTests = true;
function init() {
waitForEventOnce(document, 'webkitfullscreenchange', function() {
function goFullScreen() {
<script src="full-screen-test.js"></script>
#one {
width: 100px;
height: 100px;
position: relative;
top: 50px;
left: 50px;
z-index: 1;
background-color: red;
opacity: 0.5;
transform: rotate(180);
-webkit-mask: -webkit-linear-gradient(left, alpha 0%, white 100%);
-webkit-filter: contrast(100%);
-webkit-box-reflect: below;
-webkit-transform-style: preserve-3d;
-webkit-perspective: 300;
#zero {
position: relative;
z-index: 0;
#target {
width: 200px;
height: 200px;
background-color: black;
<body onload="init()">
<div>This tests that a full screen element in a lower stacking context blocks a sibling in a higher stacking context.
After entering full screen mode, only a black box should be visible.
Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
<div id="one"></div>
<div id="zero">
<div id="target"></div>