37 lines
865 B
HTML
37 lines
865 B
HTML
<!DOCTYPE html>
|
|
<title>Test trimming both sides of the inline content</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">
|
|
<meta name="assert"
|
|
content="text-box-trim values set by multiple ancestors accumulate instead
|
|
of overwrite each other."
|
|
>
|
|
<link rel="match" href="text-box-trim-accumulation-003-ref.html">
|
|
<style>
|
|
@import "support/MetricsTestFont.css";
|
|
|
|
.spacer {
|
|
block-size: 100px;
|
|
background: lightgray;
|
|
}
|
|
|
|
.outer {
|
|
text-box-trim: trim-end;
|
|
}
|
|
|
|
.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>
|
|
<div class="spacer"></div>
|