fix `XXX:before`/`XXX:after` style