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

[whatwg] Canvas and DOM elements

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 May 2006 15:26:00 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605191506020.21459@dhalsim.dreamhost.com>
On Thu, 4 May 2006, Andrew Fedoniouk wrote:
> 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.

In practice, major browser vendors have difficulty writing Web browsers 
that handle generic concepts like this. <object>, for example, which is a 
very generic feature, has been historically very badly implemented. So it 
was felt better to make things more specific to one element.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 19 May 2006 08:26:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC