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: Wed, 28 Aug 2013 18:59:41 +0200
Message-ID: <DUB120-W4DA77EA0E275685199104A54B0@phx.gbl>
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
>> 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).
> I'm not sure that would work out very well if 'text-align-last'
> is reset by 'text-align', though.

Is it the case today? I guess it's not and if so I would leave it that way.

It is possibly to specify a special computation algorithm for text-align-last that depends on the value for text-align so that you don't have to "reset" the property as a long-hand. Kinda like some display/position combination force float to compute to none. 		 	   		  
Received on Wednesday, 28 August 2013 17:00:08 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC