summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-001.html
blob: 3f00fdfbf445844c2a9a0e4a3f76daa2dc125e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-text-wrap-balance">
<link rel="match" href="reference/text-wrap-balance-float-001-ref.html">
<style>
.container {
  font: 20px/1.5 monospace;
  width: 23.5ch;
  border: solid 1px;
  text-wrap: balance;
}
.float {
  background: yellow;
  padding: 0.2em 1ch;
  line-height: 1.2;
  float: left;
}
</style>

<div class="container"><div class="float">FLOAT<br>FLOAT</div>abc de fg hij klm nop qrst uvw xyz!</div>