W3C home > Mailing lists > Public > www-style@w3.org > August 2014

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

From: Lea Verou <lea@verou.me>
Date: Sat, 2 Aug 2014 20:09:03 +0300
Cc: www-style list <www-style@w3.org>
Message-Id: <875AC510-C387-44D2-A7C3-C46164D173E6@verou.me>
To: Christoph Päper <christoph.paeper@crissov.de>
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

This archive was generated by hypermail 2.3.1 : Saturday, 2 August 2014 17:11:17 UTC