Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / format-block-contenteditable-false.html
blobdeae85af85c049b0f653a188cc0ade2ead1d83bf
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/dump-as-markup.js"></script>
5 </head>
6 <body>
7 <div id="editorcontainer" contenteditable="true">
8 Will select from here
9 <div contenteditable="false">
10 over this contenteditable=false div
11 </div>
12 until here.
13 </div>
14 </body>
15 <script>
16 Markup.description('formatblock on selection with a contenteditable="false" child.');
18 var selection = window.getSelection();
19 selection.removeAllRanges();
21 var container = document.getElementById('editorcontainer');
22 var range = document.createRange()
23 range.setStartBefore(container.firstChild);
24 range.setEndAfter(container.lastChild);
25 selection.addRange(range);
27 document.execCommand('italic', false, "");
28 document.execCommand('formatblock', false, "<h1>");
30 Markup.dump(container);
31 </script>
32 </html>