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:01 -0800
Cc: www-style@w3.org
Message-Id: <CDBA1E15-01C0-476E-ADC5-B65E9E07D4E8@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 4:41 PM, L. David Baron wrote:

>>>> 4. Shouldn't "that also have a character value for 'text-align'  
>>>> will
>>>> align" be replaced by "that also have the same <string> value for
>>>> 'text-align' will align"? After all, some cells in the column could
>>>> align to some other character, couldn't they (if they had a  
>>>> different
>>>> class, for instance)?
>>> Are there use cases that require this?
>> Well, both Tab and I assumed that was the intent anyway, and was just
>> not worded quite right.
> I'm not convinced it was.  I could imagine that case not being
> considered; the HTML4 spec says a good bit about char alignment but
> doesn't mention it.
>> Here's a contrived use case of the kind of thing I was imagining:
>> TD.price { text-align:"." }
>> TD.rating { text-align:"0" }
> Seems like TD.rating really just should be text-align: left.

Sorry. I meant for my example to use en dashes (&ndash), not en  
spaces. Thus, the zero would not always be on the left, but would be  
aligned with the other zeros, sometimes with an arbitrary number of  
dashes to the left, and sometimes with an arbitrary number of pluses  
to the right. Like this (corrected):

TD.price { text-align:"." }
TD.rating { text-align:"0" }

    <td rowspan="2">Thing #1</td>
    <td class="price">$ 45.00</td>
    <td rowspan="2">Thing #2</td>
    <td class="price">$ 5,000.00</td>
    <td rowspan="2">Thing #3</td>
    <td class="price">$ 5.00</td>
Received on Thursday, 1 January 2009 04:08:14 UTC

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