Re: Whitespace, punctuation and :first-letter

On Oct 7, 2010, at 2:08 am, Simon Montagu wrote:

> At the time I thought that there was not much of a use case for the first form, but in the light of Ambrose Li's message I believe I was wrong. I will file a bug to change Firefox's behaviour.

I made a change last night in WebKit to have a run of <whitespace><punc>character<whitespace><punc> be treated as :first-letter (where <whitespace> includes non-breaking spaces, and <punc> is the categories noted in the spec).

An issue I did not handle is how newlines in that whitespace are treated, particularly if "white-space: pre" is applied.

Simon

Received on Thursday, 7 October 2010 15:27:19 UTC