Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: line-clamp and input elements, at the clamp point</title>
<link rel="match" href="reference/line-clamp-form-input-003-ref.html">
<meta name="assert" content="An input element starting at an ancestor's clamp point remains fully visible.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
body {
font: 25px/1 Ahem;
}
input, button, select, textarea {
font: inherit;
}
.clamp {
line-clamp: 2;
width: 240px;
background: yellow;
}
</style>
<div class="clamp">
XX<br>
<input size="8" value="XX XX"><br>
XX<br>
XX<br>
XX
</div>