summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/style/table-selection.html
blob: 67807965a938001754b4755f14968c177ec53a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html> 
<head>

<style>
.editing { 
    border: 2px solid red; 
    padding: 12px; 
    font-size: 24px; 
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>

<script>

function editingTest() {
    var selection = window.getSelection();
    selection.collapse(document.getElementById("selStart"), 0);
    extendSelectionForwardByLineCommand();
    extendSelectionForwardByLineCommand();
    justifyCenterCommand();
    fontSizeDeltaCommand();
}

</script>

<title>Editing Test</title> 
</head> 
<body id="root" contenteditable>
<div id="test" class="editing">
<table> <tr> <td id="selStart"> foo </td> </tr> <tr> <td id="selEnd"> bar </td> </tr> </table>
</div>
<script>
runEditingTest();
</script>

</body>
</html>