8 border:
4px solid black;
19 background-color: blue;
26 background-color: green;
34 background-color: red;
45 if (window
.testRunner
)
46 testRunner
.dumpAsText();
48 if (window
.internals
) {
49 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
53 var pre
= document
.createElement('pre');
54 if (!window
.internals
) {
55 var description
= "This test ensures that amongst the graphics "
56 + "layers corresponding to a single Layer, only one may "
57 + "have a scroll parent.";
58 pre
.innerHTML
= description
;
60 document
.body
.offsetTop
;
61 var clip
= document
.getElementById('clip');
62 clip
.className
= "clip";
63 document
.body
.offsetTop
;
64 pre
.innerHTML
= internals
.layerTreeAsText(document
,
65 internals
.LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS
);
67 document
.body
.appendChild(pre
);
69 window
.onload
= runTest
;
73 <div class=
"container">
74 <div id=
"fixed"></div>
76 <div class=
"box red"></div>
78 <div class=
"box"></div>
79 <div class=
"box"></div>
80 <div class=
"box"></div>
81 <div class=
"box"></div>