summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/flow-content-0/form-margin-quirk.html
blob: 7f6618bb782a0460d286930f05866ea9b432a1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- quirks -->
<title>form margin quirk</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<style>
form { writing-mode: vertical-lr; }
#ref { margin: 0 1em 0 0; }
</style>
<form id=form></form>
<div id=ref></div>
<script>
test(() => {
  const formStyle = getComputedStyle(document.getElementById('form'));
  const refStyle = getComputedStyle(document.getElementById('ref'));
  assert_equals(formStyle.marginTop, refStyle.marginTop, 'marginTop');
  assert_equals(formStyle.marginRight, refStyle.marginRight, 'marginRight');
  assert_equals(formStyle.marginBottom, refStyle.marginBottom, 'marginBottom');
  assert_equals(formStyle.marginLeft, refStyle.marginLeft, 'marginLeft');
});
</script>