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>Scrolling shouldn't invalidate the fixed items
</title>
13 box-sizing: border-box;
16 border:
1px solid black;
41 will-change: transform;
53 <div class=
"fixed reftest-no-paint content">
55 This fixed layer gets its own PaintedLayer above the page.
59 <div class=
"distanceFromTop clip">
61 This clip determines the potential pixels that can be affected by the
62 animated transform, *in relation to the scrolled page*. If the page
63 is scrolled, the clip moves relative to the fixed items, so the fixed
64 items need to anticipate the transform getting between them.
67 <div class=
"transform content">
69 This is an animated transform item. It can move freely but will be
70 clipped by the .clip element.
76 <div class=
"fixed reftest-no-paint content">
78 This fixed layer is above the animated transform, in z-order. The
79 transform is clipped in such a way that initially, the clip doesn't
80 intersect the fixed items, but once the page is scrolled, it does.
81 So this fixed item must not share a layer with the lower fixed item.
88 document
.documentElement
.scrollTop
= 100;
89 document
.documentElement
.removeAttribute("class");
91 document
.documentElement
.scrollTop
= 0;
92 document
.addEventListener("MozReftestInvalidate", doTest
);
93 // setTimeout(doTest, 500);