Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / style-3998892-fix.html
bloba27962cd69f26b4abc84d65779b1334eea45ca9f
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 for (i = 0; i < 3; i++)
25 moveSelectionForwardByCharacterCommand();
26 extendSelectionForwardByLineCommand();
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 Bug fix for <a href="rdar://problem/3998892">&lt;rdar://problem/3998892&gt;</a> REGRESSION (Mail): bolding a selection
41 from end of line changes unselected text on starting line.
42 </div>
43 <div class="expected-results">
44 Expected Results:
45 <br>
46 Should see first line ("foo") not bold; second line ("bar") bold.
47 </div>
48 </div>
50 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
51 <div id="test" class="editing">
52 <div>foo</div>
53 <div>bar</div>
54 </div>
56 <script>
57 runEditingTest();
58 </script>
60 </body>
61 </html>