Re: 2D Transforms Update - 14 Oct 2010

Am 25.10.2010 um 22:48 schrieb Robert O'Callahan:

> Maybe I'm missing something, but for "transform-origin" you don't define what the "bounding box" for an element in the CSS box model is. I guess from the CSS draft, it's "the element's CSS box" --- which is quite different in spirit to the SVG bounding box which "entirely encloses the element and its descendants". Maybe this should be noted; it's probably going to confuse authors. Or we could resolve the discrepancy by defining a new kind of SVG bounding box that only bounds the element and not its descendants, and defining transform-origin in terms of that.

What would the new bounding box look like for containers, if we don't take descendants into account?
Independent what kind of bounding box we would take, it's always confusing from time to time. For example if the content of an element gets clipped away by a SVG Clipper or Masker, we still get the bounding box of the original element without the clipper. Another example is SVG Filter. SVG Filter can define a filter region that is completely independent of the elements bounding box. It's content can even be on a totally different position.

Dirk

Received on Monday, 25 October 2010 21:05:42 UTC