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

Re: [css-shapes] Should shape-margin's computed value be the used value?

From: Alan Stearns <stearns@adobe.com>
Date: Wed, 30 Apr 2014 00:48:33 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, Bear Travis <betravis@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <CF8595EB.3EE09%stearns@adobe.com>
On 4/29/14, 5:38 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

>On Tue, Apr 29, 2014 at 5:16 PM, Bear Travis <betravis@adobe.com> wrote:
>> Hi All,
>> I had a quick question about shape-margin’s computed value. In the
>>spec, the
>> shape-margin property can be a length or percentage, but computes to an
>> absolute length [1]. In general, I thought that computed values [2] did
>> resolve percentages when the percentages depended on layout. Is there a
>> reason this property would be different? I know that even with a
>> value as the computed value, the resolved value [3] returned by
>> getComputedStyle might be different, but I would hope they could stay
>> same. Border-radius [4] is one example of a property that preserves
>> percentages in the computed value.
>(You're asking about the resolved value, or the getComputedStyle()
>return value, not the computed value.)
>It should be the computed value.  The only things that do the used
>value are legacy properties, and some of the Grid properties due to
>compat issues with the early MS implementation.

He is asking about the computed value, since the Shapes spec says this
about shape-margin:

  Computed value: the absolute length

Should that change to:

  Computed value: as specified




Received on Wednesday, 30 April 2014 00:49:22 UTC

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