How can I check in javascript (with jQuery) if the 'content' property is set on a before or after pseudo element? In chrome, window.getComputedStyle(elem, '::before').getPropertyValue('content')
returns an empty string both when 'content' is set to an empty string and when content is not set.
I have thought of one solution: set other properties such as width and height and check if the computed style is affected; I would, however, like to minimize the number of calls to getComputedStyle.
Thanks