4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css">
23 -webkit-transform: translate(300px, 2px);
25 #tests > #transform2d {
27 -webkit-transform: scale(1.2) rotate(1grad);
29 #overhangingContainer {
32 #overhangingFloatingChild {
36 #tests > #transform3d {
41 -webkit-transform: rotate3d(0.2, 1, 0, 50grad);
44 /* Move the list item over to make sure it doesn't overlap with the list itself */
45 -webkit-transform: translate(300px, 0);
52 border: 1px solid lightgrey;
59 This tests verifies the hit test regions given to the compositor. It can only be run in DumpRenderTree.
60 The outputted rects should cover the hit test regions of all the listed elements. Enable visualize mode
61 to quickly validate graphically.</p>
64 <div class="testcase" id="normalFlow">
68 <div class="testcase" id="inlineOverflow">
69 <span>Inline_overflow more</span>
71 <div class="testcase" id="absoluteChildContainer">
73 <span id="absoluteChild">Absolute child</span>
75 <div class="testcase" id="relativeChildContainer">
76 RELATIVE CHILD CONTAINER
77 <span id="relativeChild">Relative child</span>
79 <div class="testcase" id="fixed">
82 <div class="testcase" id="translate">
83 <div id="translateChild">Translated</div>
85 <div class="testcase" id="transform2d">
88 <div class="testcase" id="overhangingContainer">
89 <div id="overhangingFloatingChild">Overhanging float overhanging float</div>
91 <div style="clear: both;"></div>
92 <div class="testcase" id="transform3d">
93 <div id="transform3dChild">Transformed 3D</div>
96 <b class="testcase" id="continuation">
103 <span class="testcase" id="inlineAbsoluteChildContainer">
104 Inline with absolute child
105 <span id="absoluteChild">Absolute child in inline.</span>
109 <ul class="testcase" id="list">
113 <div class="testcase" id="styleModified">
114 Style modified dynamically
116 <div class="testcase" id="containsSvg">
118 <line x1="0" y1="5" x2="100" y2="5" stroke-width="3" stroke="black"/>
123 <line class="testcase" id="svgline" x1="0" y1="5" x2="20" y2="5" stroke-width="3" stroke="black"/>
124 <line x1="40" y1="5" x2="60" y2="5" stroke-width="3" stroke="black"/>
128 <tr><td>cell<td>cell</td></tr>
129 <tr><td>cell</td><td class="testcase" id="tablecell">cell</td></tr>
133 <div id="console"></div>
134 <div style="height: 1000px;"></div>
135 <script src="resources/compositor-touch-hit-rects.js"></script>
137 preRunHandlerForTest['styleModified'] = function(e) {
138 // Adding padding to the element should force the rects to be recomputed.
139 e.style.padding = '5px';
142 // Make fixed-position cases slightly more interesting
143 window.scrollTo(0, 13);
145 if (window.internals) {
146 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(false);