Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / touch-rect-assert-first-layer-special.html
blob7c2267f6bf2fb946f6157bfe3fa35df5c93e9309
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 /* By applying a transform to the html element, we ensure that
6 LayoutGeometryMap::pushMappingsToAncestor takes the slow bath (which doesn't push
7 the LayoutView */
8 html {
9 transform: scale(1.1);
11 </style>
12 <script src="../../../resources/js-test.js"></script>
13 </head>
14 <body>
15 <p id="description"></p>
16 <div id="console"></div>
17 <div id="touchtarget" ontouchstart="foo()">Foo</div>
18 <script>
19 description("Make sure we don't ASSERT when the first layer is special and can't use the LayoutGeometryMap fast path - crbug.com/339141.");
21 var rects;
22 // Verify we actually have a hit rect in the document.
23 if (window.internals) {
24 rects = window.internals.touchEventTargetLayerRects(document);
25 shouldBe("rects.length", "1");
26 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document");
28 </script>
29 </body>
30 </html>