I want to get the styleSheets via document.styleSheets, however, it seems that Firefox will silently ignore some CSS values where they are not illegal. I am now using vh & vw, I want to get the css value and generate the right px for it.
Is there any way to get the values ignored by Firefox?
I do think that Firefox (and maybe other browsers) will return only computed styles from the stylesheets.
However, you could go into a more manual process with selecting the tag you want, make an ajax request to get its text content (will be almost instant since it’s in cache), and parse it.
html:
js (with jQuery):