nowrap issues

David Hyatt hyatt@apple.com
Thu, 16 Jan 2003 13:42:49 -0800


So now that I made nowrap work like the KHTML trunk (I was improperly 
applying nowrap when calcing the minmax for block children, when it 
should have only applied for minmax calcs of inline children), Apple's 
internal HR site misrenders.  It does so because it has a construction 
like the following:

<td nowrap>
<div>
Some text that shouldn't wrap.
</div>
</td>

The problem with the current way table nowrap is handled is that it 
isn't placed into CSS, so there's no inheritance of white-space into 
child content.  The <div> thinks it has white-space: normal, so it 
computes a min-width that is way too small.

My idea for correcting this is to actually make a new CSS value for the 
white-space property, -konq-nowrap, that can be used to represent <td 
nowrap>.  When encountered, the value can be dynamically mapped to 
"normal" if the cell has a fixed width or to "nowrap" if the cell does 
not.

What do you think?

dave
(hyatt@apple.com)