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-height-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>text-box-trim does not interfere with height and vice versa (end edge)</title>
<link rel="match" href="text-box-trim-height-002-ref.html">
<link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css">
<meta charset="utf-8">
<style>
.spacer {
background: lightgray;
block-size: 20px;
}
.max-height > .spacer:first-child {
margin-top: 80px; /* avoid overlap */
}
.target {
font: 100px/2 BaselineDiagnosticAlphabeticZero;
text-box-trim: trim-both;
text-box-edge: text alphabetic;
align-content: unsafe end;
}
.height > .target {
height: 120px;
}
.min-height > .target {
min-height: 120px;
}
.max-height > .target {
max-height: 10px;
}
</style>
<div class="height">
<div class="spacer"></div>
<div class="target">█BxIF</div>
<div class="spacer"></div>
</div>
<div class="min-height">
<div class="spacer"></div>
<div class="target">█BxIF</div>
<div class="spacer"></div>
</div>
<div class="max-height">
<div class="spacer"></div>
<div class="target">█BxIF</div>
<div class="spacer"></div>
</div>