diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html b/testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html new file mode 100644 index 0000000000..ff7d2b8069 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1127715"> +<link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> +<p>Test passes if there is a filled green square.</p> +<div style="display: grid; width: 100px;"> + <div style="display: grid; margin: auto;"> + <img id="target" style="max-width: 100%; max-height: 100%;"> + </div> +</div> +<script> +document.body.offsetTop; +document.getElementById('target').src = 'data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="green"></rect></svg>'; +</script> |