- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Sep 2021 09:40:23 +0000
- To: public-css-archive@w3.org
> In Mac Firefox, it looks like :placeholder-shown on textareas allows the same properties as ::placeholder (those limited to ::first-line), so you can’t do things like truncate the placeholder text with an ellipsis. In Chrome and Safari, it does not appear to work with textareas at all. `:placeholder-shown` is a pseudo-class, not a pseudo-element, so it accepts the same properties as any other selector, nothing specific to `::placeholder`. However `white-space: nowrap` on a textarea's placeholder does nothing, because of [this rule](https://searchfox.org/mozilla-central/rev/f62d42b1d98e67dc3da05d586f71103df02b8c4a/layout/style/res/forms.css#223). That comes from [this commit](https://hg.mozilla.org/mozilla-central/rev/0f28fd24bdf3) that changed it to be `!important`. It seems that was done because of [implementation issues](https://bugzilla.mozilla.org/show_bug.cgi?id=737786#c33), so I don't think it should matter anymore, I'll try to lift this restriction. -- GitHub Notification of comment by emilio Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6669#issuecomment-925654767 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 23 September 2021 09:40:25 UTC