---
title: "viewport_element property"
url: "https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgdefselement/viewport_element/"
product: "Aspose.HTML for Python via .NET API References"
---


## viewport_element property


The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the given element is the outermost svg element.
### Definition:
```python
@property
def viewport_element(self):
    ...
```

### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`SVGDefsElement`](/html/python-net/aspose.html.dom.svg/svgdefselement)
* class [`SVGElement`](/html/python-net/aspose.html.dom.svg/svgelement)
