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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 9 May 2004 23:29:56 -0700
To: www-style@w3.org
Message-ID: <20040510062956.GB14554@darby.dbaron.org>
On Saturday 2004-05-08 21:30 -0400, Ernest Cline wrote:
> > [Original Message]
> > From: Andrew Fedoniouk <news@terrainformatica.com>
> >
> > %% units should be allowed ONLY in margin and width/height
> > CSS attributes for boxes having 'normal' flow.
> > Not in absolute nor relative nor fixed positioning mode.
> Then I absolutely, categorically am against %%.  Both from the

I am also against it.  It is an attempt to mix into inline layout things
that are conceptually unrelated to inline layout.  If you want a bunch
of things to share the horizontal space across a region, you should
describe that rather than using a line-breaking model and then saying
that one element takes x% of the rest of the available space in the

Implementing this would significantly complicate line breaking.
Currently implementations can assume that elements don't change size
when moved from one line to another, except for pieces that appear (soft
hyphens) or disappear (trailing spaces) *at break points*.  This would
violate that assumption and add significant complexity to something
that's already complex enough.

The realistic use cases I've seen mentioned for this %% proposal would
be handled by a flexible box model (like XUL's box model).


L. David Baron                                <URL: http://dbaron.org/ >

Received on Monday, 10 May 2004 02:31:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:13 UTC