[whatwg] CSS canvas() function

On Thu, Dec 2, 2010 at 12:43 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> My question was specifically for an out-of-document <iframe>.
> In-document, all elements are obviously valid.
>
> Something like:
> <script>
> var frame = document.createElement("iframe");
> frame.src = "http://www.example.com"
> document.cssElementMap.foo = frame;
> </script>
>
> Should this work?  The rendering of a non-seamless <iframe> doesn't
> depend on any other elements in the document.  In general, any
> replaced element seems to fall into this camp.
>

It depends on viewport size and medium, at least.

In the absence of compelling use cases, I'd just leave it at <img>, <canvas>
and <video> and whitelist in more elements later if necessary.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101202/965dc31f/attachment.htm>

Received on Wednesday, 1 December 2010 17:20:59 UTC