summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-042.html
blob: 6f71a73194b0981bd69af6b0fd4cc6f5fb555b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1335009">
<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: flex;">
  <div style="background: green;">
    <div style="height: 50px; width: 100px;"></div>
    <button id="target" style="all: unset; display: block; height: 90%; line-height: 0; aspect-ratio: 1; min-height: 50px;"></button>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '100%';
</script>