Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / testcase-9507.html
blobab383dfc22e83150a185f9599f639d51c9e9b074
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src="../editing.js"></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <title>Editing Test</title>
21 </head>
22 <body>
23 <p id="description">When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty &lt;font&gt; tag after 'foo' and before 'bar'.</p>
24 <div contenteditable id="root">
25 <div id="test" class="editing">
26 foo
27 <div style="color: rgb(255, 0, 0);" >
28 <div>bar</div>
29 </div>
30 </div>
31 </div>
32 <script>
34 Markup.description(document.getElementById('description').textContent);
36 setSelectionCommand(document.getElementById("test"),0,document.getElementById("test"),5);
37 copyCommand();
38 Markup.dump('root', 'After copy');
40 pasteCommand();
41 Markup.dump('root', 'After paste');
43 </script>
44 </body>
45 </html>