W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css4-images] element() and <video>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 31 Jul 2012 21:53:11 -0700
Message-ID: <CAAWBYDB8zHvr4F6RyPfMcJXK4gvvrgng_+KPG3MQ85bxYvNQyA@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
On Tue, Jul 31, 2012 at 9:44 PM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> Is this
>
>   div { background: element(#video1) repeat; }
>
> supposed to work if #video is some <video> element running movie?
> To work here means that div will show movie(s) at its background.

Yes.  Why do you think it wouldn't work?  The spec is clear about this.

Look at the -moz-element() function that I based the spec off of.
Here's a page showing off some of the things it can do:
http://hacks.mozilla.org/2010/08/mozelement/

~TJ
Received on Wednesday, 1 August 2012 04:53:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT