After copy and paste, cursor may appear to be above the bottom of content
[WebKit-https.git] / LayoutTests / editing / pasteboard / copy-paste-inserts-clearing-div-expected.txt
1 This tests to see if floating elements cause a clearing element to be inserted upon copy/paste
2
3 first test - before:
4 | <html>
5 |   <head>
6 |     "
7 "
8 |     <meta>
9 |       content="text/html; charset=utf-8"
10 |       http-equiv="Content-type"
11 |     "
12 "
13 |     <script>
14 |       src="../../resources/dump-as-markup.js"
15 |       type="text/javascript"
16 |     "
17 "
18 |   "
19 "
20 |   <body>
21 |     "
22 Before
23 "
24 |     <div>
25 |       style="position: absolute; top: 0px; right: 0px; width: 100px; height: 100px; background: yellow;"
26 |     "
27 "
28 |     <div>
29 |       style="float: right; width: 200px; height: 200px; background: blue;"
30 |     "
31 After
32
33 "
34 |     <script>
35 |       "
36
37 Markup.description('This tests to see if floating elements cause a clearing element to be inserted upon copy/paste');
38
39 document.designMode = 'on';
40
41 if (window.internals)
42     window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
43
44 var s = window.getSelection();
45
46 Markup.dump('test1', 'first test - before');
47 document.execCommand("SelectAll");
48 document.execCommand("Cut");
49 document.execCommand("Paste");
50 Markup.dump('test1', 'first test - after');
51
52 "
53
54 first test - after:
55 | <html>
56 |   <head>
57 |     "
58 "
59 |     <meta>
60 |       content="text/html; charset=utf-8"
61 |       http-equiv="Content-type"
62 |     "
63 "
64 |     <script>
65 |       src="../../resources/dump-as-markup.js"
66 |       type="text/javascript"
67 |     "
68 "
69 |   "
70 "
71 |   <body>
72 |     <div>
73 |       style="position: relative;"
74 |       "BeforeĀ "
75 |       <div>
76 |         style="position: absolute; top: 0px; right: 0px; width: 100px; height: 100px; background-color: yellow;"
77 |       <div>
78 |         style="float: right; width: 200px; height: 200px; background-color: blue;"
79 |       "After<#selection-caret>"
80 |       <div>
81 |         style="clear: both;"
82 |     <script>
83 |       "
84
85 Markup.description('This tests to see if floating elements cause a clearing element to be inserted upon copy/paste');
86
87 document.designMode = 'on';
88
89 if (window.internals)
90     window.internals.settings.setShouldConvertPositionStyleOnCopy(true);
91
92 var s = window.getSelection();
93
94 Markup.dump('test1', 'first test - before');
95 document.execCommand("SelectAll");
96 document.execCommand("Cut");
97 document.execCommand("Paste");
98 Markup.dump('test1', 'first test - after');
99
100 "