How can I get the CSS value used with JavaScript?
For example, I am testing on a canvas element with the css below but because it is not directly set to the element and is not in px which could be calculated via getComputedStyle(canvas).width, I am not sure how to get this value(100%).
canvas{
width: 100%;
}