summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/image-percentage-max-height-in-anonymous-block.html
blob: 5b1713975eb21e96a558933f81412a7bb0007d19 (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#max-size-properties">
<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="width:100px; height:100px; background:red;">
  <div></div>
  <!-- The image is a 1x1 transparent one. -->
  <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" style="max-width:100px; height:1000px; max-height:100%; background:green;">
</div>