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

Re: [css-transforms] suggestion: single transformation function by simply giving edge positions

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 8 Aug 2014 06:16:11 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: Axel Dahmen <brille1@hotmail.com>, www-style list <www-style@w3.org>
Message-ID: <C1341BA9-D798-44B4-B7F2-DE2B18D160DC@adobe.com>

On Aug 8, 2014, at 1:22 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Thu, Aug 7, 2014 at 10:48 AM, Axel Dahmen <brille1@hotmail.com> wrote:
>> Instead of defining a list of several transform functions, I suggest to just
>> give the dx/dy offsets of the upper left/upper right/lower left and lower
>> right edges of an element.
>> 
>> For instance, a rule like this:
>> 
>> img
>> {transform: Point(10%, 10%) Point(-10%, 10%) Point(-10%, -10%) Point(-30%,
>> 10%)
>> }
>> 
>> would result in the application to perform all necessary transformations in
>> order to have the edges of the element meet the given calculated values.
>> 
>> Here's a short movie clip I have created years ago to suggest this same
>> feature to the HTML5 canvas element:
>> 
>> https://onedrive.live.com/?cid=f18aeca352311e71&id=F18AECA352311E71!236&sff=1&authkey=!ADjO30UeJ7scJIU&v=3
> 
> I'm not 100% certain this is something that can be duplicated by
> existing transforms.  For example, I don't think you can transform a
> square into a rhombus, at least with the 2d transforms.  You could
> definitely do it with 3d, but that might have unexpected effects,
> especially if there's already a 3d scene being manipulated.

The question is if there is a strong enough need to have it. We certainly donít need to handle everything. If it is too specific, we could investigate if there is a way to archive it by scripting it without too much efforts. It is already possible to script it today. Maybe the efforts are high but probably not too high at this point.

Greetings,
Dirk

> 
> ~TJ
> 
Received on Friday, 8 August 2014 06:16:44 UTC

This archive was generated by hypermail 2.3.1 : Friday, 8 August 2014 06:16:45 UTC