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

Re: [css3-tables] Optimize per column whitespace due to line wrapping

From: timeless <timeless@gmail.com>
Date: Sun, 2 Jan 2011 21:15:17 +0200
Message-ID: <AANLkTikV61A4OAHOASRQqwjhrKh1WOpethKAq2N6=Wnx@mail.gmail.com>
To: shelby@coolpage.com
Cc: www-style@w3.org
I eventually settled on this:

data:text/html,<html
xmlns="http://www.w3.org/1999/xhtml"><head></head><body><hr
width="700" align="left" border="1" /><table
border="1"><tbody><tr><td><i>Recurse</i> ⊈ ∅, <small>ε</small> ∈
<i>Fi</i><sub>(n)</sub>, <i>n</i> ∈ <i>N</i>, <i>n</i> =
<i>head</i><sub>(<i>w</i>)</sub> )</td><td> is not the empty set but
there is lots of text here to eat space from the each of these
words<br> is a potential wrap point which makes the table
considerably<br> expensive if the table wrap algorithm isn't
greedy.</td></tr></tbody></table></body></html>

you should be able to size a browser to fit the hr and then slide
around (probably just expanding).

the alternative approaches result in the columns jumping as you
shrink/expand the window, which seems suboptimal.

but generally multipass algorithms are very expensive (tending toward
O(n^2) or O(n^3) and giving people indigestion).

there's also the minor detail that changing the behavior now would
probably break existing content.
Received on Sunday, 2 January 2011 19:15:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT