4 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
8 if (window
.testRunner
) {
9 testRunner
.waitUntilDone();
10 testRunner
.dumpAsText();
12 runAfterLayoutAndPaint(finish
);
17 var innerLayer
= document
.getElementById('innerLayer');
18 innerLayer
.style
.left
= '19px';
19 innerLayer
.style
.top
= '23px';
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
26 /* nodes that have layers and are containers for their children */
27 .a { outline: solid blue
1px }
29 /* nodes that have layers but are not containers for their children */
30 .b { outline: solid red
1px }
32 /* nodes that do not have layers */
33 .c { outline: solid green
1px }
36 <body onload=
"test()">
37 Tests moving layers inside with fixed position nodes.
38 The test passes if it completes without failing any assertions in Debug mode.
40 <div style=
"position:fixed; top:30px" class=
"a">
41 <div style=
"position:absolute; left:7px; top:3px" class=
"a">
42 <div style=
"opacity: 0.8; left: 9px; width:50px; height:50px" class=
"b">
43 <div style=
"width:34px; height:43px" class=
"c"></div>
45 <div style=
"position:relative; left: 75px; width:50px; height:50px" class=
"a" id=
"innerLayer">
46 <div style=
"width:45px; height:45px" class=
"c"></div>
49 <div style=
"opacity: 0.8; width: 25px; height: 37px" id=
"foo" class=
"b"></div>
50 <div style=
"position:absolute; left:7px; top:50px; width:40px; height:40px" class=
"a">