my style tag has
<style>
#armsblue{
position:absolute;
left:0.33vw;
top:-0.3vw;
z-index: -1;
}
</style>
the body tag has :
<img src="E:\graphics\torsoblue.png" alt="Girl in a jacket" width="80%" id="torsoblue">
<img src="E:\graphics\armsblue.png" alt="Girl in a jacket" width="80%" id="armsblue">
the javascript that prints the img dom with armsblue id:
torsos=document.querySelectorAll("#torsoblue,");
console.log(torsos[0].style);
the output comes out as on console :
CSSStyleDeclaration {alignContent: "", alignItems: "", alignSelf: "", alignmentBaseline: "", all: "", …}
when u expand this and check the dictionary has position: "" , zIndex: "" and so on even when i put these values inside the tag.