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

RE: [css-text] text-align-last and cascading

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 20 Aug 2013 18:33:37 -0700
Message-ID: <DUB404-EAS140D93B47E69DE008199326A54C0@phx.gbl>
To: "'fantasai'" <fantasai.lists@inkedblade.net>, <www-style@w3.org>
± > Full proposal would be:
± >
± >    text-align: <alignment-values>{1,2} | justify-all;
± >    -> text-align-all: <alignment-values>;
± >    -> text-align-last: auto | <alignment-values>;

Just for the record, I faced a case where I wanted the alignment of the last line to be "really normal" (ie: not an exception). My idea initially was to provide a "no-exception" or "as-usual" value for "text-align-last", so that if "text-align" is set to "justify", the last line is also justified.

Not to say I'm against "justify-all" but having "text-align-last: as-usual" would allow me to solve my problem with CSS only where the current options force me to use JavaScript to detect the current alignment and set "text-align-last" to "justify" if "text-align" computed to "justify" which is rather odd (but for now I've to rely on it anyway since blink/webkit do not support text-align-last anyway).

(my two cents)
Received on Wednesday, 21 August 2013 01:34:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC