Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-text-with-style.html
blobf28a05e684f8026efd3a603266618d2c7899c79c
1 <!DOCTYPE html>
2 <html>
3 <head>
5 <style>
6 .editing {
7 border: 2px solid red;
8 font-size: 24px;
10 .explanation {
11 border: 2px solid blue;
12 padding: 12px;
13 font-size: 24px;
14 margin-bottom: 24px;
16 .scenario { margin-bottom: 16px;}
17 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
18 .expected-results:first-line { font-weight: bold }
19 </style>
20 <script src=../editing.js></script>
21 <script src="../../resources/dump-as-markup.js"></script>
23 <script>
24 if (window.testRunner)
25 testRunner.dumpAsText();
27 function editingTest() {
28 Markup.dump('test', 'Markup before');
29 selectAllCommand();
30 copyCommand();
31 pasteCommand();
32 Markup.dump('test', 'Markup after');
34 </script>
36 <title>Editing Test</title>
37 </head>
38 <body>
39 <div class="explanation">
40 <div class="scenario">
41 Tests:
42 <br>
43 Fix for this bug:
44 <a href="https://bugs.webkit.org/show_bug.cgi?id=56874">&lt;https://bugs.webkit.org/show_bug.cgi?id=56874&gt;</a> Repeated copy and paste-in-place operation results in increasingly verbose HTML.
45 </div>
46 <div class="expected-results">
47 Expected Results:
48 <br>
49 The markup before and after should be identical.
50 </div>
51 </div>
52 <div contenteditable id="test" class="editing">
53 <b><i>hello bold and italic</i></b><div><i>hello italic</I></div><div><font color="#ff0000">hello red</font></div>
54 </div>
56 <script>
57 runEditingTest();
58 </script>
60 </body>
61 </html>