wpt / css / css-multicol / multicol-under-vertical-rl-scroll.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-multicol/multicol-under-vertical-rl-scroll.html

<!DOCTYPE html>
<title>Multicol under vertical-rl scrolling container</title>
<link rel="match" href="multicol-under-vertical-rl-scroll-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-multicol">
<meta name="assert" content="Test that multicol works as expected when overflow is scrolling in vertical-rl" />
<p>Passes if there are two green squares</p>
<div style="width: 200px; height: 200px; overflow: scroll; writing-mode: vertical-rl; border: 1px solid black">
  <div style="columns: 2; column-gap: 20px; width: 80px; height: 180px">
    <div style="width: 160px; background: green"></div>
  </div>
  <div style="width: 500px; height: 500px"></div>
</div>

/css/css-multicol/multicol-under-vertical-rl-scroll-ref.html

<!DOCTYPE html>
<title>Multicol under vertical-rl scrolling container</title>
<p>Passes if there are two green squares</p>
<div id="scroller" style="width: 200px; height: 200px; overflow: scroll; border: 1px solid black">
  <div style="width: 580px; height: 500px; position: relative">
    <div style="position: absolute; right: 0">
      <div style="width: 80px; height: 80px; background: green"></div>
      <div style="height: 20px"></div>
      <div style="width: 80px; height: 80px; background: green"></div>
    </div>
  </div>
</div>
<script>
// Scroll all the way to the right.
scroller.scrollLeft = 800;
</script>