<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block">
<meta name="assert" content="floats should not contribute trimmed margins for container intrinsic sizing">
<style>
container {
    display: block;
    width: min-content;
    height: 100px;
    margin-trim: inline;
}
item {
    display: block;
    width: 100px;
    height: 50px;
    background-color: green;
}
.float {
    float: left;
    margin-inline: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<container>
    <item></item>
    <item class="float"></item>
</container>
</body>
</html>
