I can able to get the value like this:
const childStyle = window.getComputedStyle(child, \'::before\'); const left = childStyle.getPropertyValue(\'left\');