Returns the computed measurements of CSS properties via getComputedStyle.
const v = getComputedPixels(`#some-el`, `borderTopWidth`, `borderLeftWidth`);v.borderTopWidth; // numberb.borderLeftWidth; // number Copy
const v = getComputedPixels(`#some-el`, `borderTopWidth`, `borderLeftWidth`);v.borderTopWidth; // numberb.borderLeftWidth; // number
Throws an error if value from getComputedStyle is not a string or does not end in 'px'.
getComputedStyle
Returns the computed measurements of CSS properties via getComputedStyle.
Throws an error if value from
getComputedStyle
is not a string or does not end in 'px'.