- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 16 Dec 2015 10:45:24 -0800
- 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