I want to know whether it is possible to get a DOM element\'s ::before content, which was set by CSS3.
::before
I have tried some ways, but I still can\'t make it, s
Pass ":before" as the second parameter to window.getComputedStyle():
":before"
console.log(getComputedStyle(document.querySelector('p'), ':before').getPropertyValue('content'));
p::before, p::after { content: ' Test '; }
Lorem Ipsum