W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [css-shapes][css-values] getComputedStyle for Percentages used as length

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 16 Sep 2013 11:38:27 -0700
Message-ID: <CAAWBYDDCn3mWarLF6WPf9FcQ=jpXL4ymHyTrOtkJy-_CGsmN_w@mail.gmail.com>
To: François REMY <francois.remy.dev@outlook.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Sep 16, 2013 at 11:32 AM, François REMY
<francois.remy.dev@outlook.com> wrote:
> Before taking any further action against this, I would like to have your opinion on what should be the output value of the following code:
>
> #  element.style.shapeInside="polygon(0% 0%, 100% 0%, 100% 100%)";
> #  getComputedStyle(element).shapeInside;
>
> Currently Blink/Webkit seem to return the lengths as percentages, but I believe it should be pixels. Am I right in my assumption?

Why would it be pixels?  Those percentages have to be resolved against
the laid-out size, so that means they can't be converted until
used-value time.

~TJ
Received on Monday, 16 September 2013 18:39:14 UTC

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