3 // Two frames are required in order to set up the squashing, for some reason.
4 onload
= requestAnimationFrame(function() {
6 requestAnimationFrame(function() {
7 document
.getElementById('badlayer').style
.zIndex
= "1"
9 window
.testRunner
.notifyDone();
13 if (window
.testRunner
)
14 window
.testRunner
.waitUntilDone();
17 <!-- Tests an obscure invalidaiton situation in which changing the z-index of a element results in a reshuffle of squashed content,
18 yet avoiding many of the invalidation paths to update the contents correctly. -->
19 <div style=
"float:right;position:relative;z-index:3">
20 This test is broken if this text shows up twice
22 <div style=
"width: 0">
23 <div style=
"height:220px;position:relative" id=
"badlayer">
24 <div style=
"transform: translate3d(325px, 0px, 0px);">
27 <div style=
"height:220px;position:relative">
28 <div style=
"position: absolute; top: 0px; left: 0px; width:10px;height:10px; transform: translate3d(1px, 1px, 1px); background: lightgray"></div>
29 <div style=
"position: absolute; top: 0px; left: 0px; background: lightblue; width:10px;height:10px;" ></div>
34 <div style=
"position:relative; height: 500px;">