blob: ce9652d5bc5e473b13b1281a5b1375b55fc20f57 [file] [log] [blame]
Test the parsing of :nth-child(of) for querySelector and style on deeply nested pseudo elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test invalid selectors:
selector ':nth-child(even of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(even of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(even of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(even of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(even of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(even of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(even of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(even of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(even of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(even of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(even of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(even of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(even of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(even of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(even of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(even of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(odd of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(odd of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(odd of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(odd of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(odd of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(odd of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(odd of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(odd of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(odd of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(odd of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(odd of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(odd of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(odd of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(odd of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(odd of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(odd of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(n of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(n of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(n of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(n of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(-n of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-n of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-n of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-n of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-n of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-n of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-n of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(-n of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(-n of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-n of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-n of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-n of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-n of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-n of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-n of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(-n of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(3 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(3 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(3 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(3 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(-3 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(-3 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(n+0 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n+0 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n+0 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n+0 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n+0 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n+0 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n+0 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(n+0 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(n+0 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n+0 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n+0 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n+0 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n+0 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n+0 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n+0 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(n+0 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(n-0 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n-0 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(n-0 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n-0 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(n-0 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n-0 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(n-0 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(n-0 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(n-0 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n-0 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(n-0 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n-0 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(n-0 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n-0 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(n-0 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(n-0 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(0n of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(0n of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(0n of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(0n of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(0n of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(0n of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(0n of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(0n of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(0n of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(0n of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(0n of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(0n of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(0n of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(0n of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(0n of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(0n of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(3n+5 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3n+5 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3n+5 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3n+5 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3n+5 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3n+5 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3n+5 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(3n+5 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(3n+5 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3n+5 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3n+5 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3n+5 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3n+5 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3n+5 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3n+5 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(3n+5 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(-3n+5 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3n+5 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3n+5 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3n+5 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3n+5 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3n+5 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3n+5 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3n+5 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3n+5 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3n+5 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3n+5 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3n+5 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3n+5 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3n+5 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3n+5 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(-3n+5 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(3n-5 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3n-5 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(3n-5 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3n-5 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(3n-5 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3n-5 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(3n-5 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(3n-5 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(3n-5 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3n-5 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(3n-5 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3n-5 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(3n-5 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3n-5 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(3n-5 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(3n-5 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
selector ':nth-child(-3n-5 of :is(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3n-5 of :matches(a, b, c::after)) { }' parsed: YES
selector ':nth-child(-3n-5 of :is(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3n-5 of :matches(a, b, c:after)) { }' parsed: YES
selector ':nth-child(-3n-5 of :nth-child(2n+1 of d, e, :is(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3n-5 of :nth-child(2n+1 of d, e, :matches(f, g, ::before))) { }' parsed: YES
selector ':nth-child(-3n-5 of :nth-child(2n+1 of d, e, :is(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3n-5 of :nth-child(2n+1 of d, e, :matches(f, g, :before))) { }' parsed: YES
selector ':nth-child(-3n-5 of :not(:is(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3n-5 of :not(:matches(a, b, c::after))) { }' parsed: YES
selector ':nth-child(-3n-5 of :not(:is(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3n-5 of :not(:matches(a, b, c:after))) { }' parsed: YES
selector ':nth-child(-3n-5 of :is(a, b, :is(c, d, :is(e, f, :is(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3n-5 of :matches(a, b, :matches(c, d, :matches(e, f, :matches(g, h, i::after))))) { }' parsed: YES
selector ':nth-child(-3n-5 of :nth-child(odd of :nth-child(even of j::before))) { }' parsed: NO
selector ':nth-child(-3n-5 of :nth-child(odd of :nth-child(even of j:before))) { }' parsed: NO
PASS successfullyParsed is true
TEST COMPLETE