Re: [whatwg] hit regions: limited set of elements for fallback content

hixie wrote:

But there's plenty of things which make zero sense as fallback content.
<input type=color>, for example, simply cannot be sanely implemented in
canvas

as implemented input type=color is a button that when activated pops up a
picker dialog. So the following code (as a simple example)

<canvas id="myCanvas" width="200" height="100"
style="border:1px solid #000000;"
onclick="document.getElementById('button').click();">
<input type="color"" id="button">
</canvas>

in Firefox 30/windows when the canvas is clicked the color picker is
displayed., likewise if the the input receives focus via the keyboard and
the enter/spacebar key is pressed the picker dialog is displayed.
--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

Received on Friday, 21 February 2014 08:49:03 UTC