4 <link rel=
"stylesheet" href=
"resources/compositor-touch-hit-rects.css">
23 transform: translate(
300px,
2px);
25 #tests
> #transform2d {
27 transform: scale(
1.2) rotate(
1grad);
29 #overhangingContainer {
32 #overhangingFloatingChild {
36 #tests
> #transform3d {
40 #withNegativeOffsetChild {
44 border:
1px dotted blue;
45 transform: translateX(calc(
120%)) translateZ(
0);
48 #negativeOffsetChild {
56 transform: rotate3d(
0.2,
1,
0,
50grad);
59 /* Move the list item over to make sure it doesn't overlap with the list itself */
60 transform: translate(
300px,
0);
67 border:
1px solid lightgrey;
74 This tests verifies the hit test regions given to the compositor. It can only be run in DumpRenderTree.
75 The outputted rects should cover the hit test regions of all the listed elements. Enable visualize mode
76 to quickly validate graphically.
</p>
79 <div class=
"testcase" id=
"normalFlow">
83 <div class=
"testcase" id=
"inlineOverflow">
84 <span>Inline_overflow more
</span>
86 <div class=
"testcase" id=
"absoluteChildContainer">
88 <span id=
"absoluteChild">Absolute child
</span>
90 <div class=
"testcase" id=
"relativeChildContainer">
91 RELATIVE CHILD CONTAINER
92 <span id=
"relativeChild">Relative child
</span>
94 <div class=
"testcase" id=
"fixed">
97 <div class=
"testcase" id=
"translate">
98 <div id=
"translateChild">Translated
</div>
100 <div class=
"testcase" id=
"transform2d">
103 <div class=
"testcase" id=
"overhangingContainer">
104 <div id=
"overhangingFloatingChild">Overhanging float overhanging float
</div>
106 <div style=
"clear: both;"></div>
107 <div class=
"testcase" id=
"transform3d">
108 <div id=
"transform3dChild">Transformed
3D
</div>
110 <div id=
"withNegativeOffsetChild">
111 <div id=
"negativeOffsetChild" class=
"testcase"></div>
114 <b class=
"testcase" id=
"continuation">
121 <span class=
"testcase" id=
"inlineAbsoluteChildContainer">
122 Inline with absolute child
123 <span id=
"absoluteChild">Absolute child in inline.
</span>
127 <ul class=
"testcase" id=
"list">
131 <div class=
"testcase" id=
"styleModified">
132 Style modified dynamically
134 <div class=
"testcase" id=
"containsSvg">
136 <line x1=
"0" y1=
"5" x2=
"100" y2=
"5" stroke-width=
"3" stroke=
"black"/>
141 <line class=
"testcase" id=
"svgline" x1=
"0" y1=
"5" x2=
"20" y2=
"5" stroke-width=
"3" stroke=
"black"/>
142 <line x1=
"40" y1=
"5" x2=
"60" y2=
"5" stroke-width=
"3" stroke=
"black"/>
146 <tr><td>cell
<td>cell
</td></tr>
147 <tr><td>cell
</td><td class=
"testcase" id=
"tablecell">cell
</td></tr>
151 <div id=
"console"></div>
152 <div style=
"height: 1000px;"></div>
153 <script src=
"resources/compositor-touch-hit-rects.js"></script>
155 preRunHandlerForTest
['styleModified'] = function(e
) {
156 // Adding padding to the element should force the rects to be recomputed.
157 e
.style
.padding
= '5px';
160 // Make fixed-position cases slightly more interesting
161 window
.scrollTo(0, 13);
163 if (window
.internals
) {
164 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(false);