Re: [csswg-drafts] [css-pseudo] Multi-line ::first-letter (#2254)

Agenda+ to discuss @Loirooriol's comment above about allowing initial punctuation to form ::first-letter even without a subsequent letter. See [testcase](https://www.software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Ap%3A%3Afirst-letter%20%7B%20background%3A%20green%3B%20%7D%0A%3C%2Fstyle%3E%0A%3Cp%3EABC%0A%3Cp%3E*BC%0A%3Cp%3E***)

The relevant spec text is this:
> If no qualifying text exists, then there is no _first-letter text_ and no ::first-letter pseudo-element.

Historically we have this from CSS1:
> When the paragraph starts with other punctuation (e.g. parenthesis and ellipsis points) or other characters that are normally not considered letters (e.g. digits and mathematical symbols), 'first-letter' pseudo-elements are usually ignored. 

CSS2 and Selectors 3 doesn't say anything about what happens if there's no letter.

Fwiw, while I think what CSS1 says makes sense, I am quite sympathetic to Oriol's argument about implementation simplicity. Also we're now allowing digits and symbols as possible first “letters”.

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


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

Received on Thursday, 29 December 2022 17:20:06 UTC