Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>text-box-trim on an overflow: auto scroll container</title>
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.wrapper {
position: relative;
width: 100px;
height: 100px;
background: red;
}
.target {
font: 20px/40px Ahem;
text-box-trim: trim-both;
text-box-edge: text;
overflow: auto;
scrollbar-width: none;
color: green;
background: red;
}
.filler {
position: absolute;
left: 0;
width: 100px;
height: 20px;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="wrapper">
<div class="target">xxxxx<br>xxxxx<br>xxxxx</div>
<div class="filler" style="top: 20px"></div>
<div class="filler" style="top: 60px"></div>
</div>