4 <link rel=
"stylesheet" href=
"resources/compositor-touch-hit-rects.css">
9 border:
1px solid lightgrey;
12 #fixedPositionNestedContent {
17 border:
6px solid lightblue;
23 <p id=
"description" style=
"height:20px">
24 This test verifies the hit test regions given to the compositor specifically around non-composited overflow scroll elements.
28 <div class=
"scroll" id=
"scrollContainer">
29 <div style='height:
10px;'
></div>
30 <div class=
"testcase" id=
"scrollContent">Scroll content
</div>
31 <div style='height:
30px;'
></div>
33 <div class=
"scroll testcase" id=
"scrollContainerWithHandler">
34 <div style='height:
10px;'
></div>
35 <div>Scroll content
</div>
36 <div style='height:
30px;'
></div>
38 <div id=
"scroll2" class=
"scroll" style=
"margin-bottom: 10px">
39 <div style='height:
10px;'
></div>
40 <div id=
"scroll2b" class=
"scroll">
41 <div style='height:
10px;'
></div>
42 <div class=
"testcase" id=
"nestedContent">Nested content
</div>
43 <div style='height:
30px;'
></div>
45 <div style='height:
30px;'
></div>
47 <div id=
"scroll3" class=
"scroll" style=
"margin-bottom: 10px">
48 <div style='height:
10px;'
></div>
49 <div class=
"testcase" id=
"fixedPositionContentContainer">
51 <div id=
"fixedPositionNestedContent">Fixed content
</div>
53 <div style='height:
30px;'
></div>
55 <div id=
"scroll4" class=
"scroll" style=
"margin-bottom: 10px">
56 <div style='height:
10px;'
></div>
57 <div id=
"overflowwithhandler" class=
"scroll testcase" style=
"height: 25px;">
58 <div style='height:
30px;'
></div>
59 <div>overflow div
</div>
62 <div id=
"scroll5" class=
"scroll" style=
"margin-bottom: 10px">
63 <div style='height:
10px;'
></div>
64 <div id=
"nonCompositedNonScrollableLayer" style=
"position: relative">
65 <div style='height:
10px;'
></div>
66 <div class=
"testcase" id=
"divInsideNonScrollableLayer">touch handler
</div>
67 <div style='height:
60px;'
></div>
69 <div style='height:
50px;'
></div>
71 <div id=
"scroll6" class=
"scroll" style=
"margin-bottom: 10px">
72 <div style='height:
10px;'
></div>
73 <div id=
"compositedLayer" style=
"transform: translateZ(0)">
74 <div style='height:
10px;'
></div>
75 <div class=
"testcase" id=
"divInsideCompositedLayer">div in composited
</div>
77 <div style='height:
30px;'
></div>
79 <div id=
"overflowwithborder" class=
"scroll testcase">
80 <div style='height:
30px;'
></div>
82 <div style='height:
60px;'
></div>
86 <div id=
"console"></div>
87 <script src=
"resources/compositor-touch-hit-rects.js"></script>
89 // Make fixed-position cases slightly more interesting
90 window
.scrollTo(0, 13);
92 if (window
.internals
) {
93 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(false);