diff --git a/files/en-us/web/api/svgstopelement/offset/index.md b/files/en-us/web/api/svgstopelement/offset/index.md new file mode 100644 index 000000000000000..3d1b5fbd5defa2c --- /dev/null +++ b/files/en-us/web/api/svgstopelement/offset/index.md @@ -0,0 +1,46 @@ +--- +title: "SVGStopElement: offset property" +short-title: offset +slug: Web/API/SVGStopElement/offset +page-type: web-api-instance-property +browser-compat: api.SVGStopElement.offset +--- + +{{APIRef("SVG")}} + +The **`offset`** read-only property of the {{domxref("SVGStopElement")}} interface reflects the {{SVGAttr("offset")}} attribute of the given {{SVGElement("stop")}} element. + +## Value + +An {{domxref("SVGAnimatedNumber")}} object. + +## Examples + +### Accessing the `offset` property + +```html + + + + + + + + + +``` + +```js +const stopElement = document.querySelector("stop"); + +// Access the offset property +console.log(stopElement.offset.baseVal); // Output: 0 +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}}