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

Whitespace, punctuation and :first-letter

From: Simon Fraser <smfr@me.com>
Date: Tue, 05 Oct 2010 17:32:48 -0700
Message-id: <F7BCA824-F3A4-4F85-ADA7-1775DD036C3B@me.com>
To: www-style list <www-style@w3.org>
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; }

<div>( T)est</div>

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

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:39 UTC