Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-tables/no-overflow-with-table-cell-margins.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<meta name="assert" content="Table cell margins do not contribute to layout overflow.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
html {
display: table;
width: 100%;
height: 100%;
}
body {
display: table-cell;
width: 100%;
}
</style>
<body></body>
<script>
test(() => {
const scroller = document.scrollingElement;
// There shouldn't be any layout overflow on the root scrollable element.
assert_equals(scroller.clientHeight, scroller.scrollHeight);
});
</script>