Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/non-replaced-elements/the-page/body-margin-3a.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset=utf-8>
<title>Test that body's rightmargin and bottommargin attributes are ignored in standards mode</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body rightmargin=100 bottommargin=100>
<script>
test(() => {
const style = getComputedStyle(document.body);
assert_equals(style.marginTop, '8px');
assert_equals(style.marginRight, '8px');
assert_equals(style.marginBottom, '8px');
assert_equals(style.marginLeft, '8px');
});
</script>