- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Wed, 16 May 2012 17:48:45 -0400
- To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
- Cc: "Håkon Wium Lie" <howcome@opera.com>
Le Mer 16 mai 2012 13:52, "Gérard Talbot" a écrit :
> Hello,
>
> Example given:
>
> http://test.csswg.org/suites/css3-multicol/nightly-unstable/html4/multicol-fill-000.htm
>
> line 10 <style type="text/css">
> div, table {
> font: 10px/10px Ahem;
> margin: 1em 0;
> color: lime;
> background: yellow;
> width: 400px;
> }
>
> div.multicol {
> columns: 3;
> column-gap: 0px;
> column-rule: none;
> column-fill: balance;
> }
>
>
> What is supposed to happen when the width is not dividable by the number
> of columns without a fractional remainder?
>
> Each <p> should be 133.33333px wide?
> Or the first one should be 134px?
> Or the last one?
> It's entirely UA-dependent.
>
> Opera 11.64 DragonFly reports 133px for each <p>'s computed style width;
> so, it seems it rounds down the fraction.
>
> What I'm trying to say is that all these tests should avoid fractional
> pixels situations.
3.4. Pseudo-algorithm
http://www.w3.org/TR/css3-multicol/#pseudo-algorithm
says:
"
(19) if (column-width != auto) and (column-count != auto) then
(20) N := min(column-count, floor((available-width + column-gap) /
(column-width + column-gap)))
(21) W := ((available-width + column-gap) / N) - column-gap;
"
So, in the
http://test.csswg.org/suites/css3-multicol/nightly-unstable/html4/multicol-fill-000.htm
test, each column (computed) width would be 133.33333px but what about
their used width?
------------
"
Example XII
div {
width: 100px;
column-width: 45px;
column-gap: 0;
column-rule: none;
}
There is room for two 45px wide columns inside the 100px wide element.
In order to fill the available space the actual column width will be
increased to 50px.
"
3.1 'column-width'
http://www.w3.org/TR/css3-multicol/#cw
but what happens if the div's width is set to 101px in that example? How
wide is going to be both/each columns?
Gérard
--
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html
CSS 2.1 test suite harness:
http://test.csswg.org/harness/
Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Wednesday, 16 May 2012 21:49:18 UTC