Can I use calc() when setting attributes with setAttribute?
<svg id='svg' xmlns="http://www.w3.org/2000/svg" width="1122" height="800"></svg>
<script>
document.getElementById('svg').setAttribute('height','calc(100vw * 0.5)')
</script>
This is set as a string.
To set the style, you can pass: