Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / unrendered-001.html
blobc2ff0b026f14af59c20e741163b53592febb0d47
1 <html>
2 <head>
4 <style>
5 body { overflow:hidden; }
6 .editing {
7 border: solid red 50px;
8 font-size: 24px;
9 line-height: 48px;
10 padding: 24px;
11 margin: 64px;
12 width: 600px;
14 </style>
15 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
17 <script>
19 function editingTest() {
20 var elem = document.getElementById("test-2");
21 var selection = window.getSelection();
22 selection.collapse(elem.firstChild, 2);
25 </script>
27 <title>Editing Test</title>
28 </head>
29 <body>
30 <div contenteditable id="root" class="editing">
31 <span id="test-1">foo</span><span id="test-2" style='display: none;'>bar</span> baz
32 </div>
34 <script>
35 runEditingTest();
36 </script>
38 </body>
39 </html>