<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173856] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173856">173856</a></dd>
<dt>Author</dt> <dd>benjamin@webkit.org</dd>
<dt>Date</dt> <dd>2014-09-22 16:10:47 -0700 (Mon, 22 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Split the test parsing-css-nth-child-of.html in 3
https://bugs.webkit.org/show_bug.cgi?id=137013

Patch by Benjamin Poulain &lt;bpoulain@apple.com&gt; on 2014-09-22
Rubber-stamped by Christophe Dumez.

parsing-css-nth-child-of.html tends to be too slow in debug, causing timeout from time to time.

The speed issues will be fixed once we JIT the selector. Since it will take a while before the JIT is ready,
this patch splits the test in three to avoid timeouts on the bots.

* fast/css/parsing-css-nth-child-of-1-expected.txt: Renamed from LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt.
* fast/css/parsing-css-nth-child-of-1.html: Added.
* fast/css/parsing-css-nth-child-of-2-expected.txt: Added.
* fast/css/parsing-css-nth-child-of-2.html: Renamed from LayoutTests/fast/css/parsing-css-nth-child-of.html.
* fast/css/parsing-css-nth-child-of-3-expected.txt: Added.
* fast/css/parsing-css-nth-child-of-3.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof1expectedtxt">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof1html">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1.html</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof2expectedtxt">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof2html">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2.html</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof3expectedtxt">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildof3html">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildofexpectedtxt">trunk/LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssnthchildofhtml">trunk/LayoutTests/fast/css/parsing-css-nth-child-of.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (173855 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-09-22 22:37:21 UTC (rev 173855)
+++ trunk/LayoutTests/ChangeLog        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -1,5 +1,24 @@
</span><span class="cx"> 2014-09-22  Benjamin Poulain  &lt;bpoulain@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Split the test parsing-css-nth-child-of.html in 3
+        https://bugs.webkit.org/show_bug.cgi?id=137013
+
+        Rubber-stamped by Christophe Dumez.
+
+        parsing-css-nth-child-of.html tends to be too slow in debug, causing timeout from time to time.
+
+        The speed issues will be fixed once we JIT the selector. Since it will take a while before the JIT is ready,
+        this patch splits the test in three to avoid timeouts on the bots.
+
+        * fast/css/parsing-css-nth-child-of-1-expected.txt: Renamed from LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt.
+        * fast/css/parsing-css-nth-child-of-1.html: Added.
+        * fast/css/parsing-css-nth-child-of-2-expected.txt: Added.
+        * fast/css/parsing-css-nth-child-of-2.html: Renamed from LayoutTests/fast/css/parsing-css-nth-child-of.html.
+        * fast/css/parsing-css-nth-child-of-3-expected.txt: Added.
+        * fast/css/parsing-css-nth-child-of-3.html: Added.
+
+2014-09-22  Benjamin Poulain  &lt;bpoulain@apple.com&gt;
+
</ins><span class="cx">         Add the baseline implementation of :nth-child(An+B of selector-list)
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=136975
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1-expected.txt (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1-expected.txt        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,1532 @@
</span><ins>+Test the parsing of :nth-child(of) for querySelector and style.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Basic valid cases without [of selectors]
+PASS document.querySelector(&quot;:nth-child(even)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even)&quot;
+PASS document.querySelector(&quot;:nth-child(odd)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd)&quot;
+PASS document.querySelector(&quot;:nth-child(n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n)&quot;
+PASS document.querySelector(&quot;:nth-child(-n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n)&quot;
+PASS document.querySelector(&quot;:nth-child(3)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3)&quot;
+PASS document.querySelector(&quot;:nth-child(-3)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0)&quot;
+PASS document.querySelector(&quot;:nth-child(0n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5)&quot;
+Basic cases with [of selectors]
+PASS document.querySelector(&quot;:nth-child(even of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of *)&quot;
+PASS document.querySelector(&quot;:nth-child(even of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of *)&quot;
+PASS document.querySelector(&quot;:nth-child(even of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(even of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(even of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(even of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(even of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(even of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(even of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(even of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(even of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(even of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(even of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of *)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of *)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(odd of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-n of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of *)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(0n of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of *)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of *    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of *)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of #id)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of #id    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :first-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :first-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :first-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :last-child)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :last-child    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :last-child)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar#id.class)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar#id.class    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar#id.class)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .class:not(.notclass)    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of #id:empty)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of #id:empty    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id:empty)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, a)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, a    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, a)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b, c, d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b, c, d    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, .bar, .baz    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1.html (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-1.html        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,86 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style id=&quot;style-container&quot;&gt;
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testValidSelector(selectorString, expectedSerializedSelector) {
+    shouldNotThrow('document.querySelector(&quot;:nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')&quot;)', '&quot;Error: SyntaxError: DOM Exception 12&quot;');
+
+    var styleContainer = document.getElementById('style-container');
+    styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+    shouldBe(&quot;document.getElementById('style-container').sheet.cssRules.length&quot;, &quot;1&quot;);
+    if (!expectedSerializedSelector)
+        expectedSerializedSelector = selectorString;
+    shouldBeEqualToString(&quot;document.getElementById('style-container').sheet.cssRules[0].selectorText&quot;, ':nth-child(' + expectedSerializedSelector + ')');
+    styleContainer.innerHTML = '';
+}
+
+// There are multiple ways of parsing :nth-child() based on the An+B part, we should test everything.
+var validNthAnPlusB = [
+    &quot;even&quot;,
+    &quot;odd&quot;,
+    &quot;n&quot;,
+    &quot;-n&quot;,
+    &quot;3&quot;,
+    &quot;-3&quot;,
+    &quot;n+0&quot;,
+    &quot;n-0&quot;,
+    &quot;0n&quot;,
+    &quot;3n+5&quot;,
+    &quot;-3n+5&quot;,
+    &quot;3n-5&quot;,
+    &quot;-3n-5&quot;,
+];
+
+debug(&quot;Basic valid cases without [of selectors]&quot;);
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i)
+    testValidSelector(validNthAnPlusB[i], validNthAnPlusB[i]);
+
+var validRightSide = [
+    // Basic types.
+    &quot;*&quot;,
+    &quot;foobar&quot;,
+    &quot;#id&quot;,
+    &quot;.class&quot;,
+    &quot;:first-child&quot;,
+    &quot;:last-child&quot;,
+
+    // Compound selectors.
+    &quot;foobar#id.class&quot;,
+    &quot;.class:not(.notclass)&quot;,
+    &quot;#id:empty&quot;,
+
+    // Complex selectors.
+    &quot;a &gt; b&quot;,
+    &quot;a b&quot;,
+    &quot;a + b&quot;,
+    &quot;a ~ b&quot;,
+    &quot;a + b &gt; c ~ d e + g&quot;,
+
+    // Selector lists.
+    &quot;a, a&quot;,
+    &quot;a, b&quot;,
+    &quot;a, b, c, d&quot;,
+    &quot;.foo, .bar, .baz&quot;,
+    &quot;a &gt; b, a b, a + b, a ~ b&quot;,
+];
+
+debug(&quot;Basic cases with [of selectors]&quot;);
+for (var leftSideIndex = 0; leftSideIndex &lt; validNthAnPlusB.length; ++leftSideIndex) {
+    for (var rightSideIndex = 0; rightSideIndex &lt; validRightSide.length; ++rightSideIndex) {
+        var selectorString = validNthAnPlusB[leftSideIndex] + &quot; of &quot; + validRightSide[rightSideIndex];
+        testValidSelector(selectorString);
+        testValidSelector(selectorString + &quot;    &quot;, selectorString);
+    }
+}
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2-expected.txt (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2-expected.txt        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,700 @@
</span><ins>+Test the parsing of :nth-child(of) for querySelector and style.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Test serizalization.
+PASS document.querySelector(&quot;:nth-child(2n+1 of a,b,c,d)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a, b, c, d)&quot;
+PASS document.querySelector(&quot;:nth-child(        2n+1           of             a, b          )&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a, b)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of a&gt;b, c    d, e~f, g+h)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a &gt; b, c d, e ~ f, g + h)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of n-1)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n-1)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of .n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .n)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of .-n-1)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .-n-1)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of .n-1)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .n-1)&quot;
+PASS document.querySelector(&quot;:nth-child(2n+1 of n+n)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n + n)&quot;
+PASS document.querySelector(&quot;:nth-child(even of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 Of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 oF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 OF .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(even \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(odd \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-n \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n+0 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(n-0 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(0n \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n+5 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n+5 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(3n-5 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\of .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006ff  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 o\\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\6f f .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 o\\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\6F \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\4f \\66  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\6F \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS document.querySelector(&quot;:nth-child(-3n-5 \\4f \\46  .foobar)&quot;) did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2.html (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-2.html        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,87 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style id=&quot;style-container&quot;&gt;
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testValidSelector(selectorString, expectedSerializedSelector) {
+    shouldNotThrow('document.querySelector(&quot;:nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')&quot;)', '&quot;Error: SyntaxError: DOM Exception 12&quot;');
+
+    var styleContainer = document.getElementById('style-container');
+    styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+    shouldBe(&quot;document.getElementById('style-container').sheet.cssRules.length&quot;, &quot;1&quot;);
+    if (!expectedSerializedSelector)
+        expectedSerializedSelector = selectorString;
+    shouldBeEqualToString(&quot;document.getElementById('style-container').sheet.cssRules[0].selectorText&quot;, ':nth-child(' + expectedSerializedSelector + ')');
+    styleContainer.innerHTML = '';
+}
+
+// There are multiple ways of parsing :nth-child() based on the An+B part, we should test everything.
+var validNthAnPlusB = [
+    &quot;even&quot;,
+    &quot;odd&quot;,
+    &quot;n&quot;,
+    &quot;-n&quot;,
+    &quot;3&quot;,
+    &quot;-3&quot;,
+    &quot;n+0&quot;,
+    &quot;n-0&quot;,
+    &quot;0n&quot;,
+    &quot;3n+5&quot;,
+    &quot;-3n+5&quot;,
+    &quot;3n-5&quot;,
+    &quot;-3n-5&quot;,
+];
+
+debug(&quot;Test serizalization.&quot;);
+testValidSelector(&quot;2n+1 of a,b,c,d&quot;, &quot;2n+1 of a, b, c, d&quot;); // Space separated complex selector.
+testValidSelector(&quot;        2n+1           of             a, b          &quot;, &quot;2n+1 of a, b&quot;); // Ignored extra spaces.
+testValidSelector(&quot;2n+1 of a&gt;b, c    d, e~f, g+h&quot;, &quot;2n+1 of a &gt; b, c d, e ~ f, g + h&quot;); // Combinators.
+
+// At the time of writing this test, the CSS Parser has a special mode for nth-*. Test it does not conflict with regular parsing.
+testValidSelector(&quot;2n+1 of n&quot;);
+testValidSelector(&quot;2n+1 of n-1&quot;); // &quot;n-1&quot; is a perfectly valid element name.
+testValidSelector(&quot;2n+1 of .n&quot;);
+testValidSelector(&quot;2n+1 of .-n-1&quot;);
+testValidSelector(&quot;2n+1 of .n-1&quot;);
+testValidSelector(&quot;2n+1 of n+n&quot;, &quot;2n+1 of n + n&quot;);
+
+// Test case sensitivity of the separator &quot;of&quot;. CSS 2.1 defines that &quot;All CSS syntax is case-insensitive within the ASCII range&quot;.
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    testValidSelector(validNthAnPlusB[i] + &quot; of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; Of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; oF .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; OF .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+}
+
+// CSS 2.1 &quot;Characters and case&quot; (http://www.w3.org/TR/CSS21/syndata.html#characters) section defines escaping for strings and identifiers:
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    // There is no formal definition of escaping of regular characters, but there is a note saying: 'The identifier &quot;te\st&quot; is exactly the same identifier as &quot;test&quot;.'.
+    testValidSelector(validNthAnPlusB[i] + &quot; \\of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+
+    // Full hexadecimal escape ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
+    testValidSelector(validNthAnPlusB[i] + &quot; \\00006ff  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; o\\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\00006F \\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\00004f \\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\00006F \\000046  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\00004f \\000046  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+
+    // Short syntax ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
+    testValidSelector(validNthAnPlusB[i] + &quot; \\6f f .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; o\\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\6F \\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\4f \\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\6F \\46  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+    testValidSelector(validNthAnPlusB[i] + &quot; \\4f \\46  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
+}
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3-expected.txt (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3-expected.txt        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,634 @@
</span><ins>+Test the parsing of :nth-child(of) for querySelector and style.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Test invalid selectors:
+PASS document.querySelector(&quot;:nth-child(even of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(evenof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(oddof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(even of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(odd of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n+0 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(n-0 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(0n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n+5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n+5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(3n-5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(&quot;:nth-child(-3n-5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildof3html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3.html (0 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-3.html        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style id=&quot;style-container&quot;&gt;
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testInvalidSelector(selectorString) {
+    shouldThrow('document.querySelector(&quot;:nth-child(' + selectorString + ')&quot;)', '&quot;Error: SyntaxError: DOM Exception 12&quot;');
+
+    var styleContainer = document.getElementById('style-container');
+    styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+    shouldBe(&quot;document.getElementById('style-container').sheet.cssRules.length&quot;, &quot;0&quot;);
+    styleContainer.innerHTML = '';
+}
+
+// There are multiple ways of parsing :nth-child() based on the An+B part, we should test everything.
+var validNthAnPlusB = [
+    &quot;even&quot;,
+    &quot;odd&quot;,
+    &quot;n&quot;,
+    &quot;-n&quot;,
+    &quot;3&quot;,
+    &quot;-3&quot;,
+    &quot;n+0&quot;,
+    &quot;n-0&quot;,
+    &quot;0n&quot;,
+    &quot;3n+5&quot;,
+    &quot;-3n+5&quot;,
+    &quot;3n-5&quot;,
+    &quot;-3n-5&quot;,
+];
+
+debug(&quot;Test invalid selectors:&quot;);
+// Missing space characters.
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of    &quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of.class&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot;of .class&quot;);
+}
+
+// Use valid identifier but not &quot;of&quot; as a separator.
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    testInvalidSelector(validNthAnPlusB[i] + &quot; empty .class&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; from .class&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; to .class&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; webkit .class&quot;);
+}
+
+// Matching pseudo elements do not make any sense.
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::first-letter&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::before&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::after&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::-webkit-custom&quot;);
+
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of .foo, ::before&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::before, .foo&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of -webkit-any(::before, .foo)&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of :nth-child(2n+1 of ::before)&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of :not(::before)&quot;);
+}
+
+// Invalid identifiers, syntax, etc.
+for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of .123class&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of #123id&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of []&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of ()&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of )&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of {}&quot;);
+    testInvalidSelector(validNthAnPlusB[i] + &quot; of }&quot;);
+}
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildofexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt (173855 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt        2014-09-22 22:37:21 UTC (rev 173855)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of-expected.txt        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -1,2849 +0,0 @@
</span><del>-Test the parsing of :nth-child(of) for querySelector and style.
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-Basic valid cases without [of selectors]
-PASS document.querySelector(&quot;:nth-child(even)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even)&quot;
-PASS document.querySelector(&quot;:nth-child(odd)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd)&quot;
-PASS document.querySelector(&quot;:nth-child(n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n)&quot;
-PASS document.querySelector(&quot;:nth-child(-n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n)&quot;
-PASS document.querySelector(&quot;:nth-child(3)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3)&quot;
-PASS document.querySelector(&quot;:nth-child(-3)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0)&quot;
-PASS document.querySelector(&quot;:nth-child(0n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5)&quot;
-Basic cases with [of selectors]
-PASS document.querySelector(&quot;:nth-child(even of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of *)&quot;
-PASS document.querySelector(&quot;:nth-child(even of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of *)&quot;
-PASS document.querySelector(&quot;:nth-child(even of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(even of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(even of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(even of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(even of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(even of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(even of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(even of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(even of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(even of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(even of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of *)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of *)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(odd of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-n of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of *)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(0n of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of *)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of *    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of *)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of #id)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of #id    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :first-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :first-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :first-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :last-child)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :last-child    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of :last-child)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar#id.class)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of foobar#id.class    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of foobar#id.class)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .class:not(.notclass)    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .class:not(.notclass))&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of #id:empty)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of #id:empty    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of #id:empty)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a + b &gt; c ~ d e + g)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, a)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, a    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, a)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b, c, d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a, b, c, d    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, .bar, .baz    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foo, .bar, .baz)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b    )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of a &gt; b, a b, a + b, a ~ b)&quot;
-Test serizalization.
-PASS document.querySelector(&quot;:nth-child(2n+1 of a,b,c,d)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a, b, c, d)&quot;
-PASS document.querySelector(&quot;:nth-child(        2n+1           of             a, b          )&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a, b)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of a&gt;b, c    d, e~f, g+h)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of a &gt; b, c d, e ~ f, g + h)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of n-1)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n-1)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of .n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .n)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of .-n-1)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .-n-1)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of .n-1)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of .n-1)&quot;
-PASS document.querySelector(&quot;:nth-child(2n+1 of n+n)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(2n+1 of n + n)&quot;
-PASS document.querySelector(&quot;:nth-child(even of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 Of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 oF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 OF .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(even \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(even of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(odd \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(odd of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-n \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n+0 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n+0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(n-0 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(n-0 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(0n \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(0n of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n+5 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n+5 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n+5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(3n-5 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\of .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006ff  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 o\\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006F \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\00004f \\000066  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\00006F \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\00004f \\000046  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\6f f .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 o\\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\6F \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\4f \\66  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\6F \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-PASS document.querySelector(&quot;:nth-child(-3n-5 \\4f \\46  .foobar)&quot;) did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is &quot;:nth-child(-3n-5 of .foobar)&quot;
-
-Test invalid selectors:
-PASS document.querySelector(&quot;:nth-child(even of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(evenof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(oddof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0nof .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of    )&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of.class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5of .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 empty .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 from .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 to .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 webkit .class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ::first-letter)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ::after)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ::-webkit-custom)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .foo, ::before)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ::before, .foo)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of -webkit-any(::before, .foo))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :nth-child(2n+1 of ::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of :not(::before))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(even of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(odd of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n+0 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(n-0 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(0n of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n+5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n+5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(3n-5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of .123class)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of #123id)&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of [])&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ())&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of ))&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of {})&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(&quot;:nth-child(-3n-5 of })&quot;) threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssnthchildofhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/css/parsing-css-nth-child-of.html (173855 => 173856)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-nth-child-of.html        2014-09-22 22:37:21 UTC (rev 173855)
+++ trunk/LayoutTests/fast/css/parsing-css-nth-child-of.html        2014-09-22 23:10:47 UTC (rev 173856)
</span><span class="lines">@@ -1,182 +0,0 @@
</span><del>-&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;style id=&quot;style-container&quot;&gt;
-&lt;/style&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;/body&gt;
-&lt;script&gt;
-description('Test the parsing of :nth-child(of) for querySelector and style.');
-
-function testInvalidSelector(selectorString) {
-    shouldThrow('document.querySelector(&quot;:nth-child(' + selectorString + ')&quot;)', '&quot;Error: SyntaxError: DOM Exception 12&quot;');
-
-    var styleContainer = document.getElementById('style-container');
-    styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
-    shouldBe(&quot;document.getElementById('style-container').sheet.cssRules.length&quot;, &quot;0&quot;);
-    styleContainer.innerHTML = '';
-}
-
-function testValidSelector(selectorString, expectedSerializedSelector) {
-    shouldNotThrow('document.querySelector(&quot;:nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')&quot;)', '&quot;Error: SyntaxError: DOM Exception 12&quot;');
-
-    var styleContainer = document.getElementById('style-container');
-    styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
-    shouldBe(&quot;document.getElementById('style-container').sheet.cssRules.length&quot;, &quot;1&quot;);
-    if (!expectedSerializedSelector)
-        expectedSerializedSelector = selectorString;
-    shouldBeEqualToString(&quot;document.getElementById('style-container').sheet.cssRules[0].selectorText&quot;, ':nth-child(' + expectedSerializedSelector + ')');
-    styleContainer.innerHTML = '';
-}
-
-// There are multiple ways of parsing :nth-child() based on the An+B part, we should test everything.
-var validNthAnPlusB = [
-    &quot;even&quot;,
-    &quot;odd&quot;,
-    &quot;n&quot;,
-    &quot;-n&quot;,
-    &quot;3&quot;,
-    &quot;-3&quot;,
-    &quot;n+0&quot;,
-    &quot;n-0&quot;,
-    &quot;0n&quot;,
-    &quot;3n+5&quot;,
-    &quot;-3n+5&quot;,
-    &quot;3n-5&quot;,
-    &quot;-3n-5&quot;,
-];
-
-debug(&quot;Basic valid cases without [of selectors]&quot;);
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i)
-    testValidSelector(validNthAnPlusB[i], validNthAnPlusB[i]);
-
-var validRightSide = [
-    // Basic types.
-    &quot;*&quot;,
-    &quot;foobar&quot;,
-    &quot;#id&quot;,
-    &quot;.class&quot;,
-    &quot;:first-child&quot;,
-    &quot;:last-child&quot;,
-
-    // Compound selectors.
-    &quot;foobar#id.class&quot;,
-    &quot;.class:not(.notclass)&quot;,
-    &quot;#id:empty&quot;,
-
-    // Complex selectors.
-    &quot;a &gt; b&quot;,
-    &quot;a b&quot;,
-    &quot;a + b&quot;,
-    &quot;a ~ b&quot;,
-    &quot;a + b &gt; c ~ d e + g&quot;,
-
-    // Selector lists.
-    &quot;a, a&quot;,
-    &quot;a, b&quot;,
-    &quot;a, b, c, d&quot;,
-    &quot;.foo, .bar, .baz&quot;,
-    &quot;a &gt; b, a b, a + b, a ~ b&quot;,
-];
-
-debug(&quot;Basic cases with [of selectors]&quot;);
-for (var leftSideIndex = 0; leftSideIndex &lt; validNthAnPlusB.length; ++leftSideIndex) {
-    for (var rightSideIndex = 0; rightSideIndex &lt; validRightSide.length; ++rightSideIndex) {
-        var selectorString = validNthAnPlusB[leftSideIndex] + &quot; of &quot; + validRightSide[rightSideIndex];
-        testValidSelector(selectorString);
-        testValidSelector(selectorString + &quot;    &quot;, selectorString);
-    }
-}
-
-debug(&quot;Test serizalization.&quot;);
-testValidSelector(&quot;2n+1 of a,b,c,d&quot;, &quot;2n+1 of a, b, c, d&quot;); // Space separated complex selector.
-testValidSelector(&quot;        2n+1           of             a, b          &quot;, &quot;2n+1 of a, b&quot;); // Ignored extra spaces.
-testValidSelector(&quot;2n+1 of a&gt;b, c    d, e~f, g+h&quot;, &quot;2n+1 of a &gt; b, c d, e ~ f, g + h&quot;); // Combinators.
-
-// At the time of writing this test, the CSS Parser has a special mode for nth-*. Test it does not conflict with regular parsing.
-testValidSelector(&quot;2n+1 of n&quot;);
-testValidSelector(&quot;2n+1 of n-1&quot;); // &quot;n-1&quot; is a perfectly valid element name.
-testValidSelector(&quot;2n+1 of .n&quot;);
-testValidSelector(&quot;2n+1 of .-n-1&quot;);
-testValidSelector(&quot;2n+1 of .n-1&quot;);
-testValidSelector(&quot;2n+1 of n+n&quot;, &quot;2n+1 of n + n&quot;);
-
-// Test case sensitivity of the separator &quot;of&quot;. CSS 2.1 defines that &quot;All CSS syntax is case-insensitive within the ASCII range&quot;.
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    testValidSelector(validNthAnPlusB[i] + &quot; of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; Of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; oF .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; OF .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-}
-
-// CSS 2.1 &quot;Characters and case&quot; (http://www.w3.org/TR/CSS21/syndata.html#characters) section defines escaping for strings and identifiers:
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    // There is no formal definition of escaping of regular characters, but there is a note saying: 'The identifier &quot;te\st&quot; is exactly the same identifier as &quot;test&quot;.'.
-    testValidSelector(validNthAnPlusB[i] + &quot; \\of .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-
-    // Full hexadecimal escape ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
-    testValidSelector(validNthAnPlusB[i] + &quot; \\00006ff  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; o\\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\00006F \\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\00004f \\000066  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\00006F \\000046  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\00004f \\000046  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-
-    // Short syntax ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
-    testValidSelector(validNthAnPlusB[i] + &quot; \\6f f .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; o\\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\6F \\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\4f \\66  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\6F \\46  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-    testValidSelector(validNthAnPlusB[i] + &quot; \\4f \\46  .foobar&quot;, validNthAnPlusB[i] + &quot; of .foobar&quot;);
-}
-
-
-debug(&quot;&quot;);
-debug(&quot;Test invalid selectors:&quot;);
-// Missing space characters.
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of    &quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of.class&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot;of .class&quot;);
-}
-
-// Use valid identifier but not &quot;of&quot; as a separator.
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    testInvalidSelector(validNthAnPlusB[i] + &quot; empty .class&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; from .class&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; to .class&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; webkit .class&quot;);
-}
-
-// Matching pseudo elements do not make any sense.
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::first-letter&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::before&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::after&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::-webkit-custom&quot;);
-
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of .foo, ::before&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ::before, .foo&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of -webkit-any(::before, .foo)&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of :nth-child(2n+1 of ::before)&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of :not(::before)&quot;);
-}
-
-// Invalid identifiers, syntax, etc.
-for (var i = 0; i &lt; validNthAnPlusB.length; ++i) {
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of .123class&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of #123id&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of []&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of ()&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of )&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of {}&quot;);
-    testInvalidSelector(validNthAnPlusB[i] + &quot; of }&quot;);
-}
-
-&lt;/script&gt;
-&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-&lt;/html&gt;
</del></span></pre>
</div>
</div>

</body>
</html>