On Thu, Jul 14, 2011 at 4:24 AM, Maujor (via-gmail)
<[email protected]> wrote:
> Suppose the following CSS and HTML [1]
>
> CSS:
> p::first-letter { color: red; }
>
> HTML:
> <p>&#8212; Paragraph</p>
> <p>&copy; Paragraph</p>
>
> All latest browsers:
> Firefox doesn't apply the CSS rule on both paragraphs;
> Opera, Chrome and IE apply the CSS rule coloring &#8212; and &copy;
> Safari on Windows apply coloring &#8212; and &copy; plus P;
>
> It seems that only Firefox is according the specs. Since ::first-letter only
> apply to letters and digits.
> I'd like to know what is it the correct behavior.

Aren't characters specified with entity codes also considered
"letters" in this context as opposed to "other content (such as images
or inline tables)"?

They often actually are letters from other languages, but not in this case.

The part I quoted  is from the spec:
http://www.w3.org/TR/CSS21/selector.html#first-letter

--
Ghodmode
http://www.ghodmode.com/blog
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to