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
16 lines
425 B
HTML
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>
|