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-end-001.html?class=alphabetic - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=auto - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=text - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,auto - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,cap - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,ex - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vlr,text - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,alphabetic - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,auto - WPT Dashboard Interop Dashboard
- /css/css-inline/text-box-trim/text-box-trim-end-001.html?class=vrl,text - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test text-box-trim: trim-end on various writing modes</title>
<link rel="match" href="text-box-trim-end-001-ref.html">
<script src="support/variant-class.js"></script>
<meta name="variant" content="?class=auto">
<meta name="variant" content="?class=text">
<meta name="variant" content="?class=alphabetic">
<meta name="variant" content="?class=vrl,auto">
<meta name="variant" content="?class=vrl,text">
<meta name="variant" content="?class=vrl,alphabetic">
<meta name="variant" content="?class=vlr,auto">
<meta name="variant" content="?class=vlr,text">
<meta name="variant" content="?class=vlr,cap">
<meta name="variant" content="?class=vlr,ex">
<style>
@import "support/MetricsTestFont.css";
.spacer {
background: lightgray;
block-size: 100px;
}
.target {
font: 100px/2 MetricsTestFont;
text-box-trim: trim-end;
}
.vrl { writing-mode: vertical-rl; }
.vlr { writing-mode: vertical-lr; }
.auto .target { text-box-edge: auto; }
.text .target { text-box-edge: text; }
.alphabetic .target { text-box-edge: text alphabetic; }
.cap .target { text-box-edge: cap text; }
.ex .target { text-box-edge: ex text; }
</style>
<div class="spacer"></div>
<div class="target">ApÉx</div>
<div class="spacer"></div>