Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash.html

Issue 2452993002: Clear floats when we make a ruby base's children inline (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 function characterDataModified() {
4 var oElement = event.srcElement;
5 oElement.parentNode.removeChild(oElement);
6 document.execCommand('SelectWord',false,false);
7 }
8 document.addEventListener("DOMCharacterDataModified", characterDataModified, tru e);
9 function nodeInserted() {
10 var oElement = event.srcElement;
11 oElement.insertAdjacentText('beforebegin', 'xxxo`i$&qqq^pppMmmCCCCCCCCCCCC("') ;
12 document.execCommand('Undo',false,false);
13 oElement.outerHTML = "";
14 }
15 document.addEventListener("DOMNodeInserted", nodeInserted, false);
16 if (window.testRunner)
17 testRunner.dumpAsText();
18 </script>
19 <style id="style">
20 .inline-block { display:inline-block; }
21 .float { float:left; }
22 .table-footer { display:table-footer-group; }
23 </style>
24 <p>crbug.com/658584: Clear floats when a ruby run's children are made inline. Th is test passes if it does not crash.</p>
25 <div id="test"></div>
26 <ruby>
27 <rbc>
28 <rb class="float">
29 AAA
30 </rb>
31 </rbc>
32 <rt class="inline-block"></rt>
33 <rtc class="table-footer"></rtc>
34 </ruby>
35 <script>
36 document.body.offsetTop;
37 var oElement = document.getElementById("test");
38 var oParent = document.getElementById("style");
39 var oPreviousSibling = oParent.childNodes[0];
40 oParent.insertBefore(oElement, oPreviousSibling)
41 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698