Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Javascript implementation for canvas.drawWindow
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
scripts moving utilities to bottom
tests update links in tests
README Add license to readme.
index.html update home page


# DrawWindow
a JavaScript based HTML renderer in Canvas

## What is it?
Based on the drawWindow functionality in Firefox

## How does it work?
It works by reading computed styles and offsets to draw each element individually.

## What doesn't work?
There are many things that are not complete with this implementation.  It would need a lot of work before becoming 
* Many CSS properties and some HTML elements are not supported, because they cannot be read from the DOM style and positioning properties.
** Form elements
** Different style (dotted, dashed) borders
** Rounded corners
** Gradients
** Many other things
* Browser support is slim.  I have tested mainly in Chrome, though it should work in Firefox and Safari.
** IE support requires flash canvas, and I seem to remember some problems with copying on canvas into another with that library
* Cross domain images do not work as of now.  They need to be proxied from a similar domain or passed as base64 using a cross domain message to prevent permission errors.
* Tests pages are lacking - I had a number of other tests in earlier implementations of this that haven't gotten ported over.

## License
MIT License
Something went wrong with that request. Please try again.