More involved span-affects-wrapping test on Webkit

A dash is only handled specially when preceded by a word character.

Issue #1531