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

[csswg-drafts] [css-pseudo] ::first-letter should include whitespace

From: csnardi via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Jan 2018 17:28:39 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-286057964-1515086918-sysbot+gh@w3.org>
csnardi has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo] ::first-letter should include whitespace ==
The section on ::first-letter says nothing about whitespace, and [a css-backgrounds WPT test](https://github.com/w3c/web-platform-tests/blob/master/css/css-backgrounds/first-letter-space-not-selected.html) even tests that whitespace is not selected by ::first-letter. However, all implementations fail this test:

- Edge selects whitespace no matter if it is followed by a non-whitespace character or not
- Firefox only selects whitespace that is not followed by a non-whitespace character
- Chrome (and I assume WebKit) only selects whitespace that is followed by a non-whitespace character

Given that all implementations select whitespace of some sort in ::first-letter, but each does it differently, it is probably appropriate to clarify this in the spec.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2164 using your GitHub account
Received on Thursday, 4 January 2018 17:28:41 UTC

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