Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-box/margin-trim/flex-inline-end-trimmed-only.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>margin-trim: flex-inline-end-trimmed-only</title>
<link rel="author" href="mailto:sammy.gill@apple.com">
<link rel="match" href="flex-inline-end-trimmed-only-ref.html">
<meta name="assert" content="inline-end should trim only inline-end margins of flex items">
<style>
flexbox {
display: flex;
width: min-content;
border: 1px black solid;
margin-trim: inline-end;
}
item {
display: block;
background-color: green;
width: 50px;
height: 50px;
margin-inline: 10px;
margin-block: 10px;
}
</style>
</head>
<body>
<flexbox>
<item></item>
<item></item>
<item></item>
</flexbox>
</body>
</html>