summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/percentage-height-replaced-content-in-auto-cb.html
blob: c63c490c370cc2dfe9ffe041229869d67775ac5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#preferred-size-properties">
<p>Test passes if there is a green square below.</p>
<body onload="checkLayout('img')">
  <div>
    <img id="img" data-expected-height="100" style="width: 100px; height: 100%">
  </div>
  <script>
    img.src = "/css/support/60x60-green.png?" + Math.random();
    img.offsetTop;
  </script>
</body>