W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

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

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Fri, 21 Feb 2014 08:47:51 +0000
Message-ID: <CA+ri+V=dbS65OrGvngQm5+xTRR0+EW6Zw38y+Hc2NLgERRsD=Q@mail.gmail.com>
To: whatwg <whatwg@lists.whatwg.org>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:16 UTC