Skip to content

Commit

Permalink
Linked normalized diagonal for SVG attribute (mdn#36023)
Browse files Browse the repository at this point in the history
* Linked normalized diagonal for SVG attribute

* Update files/en-us/web/svg/attribute/r/index.md

---------

Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
AshmitGupta and Josh-Cena authored Oct 2, 2024
1 parent 79f7580 commit 12f63e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/r/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can use this attribute with the following SVG elements:
- {{SVGElement("circle")}}
- {{SVGElement("radialGradient")}}

When the value is set as a percentage, it refers to the normalized diagonal of the current SVG viewport.
Percentages refer to the normalized diagonal of the current SVG viewport, which is calculated as <math><mfrac><msqrt><mrow><msup><mi>&lt;width&gt;</mi><mn>2</mn></msup><mo>+</mo><msup><mi>&lt;height&gt;</mi><mn>2</mn></msup></mrow></msqrt><msqrt><mn>2</mn></msqrt></mfrac></math>.

## Example

Expand Down

0 comments on commit 12f63e8

Please sign in to comment.