W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Re: [Fwd: Re: non-rectangular images & <img> tag]

From: Brady Duga <duga@ljug.com>
Date: Wed, 25 Apr 2007 09:04:47 -0700
Message-Id: <030B1EB3-FE0B-49F7-9BD3-2468569C6141@ljug.com>
Cc: Brady Duga <duga@ljug.com>
To: W3C CSS <www-style@w3.org>

Apropos of another discussion currently going on, it might be  
interesting to examine the performance penalty of allowing wrapping  
around non-rectangular images. Currently, the height of a line cannot  
reduce the length of a line. That is, using floats you can calculate  
the maximum possible width of a line with only the top edge (insert  
other possible edges for other writing directions). If the text had  
to wrap around the contour, the length of the line would depend on  
both the top and bottom edges of the line box. Of course, you won't  
know the bottom edge (in the general case) until you know the  
available length. It seems like a bad idea to introduce the ability  
to modify the length of a line based on the height of its text. While  
there may be simple solutions for some line breaking algorithms (e.g.  
best fit or first fit), it would be difficult to implement using a  
total fit algorithm (i.e. TeX line breaking).

--Brady
Received on Wednesday, 25 April 2007 16:05:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT