W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Re: [css-flexbox][css-grid] What is "white space"?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 27 Jan 2014 21:12:10 -0800
Message-ID: <52E73C2A.5000708@inkedblade.net>
To: www-style@w3.org
On 12/31/2013 06:41 AM, Simon Sapin wrote:
> On 06/12/2013 16:33, Simon Sapin wrote:
>> On 22/11/2013 01:14, fantasai wrote:
>>> On 11/21/2013 08:30 AM, Simon Sapin wrote:
>>>> Hi,
>>>>
>>>> Both specs contain similar text to define flex items and grid items:
>>>>
>>>>> [...] each contiguous run of text that is directly contained inside a
>>>>> flex container is wrapped in an anonymous flex item. However, an
>>>>> anonymous flex item that contains only white space is not rendered,
>>>>> as if it were display:none.
>>>>
>>>> "white space" is a link to the white-space property:
>>>> http://www.w3.org/TR/CSS21/text.html#white-space-prop
>>>>
>>>> What does this mean? Is any of the character mentioned in that section considered white space? Or only those
>>>> collapsed/removed
>>>> based on the inherited value of the white-space property?
>>>
>>> Any of the characters mentioned.
>>
>>
>> Ok. In that case, I suggest changing "that contains only white space" to
>> "that contains only code points that would be affected by 'white-space:
>> normal'"
>>
>> Or if that makes the sentence too contrived, instead add a sentence:
>> "White space for this purpose is any code point that would be affected
>> by 'white-space: normal'."
>>
>> In either case, have the link on 'white-space: normal', to the same URL.
>>
>> Do you think that works?
>>
>
> It could also be "white space that has been collapsed away by the 'white-space' property handling", as for the 'empty-cells'
> property:
>
> http://www.w3.org/TR/CSS21/tables.html#empty-cells

No, actually, in that case preserved white space and collapsed white
space are treated differently. Here we care only about the code points,
not about the value of the 'white-space' property. (This is analogous
to how anonymous table boxes are handled.)

The new spec text is
   # However, an anonymous flex item that contains only white space
   # (i.e. characters that can be affected by the white-space property)
   # is not rendered, as if it were display:none.

Let me know if that works.

~fantasai
Received on Tuesday, 28 January 2014 05:12:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:39 UTC