Make pseudo :before and :after elements inherit style from attached

element, as per http://dev.w3.org/csswg/css2/generate.html, rather
than from the parent element.