summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-box/margin-trim/flex-inline-start-trimmed-only.html
blob: 05cf112e66adc4b1364b789b5697e89c8d0eb594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>margin-trim: flex-inline-start-trimmed-only</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-inline-start-trimmed-only-ref.html">
<meta name="assert" content="inline-start trims only inline-start margin of flex items">
<style>
flexbox {
    display: flex;
    width: min-content;
    border: 1px black solid;
    margin-trim: inline-start;
}
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>