wpt / css / css-inline / text-box-trim / text-box-trim-multicol-011.html

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

/css/css-inline/text-box-trim/text-box-trim-multicol-011.html

<!DOCTYPE html>
<title>Test text-box-trim with orphans</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="help" href="https://drafts.csswg.org/css-break/#widows-orphans">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="match" href="text-box-trim-multicol-011-ref.html">
<style>
  .multicol {
    columns: 3;
    column-fill: auto;
    width: 640px;
    height: 400px;
    gap: 20px;
    text-box-trim: trim-both;
    font-family: Ahem;
    font-size: 50px;
    line-height: 100px;
    orphans: 2;
    widows: 1;
    background: yellow;
  }
</style>
<div class="multicol">
  <div style="height:225px; background:cyan;"></div>
  xxx<br>
  xxx<br>
  xxx<br>
  xxx<br>
</div>

/css/css-inline/text-box-trim/text-box-trim-multicol-011-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  .container {
    width: 640px;
    height: 400px;
    background: yellow;
  }
  .multicol {
    columns: 3;
    column-fill: auto;
    height: 500px;
    gap: 20px;
    font-family: Ahem;
    font-size: 50px;
    line-height: 100px;
    orphans: 1;
    widows: 1;
  }
  .up-half {
    position: relative;
    top: -25px;
  }
</style>
<div class="container">
  <div class="multicol">
    <div style="height:225px; background:cyan;"></div>
    xxx<br>
    xxx<br>
    <div style="break-before:column;" class="up-half">
      xxx<br>
      xxx<br>
    </div>
  </div>
</div>