Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-div-022.html
blobaa8e89a0f627f36cbb82aa99fc88dd7173841333
1 <html>
2 <head>
4 <style>
5 body {
6 font-size: 24px;
8 .editing {
9 border: 2px solid red;
10 padding: 12px;
12 p {
13 border: 2px solid blue;
14 padding: 12px;
16 br {
17 background-color: green;
20 </style>
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
23 <script>
25 function editingTest() {
26 for (i = 0; i < 3; i++)
27 moveSelectionForwardByCharacterCommand();
28 insertParagraphCommand();
29 typeCharacterCommand();
32 </script>
34 <title>Editing Test</title>
35 </head>
36 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 Test inserting paragraphs: should see "foo" in a blue box, then a blue box with with two lines in it: First line a bold "x"; second line a non-bold "bar". Fix for this bug:
39 <a href="rdar://problem/3924579">&lt;rdar://problem/3927554&gt;</a> Style info applied to remainder of document after a newline is entered
41 <div style="height: 12px"></div>
43 <p id="test"><b>foo</b><br>bar</p>
45 <script>
46 runEditingTest();
47 </script>
49 </body>
50 </html>