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

Unified Diff: LayoutTests/fast/table/display-as-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/display-as-inline.html
diff --git a/LayoutTests/fast/table/display-as-inline.html b/LayoutTests/fast/table/display-as-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..dff54f1713ce74b5398c62f88919e51b939cffdb
--- /dev/null
+++ b/LayoutTests/fast/table/display-as-inline.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<p>Test that a table row inside a TABLE that's displayed as inline
+ gets wrapped inside an anonymous inline-table.</p>
+<span id="first">This</span> text
+<table style="display:inline; border-spacing:0;">
+ <tr>
+ <td style="vertical-align:baseline; padding:0;">should be</td>
+ </tr>
+</table>
+on one <span id="last">line.</span>
+<div id="console"></div>
+<script>
+ var firstTop = document.getElementById('first').getClientRects()[0].top;
+ var lastTop = document.getElementById('last').getClientRects()[0].top;
+ shouldBe("firstTop", "lastTop");
+</script>
« no previous file with comments | « LayoutTests/fast/table/column-in-inline-expected.html ('k') | LayoutTests/fast/table/display-as-inline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698