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

Re: [CSS3] CSS Text Level 3, 6.1: text-align: string

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 31 Dec 2008 20:05:33 -0500
To: Brad Kemper <brad.kemper@gmail.com>
Cc: www-style@w3.org
Message-ID: <20090101010533.GA15295@pickering.dbaron.org>

On Wednesday 2008-12-31 16:57 -0800, Brad Kemper wrote:
> Wow. OK. I didn't realize it would be that hard to get a reasonable  
> fallback value. In the case of decimal numbers, I would want the columns 

This was the discussion about fallback if text-align: <string> was
used on something not a table cell; not the case about fallback if
the cell doesn't have appropriate text.

> to be aligned on the decimal. That has got to be the most common use 
> case, no? Especially if you don't know how many decimal places will be in 
> each number. But if the same column happened to contain integers instead 
> of decimals, then I would want them to line up on the right. Always 
> (assuming they are values to be compared with one another).

I think for the case where the cell doesn't have the appropriate
text, assuming that the alignment text is right after the text of
the cell probably makes sense, given that the primary use case is
decimals.  (This would imply that when none of the cells have the
text, it's equivalent to text-align: end.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 1 January 2009 01:06:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:15 GMT