Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Test choosing the correct text-box-edge value for requested trim metric</title>
<meta name="assert"
content="text-box-edge is an inherited property and trim metric should be used accordingly."
<link rel="match" href="text-box-trim-accumulation-001-ref.html">
<style>
@import "support/TestMetricsFont.css";
.spacer {
block-size: 100px;
background: lightgray;
}
.inner {
font: 100px/2 MetricsTestFont;
}
.outer {
text-box-trim: trim-start;
text-box-edge: auto;
}
.middle {
text-box-trim: trim-end;
text-box-edge: text alphabetic;
}
.inner:first-child {
text-box-edge: ex alphabetic;
}
.inner:last-child {
text-box-edge: text;
}
</style>
<div class="spacer"></div>
<div class="outer">
<div class="middle">
<div class="inner">ApÉx</div>
<div class="spacer"></div>
<div class="inner">ApÉx</div>
</div>
</div>
<div class="spacer"></div>