Re: [css-transforms] - Add generic transformation


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:

http://1drv.ms/1KSpJ44


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.

Greetings,
Dirk

[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