Re: [css-transforms][svg11] Effect of perspective and 3D transform on SVG bounding box



On Oct 16, 2013, at 6:46 AM, "Robert O'Callahan" <robert@ocallahan.org<mailto:robert@ocallahan.org>> wrote:

Another approach, which is actually what Gecko currently does by accident, is to make SVG's "transform" attribute affect an SVG element's contribution to its parent's bounding box, but make CSS transforms not affect the element's contribution to its parent's bounding box.

That is what the SVG spec says currently just because CSS Transforms didn't exist at the time. It doesn't sound very intuitive though. I think we want to encourage people to use style sheets and CSS in general and not to rely on a specific attribute from SVG and cascade (presentation style) from CSS.

IIRC WebKit and Blink do include the CSS Transform in the bounding box. But then again, both just have 2D support and strip 3D components out.

Greetings
Dirk


Rob
--
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr, 'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp  waanndt  wyeonut  thoo mken.o w

Received on Wednesday, 16 October 2013 05:46:37 UTC