1 This test makes sure that :scope works correctly.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS scope.querySelectorAll("ul a").length is 1
7 PASS scope.querySelector("ul a") is scope.firstChild
8 PASS scope.querySelectorAll(":scope ul a").length is 0
9 PASS scope.querySelector(":scope ul a") is null
10 PASS document.querySelectorAll(":scope ul a").length is 2
11 PASS document.querySelectorAll(":root ul a").length is 2
12 PASS document.querySelectorAll(":scope a").length is 2
13 PASS scope.querySelectorAll(":scope a").length is 1
14 PASS scope.querySelectorAll(":scope a").item(0) is scope.firstChild
15 PASS scope.querySelector(":scope a") is scope.querySelectorAll(":scope a").item(0)
16 PASS successfullyParsed is true