Re: Text selector [was Re: breaking overflow]

On 1/6/10 9:27 AM, Brad Kemper wrote:
> 4. pre-compute just the white-space for the element, and discard or collapse white-space into individual spaces in each of the slots, according to that resolution

The point is that this step depends not only on the white-space value of 
the element, but also on the exact boxes generated for children of the 
element, in general.

Unless you actually mean to run some algorithm quite different from the 
CSS whitespace collapsing algorithm but that happens to sort of look 
like it to a first approximation?

For example:

   <p>
     This is  <span></span>  text
   </p>

I assume that you would want the first textnode to claim to have a 
trailing space and the second textnode to claim to have a leading space 
even though after CSS whitespace collapsing there is in fact only one 
space in the example above between "is" and "text"?

-Boris

Received on Wednesday, 6 January 2010 15:23:03 UTC