Skip to content

Commit 6c153e4

Browse files
authored
WebKit export: [field-sizing] Larger placeholder font-size should expand the field (#54925)
https://bugs.webkit.org/show_bug.cgi?id=269127
1 parent 41b243c commit 6c153e4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<link rel="stylesheet" href="/fonts/ahem.css">
3+
<style>
4+
input {
5+
padding: 0px;
6+
border: none;
7+
font: 30px Ahem;
8+
color: green;
9+
}
10+
</style>
11+
<input value="PASS if not clipped">
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<title>Placeholder should stretch input when field-sizing is applied.</title>
3+
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#field-sizing">
4+
<link rel=match href="field-sizing-placeholder-stretch-ref.html">
5+
<link rel="stylesheet" href="/fonts/ahem.css">
6+
7+
<style>
8+
::placeholder {
9+
font: 30px Ahem;
10+
color: green;
11+
}
12+
input {
13+
field-sizing: content;
14+
padding: 0px;
15+
border: none;
16+
}
17+
</style>
18+
<input placeholder="PASS if not clipped">
19+
<input style="height: 0px;" placeholder="PASS if fully clipped">

0 commit comments

Comments
 (0)