I'm building an editor tool that for some features it needs to resize / zoom out the viewport to show more sections on the page.
I don't control the input of HTML/CSS/JS
All the CSS is external CSS from a link tag
The problem is HTML elements using vh as height or min-height in their styles.
is it possible to search the DOM for elements that have vh styles assigned?
I tried using getComputedStyle but as the function name suggests, it returns "computed" styles so for example if I have a section with height of 80vh
getComputedStyle(el).height
// will return the computed value which is on my screen "655.2px"
What I'm hoping to achieve is to find those elements and assign them the computed values temporarily during the "zoomed out" view.
As i mentioned above the styles are external so using the style property won't provide what I'm looking for.