Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: `line-clamp: auto` with a vertical writing mode</title>
<link rel="author" title="Seva Alipov" href="mailto:salipov@mozilla.com">
<link rel="match" href="reference/line-clamp-wm-vrl-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.clamp {
font: 25px/1 Ahem;
writing-mode: vertical-rl;
line-clamp: auto;
max-block-size: 2lh;
background: yellow;
inline-size: 8ch;
}
</style>
<div class="clamp">
Line 1<br>
Line 2<br>
Line 3<br>
Line 4
</div>