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

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

Issue 1612273002: Don't force display:table-cell and float:none on table cell 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
1 <script src="../../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
3 3
4 <table id="table" style="display:inline"> 4 <table id="table" style="display:inline">
5 <thead id="thead" style="display:inline-table"> 5 <thead id="thead" style="display:inline-table">
6 <tr id="tr1" style="display:inline-block"> 6 <tr id="tr1" style="display:inline-block">
7 <td id="td1"></td> 7 <td id="td1" style="display:block; float:left"></td>
8 </tr> 8 </tr>
9 </thead> 9 </thead>
10 <tbody id="tbody" style="display:block"> 10 <tbody id="tbody" style="display:block">
11 <tr id="tr2" style="display:table"> 11 <tr id="tr2" style="display:table">
12 <tr id="tr3" style="display: table-row-group"> 12 <tr id="tr3" style="display: table-row-group">
13 </tr> 13 </tr>
14 </tbody> 14 </tbody>
15 </table> 15 </table>
16 <script> 16 <script>
17 test(function() { 17 test(function() {
18 assert_equals(getComputedStyle(table).display, "inline"); 18 assert_equals(getComputedStyle(table).display, "inline");
19 assert_equals(getComputedStyle(thead).display, "inline-table"); 19 assert_equals(getComputedStyle(thead).display, "inline-table");
20 assert_equals(getComputedStyle(tr1).display, "inline-block"); 20 assert_equals(getComputedStyle(tr1).display, "inline-block");
21 assert_equals(getComputedStyle(td1).display, "table-cell"); 21 assert_equals(getComputedStyle(td1).display, "block");
22 assert_equals(getComputedStyle(td1).float, "left");
22 assert_equals(getComputedStyle(tbody).display, "block"); 23 assert_equals(getComputedStyle(tbody).display, "block");
23 assert_equals(getComputedStyle(tr2).display, "table"); 24 assert_equals(getComputedStyle(tr2).display, "table");
24 assert_equals(getComputedStyle(tr3).display, "table-row-group"); 25 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 }, "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> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698