Totally rains on my parade... but thanks for the W3C Spec!

I think the W3C is wrong on this one though.  I'd say at least 10^2^2
terabytes of code is being used to style the asterisks for required
fields on forms around the world. I think changing this would vastly
improve bandwith on the internet as a whole.  :P

Thanks again!


On 2/21/06, L. David Baron <[EMAIL PROTECTED]> wrote:
> 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
>
>
>
______________________________________________________________________
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