wpt / css / css-multicol / column-rule-001.html

Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-multicol/column-rule-001.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>Column rule in scrollable multicol container</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-gaps-and-rules">
<link rel="match" href="column-rule-001-ref.html">
<style>
  body {
    margin: 0;
  }
  .mc {
    columns: 2;
    column-gap: 110px;
    column-rule: 100px solid;
    height: 100px;
    overflow: hidden;
  }
</style>
<p>There should be <b>two</b> black squares below.</p>
<div id="elm" class="mc">
  <div style="height:600px;"></div>
</div>
<script>
  elm.scrollLeft = 200;
  requestAnimationFrame(()=> {
    requestAnimationFrame(()=> {
      document.documentElement.classList.remove("reftest-wait");
    });
  });
</script>
</html>

/css/css-multicol/column-rule-001-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  body {
    margin: 0;
  }
</style>
<p>There should be <b>two</b> black squares below.</p>
<div style="float:right; width:100px; height:100px; margin-right:95px; background:black;"></div>
<div style="width:500px; margin:auto;">
  <div style="width:100px; height:100px; background:black;"></div>
</div>