W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2011

[css-compositing] group invariance

From: Rik Cabanier <cabanier@gmail.com>
Date: Mon, 21 Nov 2011 17:46:10 -0800
Message-ID: <CAGN7qDAfv=R9DnhVYCAHzsrH14J+kQHc9LmTrFGDKAg4JFfPxg@mail.gmail.com>
To: www-svg <www-svg@w3.org>, public-fx@w3.org
All,

we've been discussing my proposal internally. One of my coworkers brought
up an issue with group invariance in my proposal and I wanted to see if
people believe that this is an issue.

One of the principles of the Adobe imaging model is that adding a default
group should not change the appearance of the artwork. (Changing group's
parameters to isolate:true or knockout: true will change appearance)
In SVG which uses the <g> operator for grouping, this is also the case.

However, with my proposal, things will render differently.
For instance, this example:

<circle>
<circle alpha-compositing='dst-in'>

will render differently from:

<circle>
<g>

<circle alpha-compositing='dst-in'>

</g>


You can rewrite the second section as:

<circle>
<g alpha-compositing='src-over'> // src-over is the default

<circle alpha-compositing='dst-in'>

</g>

This code will do a 'dst-in' of the circle with an empty buffer. This empty
buffer is then composited over the first circle.

My question is:
a. Do people believe that group invariance is an important feature to have?
b. If so, do you want to see this fixed in the first spec or can we address
this in a later version?

Making alpha-compositing group invariant is quite complex. The math is
comparable to how 'enable-background' works.

Rik
Received on Tuesday, 22 November 2011 01:46:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 November 2011 01:46:48 GMT