OLD | NEW |
(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> |
OLD | NEW |