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

Unified 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, 2 months 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash.html b/third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b2694cd1d1704fe048b8ec5e86f2a7ea9924263
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/rubybase-children-made-inline-crash.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<script>
+function characterDataModified() {
+ var oElement = event.srcElement;
+ oElement.parentNode.removeChild(oElement);
+ document.execCommand('SelectWord',false,false);
+}
+document.addEventListener("DOMCharacterDataModified", characterDataModified, true);
+function nodeInserted() {
+ var oElement = event.srcElement;
+ oElement.insertAdjacentText('beforebegin', 'xxxo`i$&qqq^pppMmmCCCCCCCCCCCC("');
+ document.execCommand('Undo',false,false);
+ oElement.outerHTML = "";
+}
+document.addEventListener("DOMNodeInserted", nodeInserted, false);
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<style id="style">
+ .inline-block { display:inline-block; }
+ .float { float:left; }
+ .table-footer { display:table-footer-group; }
+</style>
+<p>crbug.com/658584: Clear floats when a ruby run's children are made inline. This test passes if it does not crash.</p>
+<div id="test"></div>
+<ruby>
+ <rbc>
+ <rb class="float">
+ AAA
+ </rb>
+ </rbc>
+ <rt class="inline-block"></rt>
+ <rtc class="table-footer"></rtc>
+</ruby>
+<script>
+ document.body.offsetTop;
+ var oElement = document.getElementById("test");
+ var oParent = document.getElementById("style");
+ var oPreviousSibling = oParent.childNodes[0];
+ oParent.insertBefore(oElement, oPreviousSibling)
+</script>
« 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