Files
sousa-gecko/testing/web-platform/tests/css/css-pseudo/first-letter-input-textarea.tentative.html
T
Emilio Cobos Álvarez 64f8770e45 Bug 2039504 - Don't allow <input> / <textarea> to have a first-line/letter. r=layout-reviewers,jfkthame
This matches WebKit and our previous behavior.

These are replaced elements and those generally don't support them. It's
not defined that these elements are block containers, we just switched
to implement them as such.

Differential Revision: https://phabricator.services.mozilla.com/D300559
2026-05-14 15:39:22 +00:00

16 lines
425 B
HTML

<!DOCTYPE html>
<title>::first-letter on input / textarea</title>
<link rel="match" href="input-textarea-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/13926">
<style>
input::first-letter,
textarea::first-letter {
font-size: 100px;
}
</style>
<input value="Some text">
<textarea>
Some more text
</textarea>