blob: 15768ea7aa91425b12d9dee0dacd0eb83bf0cc91 (
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
34
|
<!DOCTYPE html>
<html>
<head>
<title>margin-trim: grid-trim-ignores-collapsed-tracks</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="/css/reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="should ignore collapsed margins when determining if an edge should be trimmed">
<style>
grid {
display: inline-grid;
grid-template-rows: repeat(auto-fit, 250px);
grid-template-columns: repeat(auto-fit, 250px);
margin-trim: block-start inline-start;
}
item {
display: block;
background-color: green;
grid-column: 2;
grid-row: 2;
margin-inline-start: 30px;
margin-block-start: 50px;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<grid>
<item></item>
</grid>
</body>
</html>
|