2 <html lang=
"en" class=
"reftest-wait"
3 reftest-displayport-x=
"0"
4 reftest-displayport-y=
"0"
5 reftest-displayport-w=
"800"
6 reftest-displayport-h=
"1000">
8 <title>Things overlapping active scrollboxes should be in a layer on top of the scrolled contents, and that layer shouldn't pull up a background color through the scrollbox.
</title>
10 This test is the same as layer-splitting-5.html, but without the scrollbox
11 border. The lack of a border here makes it attractive for .overlap to pull
12 a background color from the page background (because there's no scrollbox
13 border in the way), but it shouldn't do that because .scrolled can move
22 box-model: border-box;
66 <div class=
"first" reftest-assigned-layer=
"page-background">
68 This is just a regular box, it should end up in the page background layer.
72 <div class=
"overlap reftest-no-paint">
74 This item intersects with the scrollable box and is positioned above
75 .scrolled, in z-order, so it should be split into its own layer as soon
76 as the scrollbox gets active scrolling. The splitting should not wait for
77 .scrolled to move under .overlap.
81 <div class=
"scrollable">
82 <div class=
"scrollarea">
83 <div class=
"scrolled reftest-opaque-layer">
85 This will move under .overlap by .scrollable being scrolled. This
86 action should not invalidate .overlap.
88 Furthermore, since the background of .scrollable is uniform and opaque,
89 .scrolled should be able to pull up that background color and become
96 <div class=
"second" reftest-assigned-layer=
"page-background">
98 This should share a layer with .first and the page background.
104 var scrollable
= document
.querySelector(".scrollable");
107 scrollable
.scrollLeft
= 100;
108 document
.documentElement
.removeAttribute("class");
111 // Make .scrollable start out with active scrolling.
112 scrollable
.scrollLeft
= 0;
113 scrollable
.scrollLeft
= 20;
114 document
.addEventListener("MozReftestInvalidate", doTest
);