Whitespace, punctuation and :first-letter

I'm trying to fix some WebKit issues around :first-letter. The spec <http://www.w3.org/TR/CSS2/selector.html#first-letter> is not clear about how punctuation and whitespace interact, and there does not seem to be interop in this area. For example, with the following content:

<style type="text/css">
div:first-letter { color: green; }
</style>

<div>( T)est</div>

In Safari, the ( and T are green.
In Opera, the ( is green.
In Firefox, nothing is green.

Simon

Received on Wednesday, 6 October 2010 03:34:45 UTC