W3C home > Mailing lists > Public > www-style@w3.org > December 2010

::first-word pseudo-element

From: Pierre Bertet <bonjour@pierrebertet.net>
Date: Sat, 11 Dec 2010 20:10:15 +0100
Message-ID: <AANLkTin2yqY9MV7ckKzWLdaZesdWccHNTAgVkcjT8J2=@mail.gmail.com>
To: www-style list <www-style@w3.org>

As suggested by Daniel Glazman, I share here my thoughts about the
::first-word selector.

Daniel rightly said that it’s not really possible to determine what a
“Word” is, according to the language.

But the ::first-letter already do this, defining a "letter", wich is
not very clear too. To clarify this, the CSS3 Selectors spec refers to
the Unicode Standard Annex #29 [1].
This document seems very complex to me, but it also contains a “Word
Boundaries” section, which seems to defines exactly that.

So my questions are:
This section could it not be used to clarify what a “word” is?
Otherwise, can’t a selector similar to “::first-chars-before-space” be
used instead?

I’m sorry for my bad english!

Pierre Bertet

Received on Saturday, 11 December 2010 19:30:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:53 UTC