<!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="Float nested in an inline should determine margin trimming from IFC root">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
container {
    display: block;
    inline-size: 100px;
    margin-trim: inline;
    font-size: 0px;
}
item {
    display: block;
    inline-size: 50px;
    height: 100px;
    background-color: green;
}
.inline-block {
    display: inline-block;
}
.floating {
    float: right;
    margin-inline-end: 20px; 
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<container>
<item class="inline-block"></item>
<span><item class="floating"></item></span>
</container>
</body>
</html>
