diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/grid-items/grid-items-contribution-negative-margins.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/grid-items/grid-items-contribution-negative-margins.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/grid-items/grid-items-contribution-negative-margins.html b/testing/web-platform/tests/css/css-grid/grid-items/grid-items-contribution-negative-margins.html new file mode 100644 index 0000000000..7f55bea748 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/grid-items/grid-items-contribution-negative-margins.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: Grid items contribution with negative margin</title> +<link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-items" title="4 Grid Items"> +<meta name="assert" content="This test checks that grid items are properly placed with negative margin."> +<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> +<style> + #grid { + background: red; + display: grid; + grid-auto-flow: column; + width: 100px; + height: 100px; + overflow: hidden; + } + + #grid > div { + width: 100px; + height: 100px; + } +</style> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + +<div id="grid"> + <div style="background: blue; margin-left: -100px;"></div> + <div style="background: green;"></div> +</div> |