[svgwg] Can a container element (g) with transform applied establish a viewport? (#1016)

nullhook has just created a new issue for https://github.com/w3c/svgwg:

== Can a container element (g) with transform applied establish a viewport? ==
If I have a container element within an SVG (such as `<g>`) with a transform applied to it, does that establish a new user coordinate system?

```
<g transform="...">
<rect x="10" y="10" width="100" height="100" fill="red" filter="url(#filt)" />
</g>
```

Can we also have a stack of nested container elements each establishing a new user coordinate system?

```
<g id="a" transform="...">
  <rect x="10" y="10" width="100" height="100" fill="red" filter="url(#filta)" />

  <g id="b" transform="...">
    <rect x="10" y="10" width="100" height="100" fill="red" filter="url(#filtb)" />
    
      <g id="c" transform="...">
        <rect x="10" y="10" width="100" height="100" fill="red" filter="url(#filtc)" />
      </g>
  </g>
</g>
```

If I were to refer to the following spec: https://www.w3.org/TR/1999/WD-SVG-19991203/coords.html

> A new user space (i.e., a new current coordinate system) can be established by specifying transformations in the form of a transform attribute on a container element or graphics element. The transform attribute transforms all user space coordinates and lengths on the given element and all of its ancestors. Transformations can be nested, in which case the effect of the transformations are cumulative.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1016 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 20 September 2025 19:14:37 UTC