W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: CSS: %% length unit. Proposal. Some clarifications.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 11 May 2004 14:57:17 -0700
Message-ID: <002e01c437a2$edde6060$1902000a@AFedoniouk>
To: "L. David Baron" <dbaron@dbaron.org>, <www-style@w3.org>

For me personally the concept of "auto" is one of the most confusing things
in CSS:
Bad dream of implementor: "...'auto' replaced by some suitable value, but
there are exceptions...".

E.g. why margin-left/right:auto in some cases is exactly 50%% and
margin-top/bottom:auto is nothing in most(or in all?) cases?

%% is an attempt to formalize this 'auto' concept if you wish.

width:50%  and width:50%%  are basicly the same entities
but in first place ContainerContentWidth is used as base for computing
percents and
in second place it is FreeSpace which is function of ContainerContentWidth.

Andrew Fedoniouk.
http://terrainformatica.com


L. David Baron  wrote:
"This means that, while it's a value for the 'width' property, it's not
actually describing the width, but rather a factor to be added to an
'auto' width.  That seems confusing, and might lead authors to expect
that of 'width' in other cases as well (as some buggy browsers already
do, especially for 'height')"

> first:
>    compute everything as %% does not exist at all.
>    apply all paragraph wrapping rules as usual.
> second:
>    compute free space for each line box which we've got on first step.
>    compute all elements which have %% according to free space.
>    replace elements in line boxes.
Received on Tuesday, 11 May 2004 17:57:50 GMT

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