Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / nodesFromRect / nodesFromRect-embedded-frame-content.html
blobc6ce9a51a2a52dd7f5941ce9e0555e7f50bab05d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>REGRESSION(r143727): Clicking / selecting inside an embed is broken - bug 111217</title>
5 <script src="../../../resources/js-test.js"></script>
6 <script src="resources/nodesFromRect.js"></script>
7 <style>
8 body { margin: 0px; }
9 #sandbox {
10 width: 400px;
11 height: 200px;
13 #sandbox embed {
14 float: right;
15 display: block;
16 box-sizing: border-box;
17 width: 200px;
18 height: 200px;
19 border: none;
21 #sandbox object {
22 display: block;
23 box-sizing: border-box;
24 width: 200px;
25 height: 200px;
26 border: none;
28 </style>
29 </head>
30 <body id="body">
31 <div id=sandbox>
32 <embed id="childframe1" src="resources/child-frame.html"></embed>
33 <object id="childframe2" type="text/html" data="resources/child-frame.html"></object>
34 </div>
36 <p id='description'></p>
37 <div id="console"></div>
38 <script type="application/javascript">
39 function runTest()
41 description(document.title);
43 // Set up shortcut access to elements
44 var e = {};
45 ['sandbox', 'layer'].forEach(function(a) {
46 e[a] = document.getElementById(a);
47 });
49 checkPoint(20, 20, "DIV#left");
50 checkPoint(140, 20, "DIV#right");
52 checkPoint(220, 20, "DIV#left");
53 checkPoint(340, 20, "DIV#right");
55 checkRect(25, 25, 100, 100, "DIV#right, DIV#left, HTML");
56 checkRect(250, 20, 100, 70, "DIV#right, DIV#left, HTML");
58 checkRect(150, 50, 100, 100, "DIV#right, HTML, #document, OBJECT#childframe2, DIV#left, HTML, #document, EMBED#childframe1, DIV#sandbox");
61 e.sandbox.display = 'none';
62 finishJSTest();
64 jsTestIsAsync = true;
65 window.onload = runTest;
66 </script>
67 </body>
68 </html>