1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8"/>
7 <title>Overflow, positioning and compositing
</title>
8 <style type=
"text/css" media=
"screen">
10 display: inline-block;
15 border:
1px solid black;
23 background-color: gray;
26 <script type=
"text/javascript" charset=
"utf-8">
27 if (window.testRunner)
28 testRunner.waitUntilDone();
32 var scrollables = document.querySelectorAll('.container');
33 for (var i =
0; i < scrollables.length; ++i)
35 scrollables[i].scrollTop =
50;
38 requestAnimationFrame(function() {
39 setTimeout(function() {
40 if (window.testRunner)
41 testRunner.notifyDone();
46 window.addEventListener('load', doTest, false);
52 <p>All of the boxes should look the same.
</p>
53 <div class=
"container">
54 <div class=
"inner" style=
"transform: translateZ(0)">
56 This is the inner div that scrolls.
61 <div class=
"container">
62 <div class=
"inner" style=
"position: relative; transform: translateZ(0)">
64 This is the inner div that scrolls.
69 <div class=
"container" style=
"position: relative">
70 <div class=
"inner" style=
"transform: translateZ(0)">
72 This is the inner div that scrolls.
77 <div class=
"container" style=
"position: relative">
78 <div class=
"inner" style=
"position: relative; transform: translateZ(0)">
80 This is the inner div that scrolls.
86 <div class=
"container" style=
"transform: translateZ(0)">
89 This is the inner div that scrolls.
94 <div class=
"container" style=
"transform: translateZ(0)">
95 <div class=
"inner" style=
"position: relative;">
97 This is the inner div that scrolls.
102 <div class=
"container" style=
"transform: translateZ(0)">
103 <div class=
"inner" style=
"transform: translateZ(0)">
105 This is the inner div that scrolls.
110 <div class=
"container" style=
"transform: translateZ(0)">
111 <div class=
"inner" style=
"position: relative; transform: translateZ(0)">
113 This is the inner div that scrolls.
120 <div class=
"container" style=
"position: relative; transform: translateZ(0)">
123 This is the inner div that scrolls.
128 <div class=
"container" style=
"position: relative; transform: translateZ(0)">
129 <div class=
"inner" style=
"position: relative;">
131 This is the inner div that scrolls.
136 <div class=
"container" style=
"position: relative; transform: translateZ(0)">
137 <div class=
"inner" style=
"transform: translateZ(0)">
139 This is the inner div that scrolls.
144 <div class=
"container" style=
"position: relative; transform: translateZ(0)">
145 <div class=
"inner" style=
"position: relative; transform: translateZ(0)">
147 This is the inner div that scrolls.