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

Re: [css3-images] paint sources

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 6 Feb 2012 01:14:31 -0800
Message-ID: <CAAWBYDBBHtH8GrgnHWRsw3+KLs7X68CC5O4BuGjuLv6J+2jNoQ@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
On Sun, Feb 5, 2012 at 10:31 AM, L. David Baron <dbaron@dbaron.org> wrote:
> http://dev.w3.org/csswg/css3-images/#element-reference
> (Overview.html revision 1.269) says the following:
>
>  # Host languages may define that some elements provide a paint
>  # source. Paint sources have an intrinsic width, height, and
>  # appearance, separate from the process of rendering, and so may
>  # be used as images even when they're not being rendered. Examples
>  # of elements that provide paint sources are the <linearGradient>,
>  # <radialGradient>, and <pattern> elements in SVG, or the <img>,
>  # <video>, and <canvas> elements in HTML.
>
> Given that the SVG and HTML specifications don't currently define
> that these elements provide a paint source, I think *this*
> specification should define that they provide a paint source, and
> define how they do.  It can still allow other languages to add
> defintions, and future levels of HTML and SVG to revise theirs.

HTML defines that <img>, <video>, and <canvas> provide paint sources
(go to the section for each element, and search for "paint source").

SVG uses the term "paint source" already, though I probably should go
ahead and define how the coordinate systems map - I plan to match what
roc already did.

~TJ
Received on Monday, 6 February 2012 09:15:27 GMT

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