Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/text-box-trim-ignore-nested-text-box-edge.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Consult the block container requesting the trim for text-box-edge</title>
<link rel="match" href="text-box-trim-ignore-nested-text-box-edge-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.spacer {
background: lightgray;
block-size: 100px;
}
.target {
font: 50px/2 Ahem;
text-box-trim: trim-both;
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. */
}
.inner {
text-box-edge: ex alphabetic;
}
</style>
<div class="spacer"></div>
<div class="target">
<div class="inner">ABC</div>
</div>
<div class="spacer"></div>