1
0
Fork 0
firefox/testing/web-platform/tests/css/css-sizing/stretch/block-height-003.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
808 B
HTML

<!DOCTYPE html>
<link rel="help"
href="https://drafts.csswg.org/css-sizing-4/#stretch-fit-sizing">
<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>These tests assert the behavior described at
https://github.com/w3c/csswg-drafts/issues/11044#issuecomment-2599101601
</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>