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

Re: [css-transforms] - Add generic transformation

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 6 Aug 2015 10:36:49 +0000
To: news.gmane.org <brille1@hotmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <CA5A0832-0EE5-4384-9EA8-D644D38DAD63@adobe.com>

On Aug 6, 2015, at 11:44 AM, news.gmane.org<http://news.gmane.org> <brille1@hotmail.com<mailto:brille1@hotmail.com>> wrote:

After three years of idleness I'd like to bring the idea of a generic
transformation property back into play:


A generic transformation, defined by assigning mapped coordinates to each of
an elements corner points, is easy to handle and replaces all the special
transformations that currently are defined.

You could create a polyfill with current transform and clip path. Draw the same element twice, clip both with opposite triangles and add the needed transform on each of the two elements.

If you want to do the more complex transformation at the end, you would need a (for HTML) ridiculously amount of triangles of course.

For HTML Canvas this is definitely the better option than introducing a generic transform function.

For CSS Adobe had another proposal that would allow even more complex transformations with CSS Shaders (aka Custom Filters)[1][2]. Blink and WebKit had implementations for quite some time before it was removed eventually. The request from authors isn’t big enough currently it seems.


[1] http://www.adobe.com/devnet/archive/html5/articles/css-shaders.html

[2] https://drafts.fxtf.org/custom/

Axel Dahmen

Received on Thursday, 6 August 2015 10:37:19 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 6 August 2015 10:37:20 UTC