W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-pseudo] ::first-letter and pseudo-elements (#4578)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Mar 2020 01:34:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-597399269-1583890475-sysbot+gh@w3.org>
Good catch. I think that first "may" is an incorrect use of RFC2119 MAY. I've rephrased the sentence to be clearer. The second "may" still applies, however, and all three variations are allowed...

With the correction, it should be clear that in

p::before { content: "T"; }

the 'T' should match ::first-letter and not the 'h', however if we replaced the "T" with a "(" then it is up to the UA whether ::first-letter matches the (, the h, or both together.

Let me know if this resolves your concern or there's something else you wanted fixed in the spec.

GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4578#issuecomment-597399269 using your GitHub account
Received on Wednesday, 11 March 2020 01:34:37 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC