summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-box/margin-trim/flex-row-grow.html
blob: 64395461cfd714e37a8dec5ff339f8fc343d3b59 (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
<!DOCTYPE html>
<html>
<head>
<title>margin-trim: flex-row-grow</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="/css/reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="items should grow to take up the space made available by trimming margins">
<style>
flexbox {
    display: flex;
    width: 100px;
    margin-trim: inline;
}
item {
    display: block;
    width: 50px;
    height: 100px;
    margin-inline: 25px;
    flex: 1 0 auto;
    background-color: green;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<flexbox>
<item></item>
</flexbox>
</body>
</html>