Skip to content

api.SVGTransform.matrix - in Chrome it doesn't return a DOMMatrix #28757

@nimeratus

Description

@nimeratus

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The table says that Chrome fully supports the property, but in Chrome 143 it returns an SVGMatrix instead of a DOMMatrix and I think that counts as partial support

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

It returns a DOMMatrix that has the toString() method that converts the matrix into CSS-like text

Did you test this? If so, how?

I added a transform="rotate(45)" property to an SVG <rect> element in the DevTools, then ran $0.transform.baseVal.consolidate().matrix.toString() in the console

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/matrix#value
https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toString

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/matrix

MDN metadata

MDN page report details
  • Query: api.SVGTransform.matrix
  • Report started: 2026-01-03T11:29:32.808Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIneeds triageThis issue needs to be confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions