The native ::before and ::before(1) identify the same pseudo-element; likewise for ::after and ::after(1).
    
The demo works correctly if both the 'control' and 'pseudo-elements' sections look exactly the same. Take a look at the source code.