summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/dynamic-orthogonal-flex-item.html
blob: 90791f0be82361c4f1527ce6009be52a94d06aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1456196">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
span {
  display: inline-block;
  inline-size: 100px;
  block-size: 50px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target" style="width: 100px; height: 200px; line-height: 0;">
  <div style="display: inline-flex; height: 100%; background: green;">
    <div style="writing-mode: vertical-rl;">
      <span></span><span></span>
    </div>
  </div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '100px';
</script>