Re: [csswg-drafts] [css-flexbox][css-pseudo] placeholder pseudo-element fails to be flex item (#6536)

> but it is nowhere elaborated, what this "limited in its abilities" means. It seems like a waver that could be translated to "Dear Mr. Browser, do whatever the hell you want!".

That phrase only appears in a note explaining the feature; it's not normative text anyway. The elaboration you're looking for is in the very next sentence following the note:

> All properties that apply to the ::first-line pseudo-element also apply to the ::placeholder pseudo-element.

Like ::first-line, ::placeholder only styles the placeholder text itself; it can't style the text's surrounding box, because the interior of an input is hidden from CSS. This means layout properties like Flexbox can't be applied to it, just text styling like color or alignment.

Making the ::placeholder capable of taking all properties, like ::before does, would require us to specify precisely what the interior layout structure of an `input` is, and CSS has traditionally purposely avoided that, to allow UAs flexibility in how they implement and display form elements to the user.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6536#issuecomment-907359560 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 27 August 2021 17:28:50 UTC