var elem = window.getComputedStyle(document.getElementById('block'), ":after"); alert(elem.getPropertyValue("box-shadow"));