| <!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> |