This test makes sure that querySelector with pseudo-element inside functional pseudo class :not is syntax error. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS document.querySelectorAll("#test div :not(:first-line)") threw exception SyntaxError: The string did not match the expected pattern.. PASS successfullyParsed is true TEST COMPLETE