[svgwg] What is the source of truth for geometry and transform IDL attributes? (#1153)

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

== What is the source of truth for geometry and transform IDL attributes? ==
The spec states for various IDL attributes (e.g. [x on SVGRectElement](https://w3c.github.io/svgwg/svg2-draft/shapes.html#__svg__SVGRectElement__x)) that they should:
> reflect the computed values of the [respective CSS property] and [it's] corresponding presentation attribute

However this doesn't match the behavior of existing implementations which reflect the value of just the attribute (ignoring any CSS set values), for example:

```html
<svg>
  <rect id="rect" x="10" style="x: 20px" />
</svg>
<script>
  console.log(getComputedStyle(rect).x); // "20px"
  console.log(rect.x.baseVal.value); // 10 in Blink, Gecko and WebKit
</script>
```

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


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

Received on Friday, 24 July 2026 11:02:01 UTC