Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>No need to consult the block container requesting the trim for text-box-edge</title>
<link rel="match" href="text-box-trim-not-ignore-nested-text-box-edge-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 100px;
}
.target {
font: 50px/2 Ahem;
text-box-trim: trim-both;
text-box-edge: ex alphabetic;
}
.inner {
text-box-edge: auto;
/* auto keyword uses the value of line-fit-edge on the root inline box of the the affected line box,
interpreting leading (the initial value) as text. */
}
</style>
<div class="spacer"></div>
<div class="target">
<div class="inner">ABC</div>
</div>
<div class="spacer"></div>