[svgwg] Issue: What is the source of truth for geometry and transform IDL attributes? (#1153) marked as Agenda+

karlcow has just labeled an issue for https://github.com/w3c/svgwg as "Agenda+":

== 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>
```

See https://github.com/w3c/svgwg/issues/1153


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

Received on Wednesday, 29 July 2026 13:02:45 UTC