I\'m having some trouble getting the generated content of a pseudo-element via Javascript in webkit browsers.
Context for those who care: I\'m working on a jQuery mo
This question is quite old but if anyone is looking for a solution, this is how you do it:
window.getComputedStyle(document.querySelector('#element'),':after').getPropertyValue('content')