Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/line-clamp/crashtests/line-clamp-form-input-auto-height.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: line-clamp on a number input with automatic height</title>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
input {
font: 25px/1 Ahem;
line-clamp: 2;
width: 240px;
}
</style>
<input type="number">