[csswg-drafts] [css-pseudo] Spec clearly whether text inputs are supposed to support first-line / first-letter (#13926)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo] Spec clearly whether text inputs are supposed to support first-line / first-letter ==
Test-case:

```html
<!DOCTYPE html>
<title>::first-line on input / textarea</title>
<link rel="match" href="first-line-input-textarea-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-text-line">
<style>
input::first-line,
textarea::first-line {
  color: red;
}

input::first-letter,
textarea::first-letter {
  font-size: 100px;
}
</style>
<input value="Some text">
<textarea>
  Some more text
</textarea>
```

Behavior:

 * Blink supports `::first-line` but not `::first-letter`, which seems off (I think either both should be supported or none).
 * WebKit and Gecko don't support either (I almost make gecko support `::first-line` accidentally).

My intuition is that they shouldn't be supported, because these elements are replaced and opaque-ish, but...

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13926 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 May 2026 15:24:46 UTC