Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-box/margin-trim/block-container-block-end-self-collapsing-children-offsets-vert-lr.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<meta name="assert" content="self-collapsing children at end of block with margin-trim block-end should be positioned at the bottom of the block container">
<style>
body {
writing-mode: vertical-lr;
}
container {
display: block;
margin-trim: block;
margin-block-end: 10px;
}
item {
display: block;
margin-block-end: 40px;
inline-size: 50px;
block-size: 50px;
background-color: green;
}
.collapsed {
margin-block-start: 50px;
block-size: 0px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
</head>
<body onload="checkLayout('container > item')">
<div id="target">
<container>
<item data-offset-x="8"></item>
<item data-offset-x="58" class="collapsed"></item>
<item data-offset-x="58" class="collapsed"></item>
</container>
</div>
</body>
</html>