Test that visited style matches to the topmost link in a descendant selector. The link should be green, with red underlining.

Link

Test that visited style matches to the topmost link in a child selector. The link should be green, with red underlining.

Link

Test that visited style does not match to non-topmost links. The link should be red, with red underlining.

Link

Test that direct adjacent selector doesn't match visited style. The link should be red, with red underlining. The span should be green.

Link Span

Test that indirect adjacent selector doesn't match visited style. The link should be red, with red underlining. The span should be green.

Link Span