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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 31 Dec 2008 20:07:16 -0800
Cc: www-style@w3.org
Message-Id: <840DA612-DFCB-4EE4-B74B-0EDC4E830F0D@gmail.com>
To: L. David Baron <dbaron@dbaron.org>

I apologize if you've seen this more than once. I've been having some  
e-mail problems that caused it to be sent from the wrong server.

On Dec 31, 2008, at 5:05 PM, L. David Baron wrote:

> 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.

Yes, you are right. Sorry. Here is the use case:

.numbers { font-family:courier; font-size:14px; color: red; text- 
align:"."; }

Now, imagine that besides applying this class to a table cell, I also  
apply it to block elements as well, in order to pick up the other  

<div class="numbers">
$ 123.50<BR>
$ 0.75<BR>

Ideally, those would be right aligned. And you are probably right  
about this part not being that important, if it is a big deal, since  
there are other ways to get it to have another alignment (such a  
DIV.numbers rule). My druthers would be to allow author flexibility or  
to have "right" be the fallback value in this situation. But of  
course, I don't have to do the work to implement my druthers in the  
browser program.
Received on Thursday, 1 January 2009 04:08:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:23 UTC