- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 15 Jul 2026 17:01:43 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-pseudo] Spec clearly whether text inputs are supposed to support first-line / first-letter`, and agreed to the following: * `RESOLVED: ::first-line / ::first-letter don't apply to input / textarea for now, revisit once we have better-defined layout for them` <details><summary>The full IRC log of that discussion</summary> <fantasai> emilio: Blink only supports :first-line somehow<br> <fantasai> emilio: It feels weird. I almost changed this in Gecko accidentally, while fixing support for field-sizing.<br> <fantasai> emilio: Spec is ambiguous, but I wouldn't expect it to dig into contents of a replaced element.<br> <lea> q?<br> <fantasai> emilio: So I think we should be explicit that they don't apply to replaced elements, same way as ::before/::after don't apply<br> <tantek> presumably our reasoning on this is specific to inputs rather than generalizing to say, any use of contenteditable?<br> <fantasai> astearns: I don't see a problem with ::first-letter, but ::first-line seems odd<br> <lea> q+<br> <fantasai> emilio: I would prefer not to support any of them. I'm half-sure it is accidental in Blink.<br> <astearns> ack lea<br> <PaulG> order matters, if you put scrollLeft first, it will scroll left but not up. So, I understand now.<br> <emilio> lea: from an author-facing perspective they expect it to work<br> <fantasai> lea: From author-facing, I think if they're using it they're expecting it to work<br> <emilio> ... not sure that's undesirable<br> <emilio> ... the argument they're replaced elements make sense<br> <emilio> ... I wish ::before / ::after would work<br> <emilio> ... if we could make it work that'd be the better outcome<br> <tantek> do those pseudos work on a contenteditable element?<br> <emilio> ... do we want to put theoretical purity<br> <emilio> ... I don't see a huge user need<br> <emilio> ... so if it complicates implementations I don't think it's worth it<br> <PaulG> q+<br> <emilio> ... no strong opinion either way<br> <PaulG> q-<br> <fantasai> emilio: They do work on contenteditable<br> <fantasai> emilio: Big issue is that the layout is not fun.<br> <lea> s/do we want to put theoretical purity/per the PoC, do we want to put theoretical purity above author needs?/<br> <dbaron> the proposal seems reasonable to me; I don't think ::first-letter and ::first-line make much sense in input and textarea<br> <fantasai> emilio: Even without auto appearance, the way these elements are laid out internally is not specced and does not match across implementations<br> <fantasai> emilio: Making them work reliably is sketchy<br> <fantasai> emilio: There are some extra elements, for example, in a password input. Is that part of the ::first-line or not?<br> <fantasai> emilio: I think the real issue is, same for ::before/::after, they shouldn't work because we don't have interoperable layout for these elements<br> <TabAtkins> +1 to emilio here<br> <fantasai> emilio: Need to define how it interacts with ::placeholder, etc. etc.<br> <fantasai> emilio: Internal contents of these elements are not defined per spec<br> <fantasai> +1 to emilio<br> <kbabbitt> +1 to emilio<br> <emilio> astearns: I think we should define these not to work for now given that<br> <schenney> I suspect the Chrome behavior is an accidental artifact of recent changes to the internal layout structure of text areas. If so definitely something not easy to spec. +1 to emilio.<br> <tantek> not apply for now is reasonable because we can expand it in the future with new information<br> <emilio> RESOLVED: ::first-line / ::first-letter don't apply to input / textarea for now, revisit once we have better-defined layout for them<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13926#issuecomment-4983249817 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 July 2026 17:01:44 UTC