summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-with-dynamic-img.html
blob: ff7d2b8069c74e43ec10e72d4709c661e7874d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>