W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: Pardon about CSS4 "element()"

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 16 Dec 2015 10:45:24 -0800
Message-ID: <CAAWBYDBp8Yz=ef=k=GcHkGxHTOazyiPEsz+LD6F7g9yF-cSv4g@mail.gmail.com>
To: Alexey Solovey <acterhd@gmail.com>
Cc: www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:59 UTC