summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-box/margin-trim/grid-block-start.html
blob: 21d5447253581111503f95bb304107d0b70871d8 (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: grid-block-start</title>
<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-grid">
<link rel="match" href="grid-block-start-ref.html">
<meta name="assert" content="block-start should trim block-start margins of items on first row">
<style>
grid {
    display: inline-grid;
    border: 1px solid black;
    grid-template-columns: auto auto;
    margin-trim: block-start;
}
item {
    display: block;
    background-color: green;
    width: 50px;
    height: 50px;
    margin-block-start: 10px;
}
</style>
</head>
<body>
<grid>
<item></item>
<item></item>
<item></item>
<item></item>
</grid>
</body>
</html>