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

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