mdn / mdn/browser-compat-data

css.properties.transform-box - no Safari support in some (all?) SVG elements

Open
#27,501 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:safari data:css
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/transform-box

What specific section or headline is this issue about?

transform-box does not work with svg text elements

What information was incorrect, unhelpful, or incomplete?

transform-box: border-box is a wonderful option for rotating svg text that uses x/y attribute positioning, but sadly this does not work on Safari. This became a foot gun in my case because the MDN docs gave me no reason to suspect I couldn't use transform-box for Safari and testing on Chromium/Gecko was of course unaffected.

What did you expect to see?

A compatibility caveat added to the support matrix. I.e. "* Not supported in SVG for WebKit/Safari"

Do you have any supporting links, references, or citations?

https://stackoverflow.com/questions/61272308/why-does-webkit-safari-ios-macos-render-my-svg-transformations-in-a-different

Do you have anything more you want to share?

Thank you MDN team. MDN docs are truly amazing and I use them almost every day.

MDN metadata
Page report details

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the transform-box page at files/en-us/web/css/transform-box/index.md and the linked WebKit/Safari reference first. Verify the reported behavior for SVG text elements, then update the support matrix with an accurate Safari caveat if confirmed; done means the compatibility data clearly reflects the supported scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.