wpt / css / css-inline / text-box-trim / text-box-trim-float-clear-br-001.html

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

/css/css-inline/text-box-trim/text-box-trim-float-clear-br-001.html

<!DOCTYPE html>
<title>text-box-trim does not interfere with positive clearance</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge">
<link rel="match" href="text-box-trim-float-clear-br-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta charset="utf-8">
<style>
.spacer {
  background: lightgray;
  block-size: 100px;
}
.target, .float {
  font: 50px/1 Ahem;
}
.target {
  text-box-trim: trim-end;
  text-box-edge: text;
}
.float {
  float: left;
  width: 100px;
  background: yellow;
}
.clear { clear: both; }
</style>
<div class="float">F<br>F</div>
<div class="target">
  █BxIF
  <br class="clear">
</div>
<div class="spacer"></div>

/css/css-inline/text-box-trim/text-box-trim-float-clear-br-001-ref.html

<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta charset="utf-8">
<style>
.spacer {
  background: lightgray;
  block-size: 100px;
}
.target, .float {
  font: 50px/1 Ahem;
}
.float {
  float: left;
  width: 100px;
  height: 100px;
  background: yellow;
}
.clear { clear: both; }
</style>
<div class="float">F<br>F</div>
<div class="target">
  █BxIF
  <br class="clear">
</div>
<div class="spacer"></div>