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

[css-transitions] Interpolation length, percentage, or calc

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 8 Sep 2013 00:10:17 -0700
To: "www-style@w3.org list" <www-style@w3.org>
Message-ID: <E37078C1-80E1-4BC7-A5AE-A5031B8297C0@adobe.com>
Hi,

I need help to interpret the following sentence on interpolation of length, percentage, or calc:

""
[..] both values are converted into a ‘calc()’ function that is the sum of a length and a percentage (each possibly zero), and these ‘calc()’ functions have each half interpolated as real numbers.
""

Just looking at the length to percentage case: If I have an interpolation off 20px to 20%, I have to create a calc() function for each of it of the following form?

calc(<length> + <percentage>)

What would be the value for the both calc() functions? What does need to be half interpolated? I must assume that the order (<length> + <percentage> vs <percentage> + <length>) matters in this case, right?

Looking at length to calc: If I have 20px to calc(50% - 20px), how do the interpolation candidates look like?

Thanks a lot for any clarification.

Greetings,
Dirk
Received on Sunday, 8 September 2013 07:10:41 UTC

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