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

Re: [css-shapes] Animating <basic-shape>s updated

From: Alan Stearns <stearns@adobe.com>
Date: Fri, 7 Feb 2014 05:27:41 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CF19ADF9.18406%stearns@adobe.com>
On 2/3/14, 8:14 AM, "fantasai" <fantasai.lists@inkedblade.net> wrote:

>On 01/31/2014 03:12 PM, Alan Stearns wrote:
>>
>> Going through our testcases, the proposed wording above doesn’t say what
>> type to use for a missing offset in the 4-value form. So a specified
>>value
>> like:
>>
>> bottom right 10px
>>
>> Could serialize to either of these:
>>
>> right 10px bottom 0%
>> right 10px bottom 0px
>>
>> I’m inclined to go with 0%, just because a percent seems more generic
>>than
>> picking a particular distance unit.
>
>Zero lengths don't require a unit. Would that work?

Zero lengths are defined to serialize as ‘0px’ in CSSOM. In this case,
it’s ambiguous whether the missing value is a length or a percentage. I
went with 0% in the current draft.

Thanks,

Alan

Received on Friday, 7 February 2014 05:28:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC