W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

Re: [csswg-drafts] [css-pseudo] Settle what happens when first-letter characters are in different elements

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 31 Jan 2018 05:24:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-361827526-1517376262-sysbot+gh@w3.org>
Hmmm, so Gecko and WebKit decide to create such pseudo-element in the first element, Blink creates one in the inner one (and it doesn't create any `::first-letter` in case of `<p><span>‘</span><span>Ti</span></p>`), and Edge creates two.

Not sure which is better for this case... Maybe Edge's behavior makes the most of sense? The fact that it creates two pseudo-elements may have some surprising implication (e.g. if you use `linear-gradient(to right, red, lime)` as background rather than a single color, you would see two gradients on Edge), but I'm not sure how much it matters.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2243#issuecomment-361827526 using your GitHub account
Received on Wednesday, 31 January 2018 05:24:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC