Re: Pardon about CSS4 "element()"

On Wed, Dec 16, 2015 at 10:42 AM, Alexey Solovey <acterhd@gmail.com> wrote:
> You not right.
>
> Element can draw elements (canvas, video, img) on Paint API.
>
> BUT! For CSS Houdini I think need use "source()", not "element()".

Houdini uses the function "paint()" for its stuff.

> Also I see that browsers integrate feature "ImageBitmap". I think need use
> as base this API.
>
> So:
>
> .class {
>   background-image: bitmap(name);
> }
>
> createImageBitmap(canvas).then(function(bitmap){
>   CSS.bitmapSources("name", bitmap);
> });

Again, this is better done by Houdini's Custom Paint spec.

~TJ

Received on Wednesday, 16 December 2015 18:46:10 UTC