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

Re: [selectors4] :blank, ::first-letter, and what a whitespace character is

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 25 Aug 2015 16:53:34 +0200
Message-ID: <CAAWBYDCB_pXTHx5+wZ5y8V+Ky1kYccdD0-U5r+m01bJSVkJU3g@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>
On Tue, Aug 25, 2015 at 4:32 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> Note that HTML also defines "whitespace" to include U+000C
>> <https://html.spec.whatwg.org/#space-character>.  In particular, its
>> definition is U+9, U+A, U+C, U+D, and U+20.
>>
>> This is also CSS Syntax's definition of whitespace.
>>
>> Looking over Text, I don't see a good reason to skip U+C either.  I
>> think Text should be amended to include it.
>
> I don't know what those are. I'm used to more digits in my Unicode.

They're just numbers; feel free to zero-pad as you desire.

> Is one of them a non-breaking space? I'd really like to be able to treat nbsp's as regular white space for :blank (or :empty-plus, or whatever). I don't know if it ever has semantic meaning, but  usually it is in the markup because the HTML author assumed some sort of layout that I, the CSS author, don't necessarily what to follow. So I'd either want to collapse it away (a separate topic), or select it with :empty-ish in order to hide it.
>
> I would think things like thin-space and discretionary hyphens would also be on the list.

NBSP is not one of those, no - they're all low ascii chars.

We're not trying to be fancy here, just sync up our definitions of
"basic whitespace".  This isn't about all the various typographic
types of whitespace used in text, just the types of whitespace that
show up in documents to separate elements and such.  That's just the
ascii space (U+0020), ascii tab (U+0009), and the three ascii line
feeds (U+000A, U+000C, and U+000D).

~TJ
Received on Tuesday, 25 August 2015 14:54:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 25 August 2015 14:54:23 UTC