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

Unified Diff: LayoutTests/fast/table/table-parts-in-inline.html

Issue 895953003: Insert an anonymous inline-table when inserting a table part under an inline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review - lump similar tests together in one file. Created 5 years, 10 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
Index: LayoutTests/fast/table/table-parts-in-inline.html
diff --git a/LayoutTests/fast/table/table-parts-in-inline.html b/LayoutTests/fast/table/table-parts-in-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..f0caf36dc8ac05464ad00bdd1b4000b611f28abd
--- /dev/null
+++ b/LayoutTests/fast/table/table-parts-in-inline.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<p>Test that a table part child of an inline is wrapped inside an inline-table.</p>
+<div id="cell" class="test">
+ <span class="first">This</span> text
+ <span>
+ should be
+ <div style="display:table-cell;">on</div>
+ one
+ </span>
+ <span class="last">line.</span>
+</div>
+<div id="row" class="test">
+ <span class="first">This</span> text
+ <span>
+ should be
+ <div style="display:table-row;">on</div>
+ one
+ </span>
+ <span class="last">line.</span>
+</div>
+<div id="row-group" class="test">
+ <span class="first">This</span> text
+ <span>
+ should be
+ <div style="display:table-row-group;">on</div>
+ one
+ </span>
+ <span class="last">line.</span>
+</div>
+<div id="console"></div>
+<script>
+ var tests = document.querySelectorAll(".test");
+ for (var i = 0; i < tests.length; i++) {
+ debug("Testing " + tests[i].id + ":");
+ var id = "#" + tests[i].id;
+ var firstTop = document.querySelector(id + ' > .first').getClientRects()[0].top;
+ var lastTop = document.querySelector(id + ' > .last').getClientRects()[0].top;
+ shouldBe("firstTop", "lastTop");
+ }
+</script>
« no previous file with comments | « LayoutTests/fast/table/row-in-inline-block-expected.txt ('k') | LayoutTests/fast/table/table-parts-in-inline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698