I would like to know how to get a relative units value
example, I have an element with width 80% of its viewport's width, and I would like to get the value of the width with javascript

```js
console.log(Number.parseInt(document.getElementById('maxwidth').style.width));
```

```html
<div id="maxwidth" style="width: 80vw;"></div>
```