<!DOCTYPE html>
<title>text-box-trim: trim-end works even in the presence of initial-letter</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-initial-letter-end-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
height: 50px;
background: lightgray;
position: relative;
}
.target {
font: 40px/1 Ahem;
text-box-trim: trim-end;
text-box-edge: text alphabetic;
}
.target::first-letter {
initial-letter: 3;
}
</style>
<div class="spacer"></div>
<div class="target">ApÉx</div>
<div class="spacer"></div>