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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html

Issue 1607703003: Don't force display:inline-table/table on table elements when in quirks mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html b/third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html
new file mode 100644
index 0000000000000000000000000000000000000000..0750ad93295021108e83b719fdd6f9b1318419c7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html
@@ -0,0 +1,26 @@
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<table id="table" style="display:inline">
+ <thead id="thead" style="display:inline-table">
+ <tr id="tr1" style="display:inline-block">
+ <td id="td1"></td>
+ </tr>
+ </thead>
+ <tbody id="tbody" style="display:block">
+ <tr id="tr2" style="display:table">
+ <tr id="tr3" style="display: table-row-group">
+ </tr>
+ </tbody>
+</table>
+<script>
+test(function() {
+ assert_equals(getComputedStyle(table).display, "inline");
+ assert_equals(getComputedStyle(thead).display, "inline-table");
+ assert_equals(getComputedStyle(tr1).display, "inline-block");
+ assert_equals(getComputedStyle(td1).display, "table-cell");
+ assert_equals(getComputedStyle(tbody).display, "block");
+ assert_equals(getComputedStyle(tr2).display, "table");
+ assert_equals(getComputedStyle(tr3).display, "table-row-group");
+}, "Test to make sure that in quirks mode table elements with display act as they do in standard mode and retain display value");
+</script>

Powered by Google App Engine
This is Rietveld 408576698