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

[css-filters] bounding box / filter region vs. child transforms

From: Stephen White <senorblanco@chromium.org>
Date: Mon, 16 Nov 2015 19:20:24 -0500
Message-ID: <CAPeKFTj12CiGQ31iQf5A90W04vY5CaZapXdr9uFf46EmfmBr3A@mail.gmail.com>
To: "public-fx@w3.org" <public-fx@w3.org>
Hi filter-folks,

Should the bounding box used to compute filter region in CSS filter effects
include CSS transforms applied to child elements?

E.g.,

    <div id="parent" style="filter: url(#filter);">
      <div id="child" style="transform: scaleY(4);">X
      </div>
    </div>

What's the bounding box for the filter on "parent"? Does it include the
scaleY(4) of the child element, or is it the original untransformed
bounding box? The spec currently has a link
<http://www.w3.org/TR/2011/REC-SVG11-20110816/coords.html#ObjectBoundingBoxUnits>
to the SVG 1.1 spec, which has no mention of transforms, so one could
assume they're implicitly included, but being an SVG spec, perhaps it
doesn't fully describe all possible implications for HTML.

(See Chrome bug https://code.google.com/p/chromium/issues/detail?id=554169
for further reference/discussion.)

Thanks in advance for your help,

Stephen
Received on Tuesday, 17 November 2015 00:20:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 17 November 2015 00:20:54 UTC