Skip to content

Commit e9f095c

Browse files
lukewarlowsvgeesus
authored andcommittedMar 18, 2025·
[css-forms-1] Add textarea to pseudo elements table
Also add placeholder pseudo to definitions
1 parent c33ede5 commit e9f095c

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed
 

‎css-forms-1/Overview.bs

+30-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ Markup Shorthands: css yes, markdown yes
266266
<td>`<input type=color>`</td>
267267
<td>''::color-swatch''</td>
268268
</tr>
269+
<tr>
270+
<td>`<textarea>`</td>
271+
<td>See [[#textarea-pseudos]]</td>
272+
</tr>
269273
<tr>
270274
<td>`<select>`</td>
271275
<td>''::picker-icon''</td>
@@ -382,6 +386,11 @@ Markup Shorthands: css yes, markdown yes
382386
## Styling Parts for Text Fields: the ''::field-text'' and ''::clear-icon'' pseudo-elements ## {#field-pseudos}
383387

384388
<dl export>
389+
<dt><dfn>''::placeholder''</dfn>
390+
<dd>
391+
The ''::placeholder'' pseudo-element represents
392+
the portion of the <{input}> that contains the placeholder text.
393+
385394
<dt><dfn>::field-text</dfn>
386395
<dd>
387396
The ''::field-text'' pseudo-element represents
@@ -401,7 +410,27 @@ Markup Shorthands: css yes, markdown yes
401410

402411
ISSUE: Collect parts used by autofill.
403412

404-
ISSUE: Define something for the password visibility toggle for user agents implementing it?
413+
ISSUE(11845): Define something for the password visibility toggle for user agents implementing it?
414+
415+
ISSUE(11844): Define how `::placeholder` interacts with `::field-text`.
416+
417+
## Styling Parts for textareas: the ''::placeholder'' and ''::field-text'' pseudo-elements ## {#textarea-pseudos}
418+
419+
<dl export>
420+
<dt><span>''::placeholder''</span>
421+
<dd>
422+
The ''::placeholder'' pseudo-element represents
423+
the portion of the <{textarea}> that contains the placeholder text.
424+
425+
<dt><span>''::field-text''</span>
426+
<dd>
427+
The ''::field-text'' pseudo-element represents
428+
the portion of the <{textarea}> that contains the editable text.
429+
</dl>
430+
431+
ISSUE(11850): Define something for the resizer.
432+
433+
ISSUE(11844): Define how `::placeholder` interacts with `::field-text`.
405434

406435
## Styling Parts for Number Fields: the ''::step-control'', ''::step-up'' and ''::step-down'' pseudo-elements ## {#number-pseudos}
407436

0 commit comments

Comments
 (0)
Please sign in to comment.