blob: 4f8568acf8a9545c07f243ce8fc8e8ecb4bfd18e [file] [log] [blame] [edit]
<!DOCTYPE html>
<title>No need to consult the block container requesting the trim for text-box-edge</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-not-ignore-nested-text-box-edge-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<!-- https://github.com/w3c/csswg-drafts/issues/10904 -->
<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 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>