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>
16 box-sizing: border-box;
23 box-sizing: border-box;
32 <embed id=
"childframe1" src=
"resources/child-frame.html"></embed>
33 <object id=
"childframe2" type=
"text/html" data=
"resources/child-frame.html"></object>
36 <p id='description'
></p>
37 <div id=
"console"></div>
38 <script type=
"application/javascript">
41 description(document.title);
43 // Set up shortcut access to elements
45 ['sandbox', 'layer'].forEach(function(a) {
46 e[a] = document.getElementById(a);
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';
65 window.onload = runTest;