Re: [css4-text] text-align: auto

I’m leaning towards agreeing with François here. Is there any other application of this kind of alignment, besides spreadsheets?

Also, this sounds like it would have the same perf issues as :content(), which was dropped.

~Lea

On Aug 1, 2014, at 15:10, Christoph Päper <christoph.paeper@crissov.de> wrote:

> Spreadsheet applications support automatic text alignment in cells. That means numeric values are right-aligned and everything else is left-aligned (or rather start-aligned). This is the default behavior. CSS has nothing like this, character alignment, which isn’t implemented much, probably comes closest.
> 
> I’d like to propose an ‘auto’ value for the ‘text-alignment’ property. It would work like this:
> If there are only textual/inline children and if these only contain digit, punctuation and space characters calculate to ‘right’ (‘end’?), but as soon as another type of characters is encountered calculate to ‘start’, otherwise calculate to ‘justify’ (i.e. with block children). This latter fallback differs from spreadsheets.
> This behavior may be limited to certain boxes, e.g. those with ‘display’ set to ‘table-cell’ and certain others.
> 
> Please note that ‘text-align-last’ already supports an ‘auto’ value, so maybe a different name would be preferable.

Received on Saturday, 2 August 2014 17:11:17 UTC