Get pseudo-elements styles with javascript
var color = window.getComputedStyle( document.querySelector('.element'), ':before' ).getPropertyValue('color')