W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] Canvas and DOM elements

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 04 May 2006 23:14:34 -0700
Message-ID: <003d01c6700b$2df5ea40$3401a8c0@TERRA>

Having dedicated DOM element (<canvas>) for drawings looks a bit strange as 
a design decision.
Logically any block DOM element can provide graphics.
Ideally getContext method should have one more parameter - layer - 
background/content/foreground -
so graphics could be mixed with the content of the element, drawn on top 
and/or below the content.

Only as an example, Sciter allows to draw on any block element:
http://terrainformatica.com/sciter/sciter.zip at
Samples are in /samples/graphics/*.htm

Andrew Fedoniouk.
Received on Thursday, 4 May 2006 23:14:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC