<!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 that overconstrains a line box should be able to trim its margins and no longer overconstrain in rtl direction">
<style>
container {
    display: block;
    direction: rtl;
    border: 1px solid black;
    inline-size: 300px;
    font-family: monospace;
    font-size: 10px;
    margin-trim: inline;
}
item {
    display: block;
    inline-size: 25px;
    block-size: 80px;
    background-color: green;
    margin-inline-start: 80px;
    float: left;
}
</style>
</head>
<body>
<container>
    <span>The text should wrap alongside the float with</span>
    <item></item>
    <span>the trimmed margin to the left</span>
</container>
</body>
</html>
