summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/tables/table-vspace-hspace.html
blob: c081775b8736b618dbad45525ce6b16bfb81a6aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!-- quirks -->
<meta charset=utf-8>
<title>table vspace hspace (quirks mode)</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div>x</div> <!-- prevent margin collapsing quirks -->
<table vspace=25 hspace=25><tr><td>x</table>
<div>x</div> <!-- prevent margin collapsing quirks -->
<script>
test(function() {
  var style = getComputedStyle(document.querySelector('table'));
  ['marginTop', 'marginRight', 'marginBottom', 'marginLeft'].forEach(function(m) {
    assert_equals(style[m], '0px', m);
  });
});
</script>