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
409 B
HTML
16 lines
409 B
HTML
<!DOCTYPE html>
|
|
<title>::first-line on input / textarea</title>
|
|
<link rel="match" href="input-textarea-ref.html">
|
|
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-text-line">
|
|
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/13926">
|
|
<style>
|
|
input::first-line,
|
|
textarea::first-line {
|
|
color: red;
|
|
}
|
|
</style>
|
|
<input value="Some text">
|
|
<textarea>
|
|
Some more text
|
|
</textarea>
|