Skip to content

Commit

Permalink
Update files/en-us/web/api/svgsvgelement/viewbox/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg authored Feb 14, 2025
1 parent fc6779a commit c5f2809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/svgsvgelement/viewbox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Give the following SVG opening tag:
<svg viewbox="-12 -18 200 300" x="5" y="5" height="400" width="600"></svg>
```

We can retrieve the viewBox values, but they differ from the {{domxref("SVGSVGElement.x", "x")}}, {{domxref("SVGSVGElement.y", "y")}}, {{domxref("SVGSVGElement.width", "widht")}}, and {{domxref("SVGSVGElement.height", "height")}} properties:
We can retrieve the viewBox values, but they differ from the {{domxref("SVGSVGElement.x", "x")}}, {{domxref("SVGSVGElement.y", "y")}}, {{domxref("SVGSVGElement.width", "width")}}, and {{domxref("SVGSVGElement.height", "height")}} properties:

```js
const svg = document.querySelector("svg");
Expand Down

0 comments on commit c5f2809

Please sign in to comment.