Skip to content

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

@emilio

Description

@emilio

Test-case:

<!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...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions