<!DOCTYPE html>
<html>
<head>
<title>margin-trim: block-container-block-start-collapsed-margins</title>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block">
<meta name="assert" content="collapsed block-start margins should be trimmed but not affect container margins">
<style>
container {
display: block;
margin-trim: block;
margin-block-start: 10px;
}
item {
display: block;
width: 50px;
height: 50px;
background-color: green;
}
</style>
</head>
<body>
<item style="margin-block-start: 0px;"></item>
<container>
<item></item>
</container>
</body>
</html>