W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: [selectors4][css-pseudo][css-text][css-syntax] what a whitespace character is

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sun, 13 Sep 2015 19:22:09 -0400
To: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
Message-ID: <55F60521.6040100@inkedblade.net>
On 08/24/2015 06:22 AM, L. David Baron wrote:
> I think that:
>   (a) we should have interop on the ::first-letter whitespace
>       skipping characters, and it should be specified
>   (b) ::blank, or whatever we call it, should use the same definition
>       of whitespace, since I don't want two definitions of "text
>       that's only whitespace" in selectors
> It might also be worth a slightly closer examination of what other
> things should have a common behavior with this.  (Might other
> browsers use the same function for ::first-letter and other things
> that are present in Web standards?)

Sounds reasonable to me. I think historically CSS syntactic white space
and CSS collapsible white space have differed on handling form feed:
   http://www.w3.org/TR/CSS2/syndata.html#tokenization (incl. form feed)
   http://www.w3.org/TR/CSS2/text.html#white-space-prop (no form feed)

But I think this is an error, since even HTML4 includes form feed
where it defines white space collapsing:

I think we should align on the set
   U+0020 SPACE
   U+000A LINE FEED (LF)
   U+000C FORM FEED (FF)
since, with the exception of the white space collapsing section, both
the CSS2+ and HTML4+ specs (and Gecko) agree on this definition.

Received on Sunday, 13 September 2015 23:22:39 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:53 UTC