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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3
4 <table id="table" style="display:inline">
5 <thead id="thead" style="display:inline-table">
6 <tr id="tr1" style="display:inline-block">
7 <td id="td1"></td>
8 </tr>
9 </thead>
10 <tbody id="tbody" style="display:block">
11 <tr id="tr2" style="display:table">
12 <tr id="tr3" style="display: table-row-group">
13 </tr>
14 </tbody>
15 </table>
16 <script>
17 test(function() {
18 assert_equals(getComputedStyle(table).display, "inline");
19 assert_equals(getComputedStyle(thead).display, "inline-table");
20 assert_equals(getComputedStyle(tr1).display, "inline-block");
21 assert_equals(getComputedStyle(td1).display, "table-cell");
22 assert_equals(getComputedStyle(tbody).display, "block");
23 assert_equals(getComputedStyle(tr2).display, "table");
24 assert_equals(getComputedStyle(tr3).display, "table-row-group");
25 }, "Test to make sure that in quirks mode table elements with display act as the y do in standard mode and retain display value");
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698