diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.html b/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.html new file mode 100644 index 0000000000..04c5d143d9 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/subgrid/dynamic-min-content-002.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-rows: subgrid; writing-mode: vertical-rl;"> + <div id="target" style="writing-mode: horizontal-tb; width: 50px;"></div> + </div> +</div> +<script> +document.body.offsetTop; +document.getElementById('target').style.width = '100px'; +</script> |