Wednesday, November 24, 2010

CSS Transformations

Most modern browsers support some sort of CSS transformation.  What this means is that a lot of what can be done only with Canvas, can also be done within the DOM.  There has always been a plan to include this and I think that v2.0 will be the place where it is developed.  In particular, the HTMLElementContext has had support for this for a while, but nothing was ever done with it.

Each class in The Render Engine can implement a class method called resolved() that will be executed as soon as the class dependencies are resolved and it can be initialized.  The HTMLElementContext uses this method to load one of two support files, either for Safari or Gecko.  These files would add the functionality for transformation support into the context, thus completing methods which are currently just abstract in RenderContext2D.

I just wanted to point this out because so many people have been asking about the HTML contexts recently.  While support is limited in v1.5.3, the next major version of the engine should have more complete support for this functionality.

No comments:

Post a Comment