diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html b/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html new file mode 100644 index 0000000000..97fa9b1327 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-001.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-grid-2/"> +<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="display: grid; height: 100px; width: min-content; background: green;"> + <div style="display: grid; grid-template-columns: subgrid;"> + <div id="target" style="width: 50px;"></div> + </div> +</div> +<script> +document.body.offsetTop; +document.getElementById('target').style.width = '100px'; +</script> |