W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: [css3-text] <spacing-limit> incompatible with calc due to different treatment of lengths and %s

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 6 Jan 2012 10:40:55 -0800
Message-ID: <CAAWBYDBrNPOXb2WuL+Qpk4D1QTXOSOOt31UikFS+VBKH=zuqLg@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
On Fri, Jan 6, 2012 at 10:35 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 01/05/2012 03:33 PM, Tab Atkins Jr. wrote:
>> fantasai wrote:
>>> Tab Atkins wrote:
>>>> If so, this seems suboptimal, as it's then impossible to, say, use
>>>> calc() to set the word-spacing to a particular length.  (I had
>>>> expected "calc(0% + 1ch)" to kinda work like that.)  Perhaps we can
>>>> alter word-spacing to accept both a percentage and a length, and
>>>> combine their effects?
>>>
>>> word-spacing takes up to three values, so that wouldn't be parseable.
>>
>> Oh, darn, I missed that.  Is it possible to change<spacing-limit>  at
>> this point, perhaps to a grammar like [...]
>
> (We don't, generally, add keywords for the sub-parts of multi-value
> properties, in case you haven't noticed. :)

Yeah, I know, but there's always a first!

> Alternatively, I could change percentages to be additive, too. It means
> word-spacing: -100%; would set the word spacing to zero, which is a little
> weird, but it would solve the problem you raise. What do you think?

Yeah, this would work.

~TJ
Received on Friday, 6 January 2012 18:41:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT