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

± > 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