[whatwg] Canvas element

Rob Mientjes wrote:
> On 4/22/05, Jim Ley <jim.ley at gmail.com> wrote:
> 
>>>It has the semantics of a rendering context to which scripts can draw.
>>
>>So it only has presentational semantics, so should be in a rendering
>>language like CSS?
> 
> 
> That's the endless quandry. 'CSS can only do so much!' 'Markup should
> be about content, not presentation.'
> 
> Maybe someone else can think of a suitable description that doesn't
> get in the way of anti-presentational markup purists.


HTML:  IMG               -->  CANVAS
CSS:   background-image  -->  background-canvas ?

div#flag {
   background-canvas: draw;
}

div#flag.blank {
   background-canvas: none;
}

-dean

Received on Friday, 22 April 2005 08:27:27 UTC