Want to know if applied css on an element e.g. width is a pixel unit or related to viewport because window.getComputedStyle
always give value in pixels.
Even tried this to identify percentage, but does not work in case of identified 'em', 'vw', 'rem' units.
Note: Not asking for inline styling on element.