- From: Alex Mogilevsky <alexmog@microsoft.com>
- Date: Tue, 8 Feb 2011 18:54:13 +0000
- To: Håkon Wium Lie <howcome@opera.com>
- CC: Sylvain Galineau <sylvaing@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Ah, I see, after you fix line 24, changing line 17 to "<=" makes no difference when zero-width columns with their gaps fit precisely into the width. I may have missed the discussion that led to lines 23-26 though. That part of the algorithm takes off at the point where nothing fits at all and tries to give priority to column gap over column count, which leads to a transition from 3 zero-width columns to 2 usable columns. 2 columns could be useful, but if you have to hit zero first I find that questionable... It seems to me there shouldn't be any way to get from 3 columns to 2 columns. The algorithm should either decrease column gap to keep 3 zero-width columns indefinitely, drop all the way to 1 column or produce overflow. -----Original Message----- From: Håkon Wium Lie [mailto:howcome@opera.com] Sent: Tuesday, February 08, 2011 6:25 AM To: Alex Mogilevsky Cc: Sylvain Galineau; www-style@w3.org Subject: RE: [css3-multicol] pseudo-algorithm Also sprach Alex Mogilevsky: > BTW you can further improve this degradation track by changing line (17) from > > (17) if ((column-count - 1) * column-gap < available-width) then > to > (17) if ((column-count - 1) * column-gap <= available-width) then > > If you consider zero-width columns an acceptable multicolumn > layout, you will get 3 zero-width columns at 50px gap. To me, it seems that changing line (17) will have no impact; you will in any case get 3 zero-width columns at 50px gap. The only differnce is that line 18 will set it to three, rather than line 24. I think we must allow zero-width columns. This will also occur when 'column-count' approaches infinity. But we probably don't want to allow 'column-width: 0'. In the editor's draft, I have clarified that zero is an acceptable computed value for 'column-count'. http://dev.w3.org/csswg/css3-multicol/ -h&kon Håkon Wium Lie CTO °þe®ª howcome@opera.com http://people.opera.com/howcome
Received on Tuesday, 8 February 2011 18:54:48 UTC