mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
34 lines
795 B
HTML
34 lines
795 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>margin-trim: flex-row-block-multiline</title>
|
|
<link rel="author" href="mailto:sammy.gill@apple.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
|
<link rel="match" href="flex-row-block-multiline-ref.html">
|
|
<meta name="assert" content="block-start margins are trimmed for items on first flex line and block-end margins and trimmed for items on last flex line">
|
|
<style>
|
|
flexbox {
|
|
display: flex;
|
|
width: 100px;
|
|
flex-wrap: wrap;
|
|
margin-trim: block;
|
|
border: 1px solid black;
|
|
}
|
|
item {
|
|
display: block;
|
|
background-color: green;
|
|
width: 50px;
|
|
height: 50px;
|
|
margin-block: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<flexbox>
|
|
<item></item>
|
|
<item></item>
|
|
<item></item>
|
|
<item></item>
|
|
</flexbox>
|
|
</body>
|
|
</html>
|