summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-inline-box-001.html
blob: 4316301bd1bff7e58862700c6b7511914d14d21f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<title>Tests inline boxes are trimmed at text-over/text-under baselines</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-inline-box-001-ref.html">

<style>
div {
  border: 1px solid orange;
  font-size: 20px;
  line-height: 1;
}

span {
  border: 1px solid blue;
  font-family: Ahem;
  font-size: 20px;
  line-height: 3;
  text-box-trim: both;
}
</style>

<div>
  <span>Test</span>
</div>