You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
"When the value is set as a percentage, it refers to the normalized diagonal of the current SVG viewport."
What information was incorrect, unhelpful, or incomplete?
I think it's helpful what "normalized diagonal" actually means and how it's calculated.
To my own surprise the W3C SVG (2 draft) spec (albeit containing suggested enhancements which may probably never be implemented) provides a very concise explanation:
For any other length value expressed as a percentage of the SVG viewport, the percentage must be calculated as a percentage of the normalized diagonal of the ‘viewBox’ applied to that viewport. If no ‘viewBox’ is specified, then the normalized diagonal of the SVG viewport must be used. The normalized diagonal length must be calculated with sqrt((width)**2 + (height)**2)/sqrt(2)
So including the calculation sqrt((width)**2 + (height)**2)/sqrt(2) might be a good idea.
What did you expect to see?
The revised paragraph may look something like this:
When the value is set as a percentage, it refers to the normalized diagonal of the current SVG viewport. The normalized diagonal is calculated like this sqrt((width)**2 + (height)**2)/sqrt(2)
Do you have any supporting links, references, or citations?
Josh-Cena
added
help wanted
If you know something about this topic, we would love your help!
and removed
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
labels
Sep 3, 2024
MDN URL
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/r
What specific section or headline is this issue about?
"When the value is set as a percentage, it refers to the normalized diagonal of the current SVG viewport."
What information was incorrect, unhelpful, or incomplete?
I think it's helpful what "normalized diagonal" actually means and how it's calculated.
To my own surprise the W3C SVG (2 draft) spec (albeit containing suggested enhancements which may probably never be implemented) provides a very concise explanation:
So including the calculation
sqrt((width)**2 + (height)**2)/sqrt(2)
might be a good idea.What did you expect to see?
The revised paragraph may look something like this:
Do you have any supporting links, references, or citations?
https://svgwg.org/svg2-draft/coords.html#Units
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/svg/attribute/r
The text was updated successfully, but these errors were encountered: