Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / style-boundary-004.html
blob47c877e196919f74af490903ee8fa7c9108e636b
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
18 </style>
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
21 <script>
23 function editingTest() {
24 moveSelectionForwardByCharacterCommand();
25 extendSelectionForwardByCharacterCommand();
26 extendSelectionForwardByCharacterCommand();
27 boldCommand();
30 </script>
32 <title>Editing Test</title>
33 </head>
34 <body>
36 <div class="explanation">
37 <div class="scenario">
38 Tests:
39 <br>
40 Style checks performed on boundaries between style changes.
41 </div>
42 <div class="expected-results">
43 Expected Results:
44 <br>
45 Should see this content in the red box below: <b><div>a</div><div>b</div></b>
46 </div>
47 </div>
49 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
50 <div id="test" class="editing"><div><b>a</b></div><div>b</div></div>
51 </div>
53 <script>
54 runEditingTest();
55 </script>
57 </body>
58 </html>