W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: text-align property for columns (once again)

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 6 Apr 2009 10:51:27 -0700
To: www-style@w3.org
Message-ID: <20090406175127.GA1992@pickering.dbaron.org>
On Monday 2009-04-06 10:27 -0700, Brad Kemper wrote:
> Border is a special case as part of the unique conflict resolution that 
> substitutes for getting the values from inheritance (with no such  
> complicated inheritance-free value-passing methods being part of normal 
> CSS). In theory, I don't see why a similar conflict resolution (namely 
> step 4) could not be used for 'color' and 'text-align'.


 (1) Border is a non-inherited property, so the end result of the
 CSS cascading and inheritance algorithm still leaves you with
 information about where it was specified

 (2) The default for border-style is 'none' (which is a result of
 being non-inherited), so there's a concept of "not having a border"
 that allows useful fallback.

border conflict resolution can happen without messing with the
internals of CSS cascading and inheritance.  To do the same for an
inherited property like 'color' or 'text-align' requires messing
with the guts of the cascading and inheritance rules (and making
them a LOT more complicated).

It would be much simpler to solve these problems with :col() and
:nth-col(); is there a good enough reason to prefer a significantly
more complicated solution?


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 6 April 2009 17:52:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:35 UTC