Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Svg path d doesn't work

  • 3 replies
  • 1 has this problem
  • 113 views
  • Last reply by A.Repnin

more options

<svg><g><path fill="red" d="M-17169009 -11080329L16366781 -11080329L16366781 22493289L-17169009 22493289z"></path></g></svg>

It works in Chrome 83.0.4103.116, but doesn't work in Firefox 78.0.1. Could you fix it in Firefox?

All Replies (4)

more options

Additional information: each number has 8 digits. If you remove last digit from each number then red box will be shown on the page.

Modified by A.Repnin

Helpful?

more options

I'm pretty sure, that we're not going to be that out of scope.

What about:

<svg><g transform="translate(410000, -5700000)"><path fill="red" d="M-17169009 -11080329L16366781 -11080329L16366781 22493289L-17169009 22493289z"></path></g></svg>

Helpful?

more options

TyDraniu said

I'm pretty sure, that we're not going to be that out of scope. What about: <svg><g transform="translate(410000, -5700000)"><path fill="red" d="M-17169009 -11080329L16366781 -11080329L16366781 22493289L-17169009 22493289z"></path></g></svg>

Thank you for the answer. 1) Could you describe root of problem? Why my code didn't work without transform="translate(410000, -5700000)" ? 2) Why did you use 410000 and -5700000 values. How did you calculate them?

Helpful?

more options

Thank you for the answer. 1) Could you describe root of problem? Why my code didn't work without transform="translate(410000, -5700000)" ? 2) Why did you use 410000 and -5700000 values. How did you calculate them?

Modified by A.Repnin

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.