Re: correct and incorrect uses of canvas

>-----Original Message----- 
>From: Kornel Lesinski Sent: Sunday, July 17, 2011 11:07 AM To: Andrew 
>Fedoniouk Cc: public-html@w3.org Subject: Re: correct and incorrect uses of 
>canvas
>On Sun, 17 Jul 2011 17:29:39 +0100, Andrew Fedoniouk 
><andrew.fedoniouk@live.com> wrote:
>
>> Consider this SVG:
>> http://terrainformatica.com/w3/flower.svg
>>
>> In HTML you can use that SVG for example as this:
>> <img src="http://terrainformatica.com/w3/flower.svg" alt="flower" >
>>
>> We can  add to each <cicrcle> in that SVG attributes
>> @alt="leaf" or @alt="petal" but will it help to anyone?
>
>In case of a simple non-interactive images alt may suffice. However, SVG 
>can be used for much more than that, e.g. infographics and charts, which 
>contain text and data and may have buttons and other interactive elements.

As for charts the markup should look like this:
<div #chart>
   <ul .series>
       <li>10%</li>
       <li>40%</li>
       ...
  </ul>
  <legend>
      <label onclick=...>IE</label>
      <label onclick=...>FF</label>
  </legend>
</div>

Or something like that. That would be at least enumerable/readable.

>
>Saying that <circle> is clickable would help, and would be improvement 
>over just a circle drawn on canvas and hit-tested against mouse click with 
>custom JS.
>

Again, the idea is to motivate developers to use meaningful markup -
only HTML DOM elements should be clickable. Particular drawing
and visual structure of the scene does not really matter for A11y.


-- 
Andrew Fedoniouk

http://terrainformatica.com 

Received on Sunday, 17 July 2011 19:11:27 UTC