W3C home > Mailing lists > Public > public-css-testsuite@w3.org > May 2012

[multicol] set width of multicol block not dividable by number of columns without creating fraction

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 16 May 2012 13:52:40 -0400
Message-ID: <8ffa49e9c5d6b7b251da72b7422e5d99.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Cc: "Håkon Wium Lie" <howcome@opera.com>

Example given:


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.

Contributions to the CSS 2.1 test suite:

CSS 2.1 Test suite RC6, March 23rd 2011:

CSS 2.1 test suite harness:

Contributing to to CSS 2.1 test suite:
Received on Wednesday, 16 May 2012 17:53:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:18 UTC