W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: [css-compositing] new Editor's draft posted -> update

From: Robert O'Callahan <robert@ocallahan.org>
Date: Sat, 25 May 2013 00:43:53 +0800
Message-ID: <CAOp6jLbUOVEXJTJhGV1oVTbHwF_=3h=g5HSRWCJZxytSkJnuCw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Michael Mullany <michael@sencha.com>, David Dailey <ddailey@zoominternet.net>, "public-fx@w3.org" <public-fx@w3.org>, www-style list <www-style@w3.org>, www-svg <www-svg@w3.org>, David Baron <dbaron@dbaron.org>
On Fri, May 24, 2013 at 11:09 AM, Rik Cabanier <cabanier@gmail.com> wrote:

> I think there is now a clear path on how to calculate the backdrop for HTML
>

Well, maybe.

Currently the spec says
"However certain operations that cause the creation of stacking context
(such as 3D transforms or a non-default blend mode) [CSS21] will cause a
group to be isolated. This behavior is described in more detail in Isolated
Gropus." [sic]
However, nothing in the spec describes exactly what induces an "isolated
group".

Also, I think every isolated group needs to be a stacking context since we
can't allow two elements in an isolated group to have other content not in
the group inserted between them in z-order. So every element that's an
isolated group would have to be a stacking context, and every element
that's a stacking context would have to be an isolated group, so they're
almost exactly the same thing. Except that SVG images rendered in CSS or
via <img> are also isolated groups.

If we do that, I think we can probably implement this in our compositor.
For every element that requires non-standard blending with the background,
we'd find the nearest ancestor stacking context, which induces an isolated
group on that element. We'd tell the compositor about those isolated
groups, and it would then be able to compute the backdrops for blended
elements within these groups. Needs more thought though.

If that works, I think we should make the CSS/SVG filters "BackgroundImage"
value be evaluated the same way and dispense with "enable-background".
Also, it fits better with our priorities to experiment with this as part of
CSS/SVG filters instead of implementing CSS blending and compositing right
away.

Rob
-- 
q“qIqfq qyqoquq qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qyqoquq,q qwqhqaqtq
qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q qEqvqeqnq qsqiqnqnqeqrqsq
qlqoqvqeq qtqhqoqsqeq qwqhqoq qlqoqvqeq qtqhqeqmq.q qAqnqdq qiqfq qyqoquq
qdqoq qgqoqoqdq qtqoq qtqhqoqsqeq qwqhqoq qaqrqeq qgqoqoqdq qtqoq qyqoquq,q
qwqhqaqtq qcqrqeqdqiqtq qiqsq qtqhqaqtq qtqoq qyqoquq?q qEqvqeqnq
qsqiqnqnqeqrqsq qdqoq qtqhqaqtq.q"
Received on Friday, 24 May 2013 16:44:20 UTC

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