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

On Jan 13, 2009, at 6:52 PM, fantasai wrote:

> Brad Kemper wrote:
>> ... if I class something to align on a decimal in a table cell, I  
>> might want it to be right aligned if that class was applied to  
>> something other than a table cell, and I could put that in the rule  
>> like this:
>> { text-align:right; text-align: '.'; }
>
> Can't do that. The cascade happens before style computation.
> But what we /could/ do is to allow both a keyword and a string.
>
> td { text-align: right '.'; }
>
> This would also give control over what happens when there's lots
> of extra room in the cells, or when the alignment string doesn't
> appear in the text.
>
> ~fantasai

I like it.

Received on Wednesday, 14 January 2009 03:16:14 UTC