This is incorrect behaviour, changing implementation to match behaviour shown in Blink and Firefox.