On Tuesday 2006-02-21 16:45 -0600, Vinson Gracia (777) wrote:
> I searched all over for information on this bug but didn't see
> anything. I just entered in Bugzilla just in case.
> 
> I thought I was being clever by using the first-letter pseudo selector
> to style my required field asterisk without any extra code but firefox
> rained on my parade.
> 
> OK, so an asterisk is not a letter, technically, but ff is not even
> consistent in that regard.

http://www.w3.org/TR/CSS21/selector.html#first-letter says:

# Punctuation (i.e, characters defined in Unicode [UNICODE] in the
# "open" (Ps), "close" (Pe), "initial" (Pi). "final" (Pf) and "other"
# (Po) punctuation classes), that precedes or follows the first letter
# should be included

The asterisk is in the Po character class, so it should be included.

This means that in the examples you give, the first letter should be:


> <p>test</p>
"t"

> <p>*test</p>
"*t"

> <p>***test</p>
"***t"

> <p>&nbsp;test</p>

unknown.  The spec isn't clear on this one.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Attachment: pgpvs08sAqYfB.pgp
Description: PGP signature

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to