blob: 507a558d3086481e33d3b83fc1c7a5f9d6ded6a6 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
|
<!DOCTYPE html>
<title>text-box-trim: trim-end is propagated to the last formatted line only,
even if it's within a block-in-inline</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-block-in-inline-start-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 50px;
}
.target {
font: 50px/2 Ahem;
text-box-trim: trim-start;
text-box-edge: text;
}
</style>
<div class="spacer"></div>
<div class="target">
<span>
<div>
A
</div>
</span>
<span>
<div>
A
</div>
</span>
A
</div>
<div class="spacer"></div>
|