Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/widgets/field-sizing-placeholder-stretch.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Placeholder should stretch input when field-sizing is applied.</title>
<link rel=match href="field-sizing-placeholder-stretch-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
::placeholder {
font: 30px Ahem;
color: green;
}
input {
field-sizing: content;
padding: 0px;
border: none;
}
</style>
<input placeholder="PASS if not clipped">
<input style="height: 0px;" placeholder="PASS if fully clipped">