Tests that a :target pseudo selector is correctly applied, even when history scroll restoration suppresses scrolling to the fragment.