Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/stretch/block-height-003.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="help"
<meta name="assert"
content="Both margins are ignored for sizing, but top margin still collapses. Bottom margin doesn't collapse because parent has a definite height.">
<link rel="match" href="block-height-003-ref.html">
<style>
.surrounding-block {
width: 100px;
height: 100px;
border: solid;
}
</style>
<!--
<p>This test asserts the behavior seemingly agreed upon through
is unlikely to be the final specified behavior, hence the test is marked
tentative.</p>
-->
<div class="surrounding-block"></div>
<div style="width: 200px; height: 200px; outline: 1px solid;">
<div
style="height: stretch; margin: 75px 0px 25px 0px; border: 2px dashed blue;">
</div>
</div>
<div class="surrounding-block"></div>