| Test the :active selector when the document is in quirks mode. To test manually, move the cursor over the green rectangle and press a mouse button until the test is finished. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS document.querySelectorAll(":active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll("*:active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":active:hover").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":hover:active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":hover:active:hover").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":active:active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":active:active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll(":active:active:active").length is 0 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(1, 2, 3)" |
| PASS document.querySelectorAll("div:active").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("#target:active").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active#target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("#target:active#target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass:active").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active.aClass").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass:active.otherClass").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id]:active[webkit]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id=target]:active[webkit=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit^=ro]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit^=ro]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id^=ta]:active[webkit^=ro]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit$=ks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit$=ks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id$=et]:active[webkit$=ks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit*=ck]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit*=ck]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id*=rg]:active[webkit*=ck]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit~=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit~=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id~=target]:active[webkit~=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(".aClass[webkit|=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active[webkit|=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll("[id|=target]:active[webkit|=rocks]").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(1):active").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:nth-child(1)").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(1):active:nth-child(1)").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(n):active > #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:nth-child(n) > #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(n):active:nth-child(n) > #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(n):active #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:nth-child(n) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":nth-child(n):active:nth-child(n) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:-webkit-any(*) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":-webkit-any(:active) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":-webkit-any(*):active #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":-webkit-any(*):active:-webkit-any(*) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:not(gecko) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":not(gecko):active #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":not(gecko):active:not(gecko) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:not([webkit^=\"\"]) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":not([webkit^=\"\"]):active #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":active:not(:nth-child(-1)) #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS document.querySelectorAll(":not(:nth-child(-1)):active #target").length is 1 |
| PASS getComputedStyle(document.getElementById("target")).color is "rgb(4, 5, 6)" |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |