summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html
blob: 14429b10022448c155c3723f9798e3e66d4022bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<title>Tests block boxes's edges are trimmed at text-over/text-under baselines of their first/last formatted lines</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#leading-trim">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="match" href="text-box-trim-half-leading-block-box-001-ref.html">

<style>
.div-parent {
  outline: 1px solid orange;
  font-family: Ahem;
  font-size: 20px;
  line-height: 3;
  text-box-trim: both;
}
</style>

<div class ="div-parent"">

  <div id="d2">Testline1<br>Testline2<br>Testline3</div>
</div>