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-accumulation-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test trimming both sides of the inline content</title>
<meta name="assert"
content="text-box-trim values set by multiple ancestors accumulate instead
of overwrite each other. Note that the first inner box is not the last
formatted line for trim-end."
>
<link rel="match" href="text-box-trim-accumulation-004-ref.html">
<style>
@import "support/TestMetricsFont.css";
.spacer {
block-size: 100px;
background: lightgray;
}
.outer {
text-box-trim: trim-end;
text-box-edge: ex alphabetic;
}
.middle {
text-box-trim: trim-start;
text-box-edge: ex alphabetic;
}
.inner {
font: 100px/1 MetricsTestFont;
}
</style>
<div class="spacer"></div>
<div class="outer">
<div class="middle">
<div class="inner">ApÉx</div>
</div>
<div class="spacer"></div>
<div class="inner">ApÉx</div>
</div>
<div class="spacer"></div>