<!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 <bpoulain@apple.com> 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 <bpoulain@apple.com>
</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 <bpoulain@apple.com>
+
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Basic valid cases without [of selectors]
+PASS document.querySelector(":nth-child(even)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even)"
+PASS document.querySelector(":nth-child(odd)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd)"
+PASS document.querySelector(":nth-child(n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n)"
+PASS document.querySelector(":nth-child(-n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n)"
+PASS document.querySelector(":nth-child(3)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3)"
+PASS document.querySelector(":nth-child(-3)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3)"
+PASS document.querySelector(":nth-child(n+0)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0)"
+PASS document.querySelector(":nth-child(n-0)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0)"
+PASS document.querySelector(":nth-child(0n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n)"
+PASS document.querySelector(":nth-child(3n+5)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5)"
+PASS document.querySelector(":nth-child(-3n+5)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5)"
+PASS document.querySelector(":nth-child(3n-5)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5)"
+PASS document.querySelector(":nth-child(-3n-5)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5)"
+Basic cases with [of selectors]
+PASS document.querySelector(":nth-child(even of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of *)"
+PASS document.querySelector(":nth-child(even of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of *)"
+PASS document.querySelector(":nth-child(even of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar)"
+PASS document.querySelector(":nth-child(even of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar)"
+PASS document.querySelector(":nth-child(even of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id)"
+PASS document.querySelector(":nth-child(even of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id)"
+PASS document.querySelector(":nth-child(even of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class)"
+PASS document.querySelector(":nth-child(even of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class)"
+PASS document.querySelector(":nth-child(even of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :first-child)"
+PASS document.querySelector(":nth-child(even of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :first-child)"
+PASS document.querySelector(":nth-child(even of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :last-child)"
+PASS document.querySelector(":nth-child(even of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :last-child)"
+PASS document.querySelector(":nth-child(even of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar#id.class)"
+PASS document.querySelector(":nth-child(even of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar#id.class)"
+PASS document.querySelector(":nth-child(even of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(even of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(even of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id:empty)"
+PASS document.querySelector(":nth-child(even of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id:empty)"
+PASS document.querySelector(":nth-child(even of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b)"
+PASS document.querySelector(":nth-child(even of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b)"
+PASS document.querySelector(":nth-child(even of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a b)"
+PASS document.querySelector(":nth-child(even of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a b)"
+PASS document.querySelector(":nth-child(even of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b)"
+PASS document.querySelector(":nth-child(even of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b)"
+PASS document.querySelector(":nth-child(even of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a ~ b)"
+PASS document.querySelector(":nth-child(even of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a ~ b)"
+PASS document.querySelector(":nth-child(even of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(even of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(even of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, a)"
+PASS document.querySelector(":nth-child(even of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, a)"
+PASS document.querySelector(":nth-child(even of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b)"
+PASS document.querySelector(":nth-child(even of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b)"
+PASS document.querySelector(":nth-child(even of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b, c, d)"
+PASS document.querySelector(":nth-child(even of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b, c, d)"
+PASS document.querySelector(":nth-child(even of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(even of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(even of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(even of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(odd of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of *)"
+PASS document.querySelector(":nth-child(odd of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of *)"
+PASS document.querySelector(":nth-child(odd of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar)"
+PASS document.querySelector(":nth-child(odd of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar)"
+PASS document.querySelector(":nth-child(odd of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id)"
+PASS document.querySelector(":nth-child(odd of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id)"
+PASS document.querySelector(":nth-child(odd of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class)"
+PASS document.querySelector(":nth-child(odd of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class)"
+PASS document.querySelector(":nth-child(odd of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :first-child)"
+PASS document.querySelector(":nth-child(odd of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :first-child)"
+PASS document.querySelector(":nth-child(odd of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :last-child)"
+PASS document.querySelector(":nth-child(odd of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :last-child)"
+PASS document.querySelector(":nth-child(odd of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar#id.class)"
+PASS document.querySelector(":nth-child(odd of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar#id.class)"
+PASS document.querySelector(":nth-child(odd of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(odd of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(odd of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id:empty)"
+PASS document.querySelector(":nth-child(odd of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id:empty)"
+PASS document.querySelector(":nth-child(odd of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b)"
+PASS document.querySelector(":nth-child(odd of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b)"
+PASS document.querySelector(":nth-child(odd of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a b)"
+PASS document.querySelector(":nth-child(odd of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a b)"
+PASS document.querySelector(":nth-child(odd of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b)"
+PASS document.querySelector(":nth-child(odd of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b)"
+PASS document.querySelector(":nth-child(odd of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a ~ b)"
+PASS document.querySelector(":nth-child(odd of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a ~ b)"
+PASS document.querySelector(":nth-child(odd of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(odd of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(odd of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, a)"
+PASS document.querySelector(":nth-child(odd of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, a)"
+PASS document.querySelector(":nth-child(odd of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b)"
+PASS document.querySelector(":nth-child(odd of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b)"
+PASS document.querySelector(":nth-child(odd of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b, c, d)"
+PASS document.querySelector(":nth-child(odd of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b, c, d)"
+PASS document.querySelector(":nth-child(odd of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(odd of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(odd of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(odd of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of *)"
+PASS document.querySelector(":nth-child(n of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of *)"
+PASS document.querySelector(":nth-child(n of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar)"
+PASS document.querySelector(":nth-child(n of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar)"
+PASS document.querySelector(":nth-child(n of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id)"
+PASS document.querySelector(":nth-child(n of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id)"
+PASS document.querySelector(":nth-child(n of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class)"
+PASS document.querySelector(":nth-child(n of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class)"
+PASS document.querySelector(":nth-child(n of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :first-child)"
+PASS document.querySelector(":nth-child(n of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :first-child)"
+PASS document.querySelector(":nth-child(n of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :last-child)"
+PASS document.querySelector(":nth-child(n of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :last-child)"
+PASS document.querySelector(":nth-child(n of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar#id.class)"
+PASS document.querySelector(":nth-child(n of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar#id.class)"
+PASS document.querySelector(":nth-child(n of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id:empty)"
+PASS document.querySelector(":nth-child(n of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id:empty)"
+PASS document.querySelector(":nth-child(n of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b)"
+PASS document.querySelector(":nth-child(n of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b)"
+PASS document.querySelector(":nth-child(n of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a b)"
+PASS document.querySelector(":nth-child(n of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a b)"
+PASS document.querySelector(":nth-child(n of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b)"
+PASS document.querySelector(":nth-child(n of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b)"
+PASS document.querySelector(":nth-child(n of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a ~ b)"
+PASS document.querySelector(":nth-child(n of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a ~ b)"
+PASS document.querySelector(":nth-child(n of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, a)"
+PASS document.querySelector(":nth-child(n of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, a)"
+PASS document.querySelector(":nth-child(n of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b)"
+PASS document.querySelector(":nth-child(n of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b)"
+PASS document.querySelector(":nth-child(n of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b, c, d)"
+PASS document.querySelector(":nth-child(n of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b, c, d)"
+PASS document.querySelector(":nth-child(n of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-n of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of *)"
+PASS document.querySelector(":nth-child(-n of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of *)"
+PASS document.querySelector(":nth-child(-n of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar)"
+PASS document.querySelector(":nth-child(-n of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar)"
+PASS document.querySelector(":nth-child(-n of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id)"
+PASS document.querySelector(":nth-child(-n of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id)"
+PASS document.querySelector(":nth-child(-n of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class)"
+PASS document.querySelector(":nth-child(-n of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class)"
+PASS document.querySelector(":nth-child(-n of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :first-child)"
+PASS document.querySelector(":nth-child(-n of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :first-child)"
+PASS document.querySelector(":nth-child(-n of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :last-child)"
+PASS document.querySelector(":nth-child(-n of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :last-child)"
+PASS document.querySelector(":nth-child(-n of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar#id.class)"
+PASS document.querySelector(":nth-child(-n of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar#id.class)"
+PASS document.querySelector(":nth-child(-n of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-n of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-n of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id:empty)"
+PASS document.querySelector(":nth-child(-n of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id:empty)"
+PASS document.querySelector(":nth-child(-n of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b)"
+PASS document.querySelector(":nth-child(-n of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b)"
+PASS document.querySelector(":nth-child(-n of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a b)"
+PASS document.querySelector(":nth-child(-n of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a b)"
+PASS document.querySelector(":nth-child(-n of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b)"
+PASS document.querySelector(":nth-child(-n of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b)"
+PASS document.querySelector(":nth-child(-n of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a ~ b)"
+PASS document.querySelector(":nth-child(-n of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a ~ b)"
+PASS document.querySelector(":nth-child(-n of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-n of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-n of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, a)"
+PASS document.querySelector(":nth-child(-n of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, a)"
+PASS document.querySelector(":nth-child(-n of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b)"
+PASS document.querySelector(":nth-child(-n of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b)"
+PASS document.querySelector(":nth-child(-n of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b, c, d)"
+PASS document.querySelector(":nth-child(-n of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b, c, d)"
+PASS document.querySelector(":nth-child(-n of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-n of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-n of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-n of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of *)"
+PASS document.querySelector(":nth-child(3 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of *)"
+PASS document.querySelector(":nth-child(3 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar)"
+PASS document.querySelector(":nth-child(3 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar)"
+PASS document.querySelector(":nth-child(3 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id)"
+PASS document.querySelector(":nth-child(3 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id)"
+PASS document.querySelector(":nth-child(3 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class)"
+PASS document.querySelector(":nth-child(3 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class)"
+PASS document.querySelector(":nth-child(3 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :first-child)"
+PASS document.querySelector(":nth-child(3 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :first-child)"
+PASS document.querySelector(":nth-child(3 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :last-child)"
+PASS document.querySelector(":nth-child(3 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :last-child)"
+PASS document.querySelector(":nth-child(3 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id:empty)"
+PASS document.querySelector(":nth-child(3 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id:empty)"
+PASS document.querySelector(":nth-child(3 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b)"
+PASS document.querySelector(":nth-child(3 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b)"
+PASS document.querySelector(":nth-child(3 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a b)"
+PASS document.querySelector(":nth-child(3 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a b)"
+PASS document.querySelector(":nth-child(3 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b)"
+PASS document.querySelector(":nth-child(3 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b)"
+PASS document.querySelector(":nth-child(3 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a ~ b)"
+PASS document.querySelector(":nth-child(3 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a ~ b)"
+PASS document.querySelector(":nth-child(3 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, a)"
+PASS document.querySelector(":nth-child(3 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, a)"
+PASS document.querySelector(":nth-child(3 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b)"
+PASS document.querySelector(":nth-child(3 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b)"
+PASS document.querySelector(":nth-child(3 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of *)"
+PASS document.querySelector(":nth-child(-3 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of *)"
+PASS document.querySelector(":nth-child(-3 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar)"
+PASS document.querySelector(":nth-child(-3 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar)"
+PASS document.querySelector(":nth-child(-3 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id)"
+PASS document.querySelector(":nth-child(-3 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id)"
+PASS document.querySelector(":nth-child(-3 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class)"
+PASS document.querySelector(":nth-child(-3 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class)"
+PASS document.querySelector(":nth-child(-3 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :first-child)"
+PASS document.querySelector(":nth-child(-3 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :first-child)"
+PASS document.querySelector(":nth-child(-3 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :last-child)"
+PASS document.querySelector(":nth-child(-3 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :last-child)"
+PASS document.querySelector(":nth-child(-3 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id:empty)"
+PASS document.querySelector(":nth-child(-3 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id:empty)"
+PASS document.querySelector(":nth-child(-3 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b)"
+PASS document.querySelector(":nth-child(-3 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b)"
+PASS document.querySelector(":nth-child(-3 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a b)"
+PASS document.querySelector(":nth-child(-3 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a b)"
+PASS document.querySelector(":nth-child(-3 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b)"
+PASS document.querySelector(":nth-child(-3 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b)"
+PASS document.querySelector(":nth-child(-3 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a ~ b)"
+PASS document.querySelector(":nth-child(-3 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a ~ b)"
+PASS document.querySelector(":nth-child(-3 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, a)"
+PASS document.querySelector(":nth-child(-3 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, a)"
+PASS document.querySelector(":nth-child(-3 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b)"
+PASS document.querySelector(":nth-child(-3 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b)"
+PASS document.querySelector(":nth-child(-3 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n+0 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of *)"
+PASS document.querySelector(":nth-child(n+0 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of *)"
+PASS document.querySelector(":nth-child(n+0 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar)"
+PASS document.querySelector(":nth-child(n+0 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar)"
+PASS document.querySelector(":nth-child(n+0 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id)"
+PASS document.querySelector(":nth-child(n+0 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id)"
+PASS document.querySelector(":nth-child(n+0 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class)"
+PASS document.querySelector(":nth-child(n+0 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class)"
+PASS document.querySelector(":nth-child(n+0 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :first-child)"
+PASS document.querySelector(":nth-child(n+0 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :first-child)"
+PASS document.querySelector(":nth-child(n+0 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :last-child)"
+PASS document.querySelector(":nth-child(n+0 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :last-child)"
+PASS document.querySelector(":nth-child(n+0 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar#id.class)"
+PASS document.querySelector(":nth-child(n+0 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar#id.class)"
+PASS document.querySelector(":nth-child(n+0 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n+0 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n+0 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id:empty)"
+PASS document.querySelector(":nth-child(n+0 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id:empty)"
+PASS document.querySelector(":nth-child(n+0 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b)"
+PASS document.querySelector(":nth-child(n+0 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b)"
+PASS document.querySelector(":nth-child(n+0 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a b)"
+PASS document.querySelector(":nth-child(n+0 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a b)"
+PASS document.querySelector(":nth-child(n+0 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b)"
+PASS document.querySelector(":nth-child(n+0 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b)"
+PASS document.querySelector(":nth-child(n+0 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a ~ b)"
+PASS document.querySelector(":nth-child(n+0 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a ~ b)"
+PASS document.querySelector(":nth-child(n+0 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n+0 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n+0 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, a)"
+PASS document.querySelector(":nth-child(n+0 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, a)"
+PASS document.querySelector(":nth-child(n+0 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b)"
+PASS document.querySelector(":nth-child(n+0 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b)"
+PASS document.querySelector(":nth-child(n+0 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b, c, d)"
+PASS document.querySelector(":nth-child(n+0 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b, c, d)"
+PASS document.querySelector(":nth-child(n+0 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n+0 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n+0 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n+0 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n-0 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of *)"
+PASS document.querySelector(":nth-child(n-0 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of *)"
+PASS document.querySelector(":nth-child(n-0 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar)"
+PASS document.querySelector(":nth-child(n-0 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar)"
+PASS document.querySelector(":nth-child(n-0 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id)"
+PASS document.querySelector(":nth-child(n-0 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id)"
+PASS document.querySelector(":nth-child(n-0 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class)"
+PASS document.querySelector(":nth-child(n-0 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class)"
+PASS document.querySelector(":nth-child(n-0 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :first-child)"
+PASS document.querySelector(":nth-child(n-0 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :first-child)"
+PASS document.querySelector(":nth-child(n-0 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :last-child)"
+PASS document.querySelector(":nth-child(n-0 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :last-child)"
+PASS document.querySelector(":nth-child(n-0 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar#id.class)"
+PASS document.querySelector(":nth-child(n-0 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar#id.class)"
+PASS document.querySelector(":nth-child(n-0 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n-0 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(n-0 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id:empty)"
+PASS document.querySelector(":nth-child(n-0 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id:empty)"
+PASS document.querySelector(":nth-child(n-0 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b)"
+PASS document.querySelector(":nth-child(n-0 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b)"
+PASS document.querySelector(":nth-child(n-0 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a b)"
+PASS document.querySelector(":nth-child(n-0 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a b)"
+PASS document.querySelector(":nth-child(n-0 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b)"
+PASS document.querySelector(":nth-child(n-0 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b)"
+PASS document.querySelector(":nth-child(n-0 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a ~ b)"
+PASS document.querySelector(":nth-child(n-0 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a ~ b)"
+PASS document.querySelector(":nth-child(n-0 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n-0 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(n-0 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, a)"
+PASS document.querySelector(":nth-child(n-0 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, a)"
+PASS document.querySelector(":nth-child(n-0 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b)"
+PASS document.querySelector(":nth-child(n-0 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b)"
+PASS document.querySelector(":nth-child(n-0 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b, c, d)"
+PASS document.querySelector(":nth-child(n-0 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b, c, d)"
+PASS document.querySelector(":nth-child(n-0 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n-0 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(n-0 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(n-0 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(0n of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of *)"
+PASS document.querySelector(":nth-child(0n of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of *)"
+PASS document.querySelector(":nth-child(0n of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar)"
+PASS document.querySelector(":nth-child(0n of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar)"
+PASS document.querySelector(":nth-child(0n of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id)"
+PASS document.querySelector(":nth-child(0n of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id)"
+PASS document.querySelector(":nth-child(0n of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class)"
+PASS document.querySelector(":nth-child(0n of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class)"
+PASS document.querySelector(":nth-child(0n of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :first-child)"
+PASS document.querySelector(":nth-child(0n of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :first-child)"
+PASS document.querySelector(":nth-child(0n of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :last-child)"
+PASS document.querySelector(":nth-child(0n of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :last-child)"
+PASS document.querySelector(":nth-child(0n of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar#id.class)"
+PASS document.querySelector(":nth-child(0n of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar#id.class)"
+PASS document.querySelector(":nth-child(0n of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(0n of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(0n of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id:empty)"
+PASS document.querySelector(":nth-child(0n of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id:empty)"
+PASS document.querySelector(":nth-child(0n of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b)"
+PASS document.querySelector(":nth-child(0n of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b)"
+PASS document.querySelector(":nth-child(0n of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a b)"
+PASS document.querySelector(":nth-child(0n of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a b)"
+PASS document.querySelector(":nth-child(0n of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b)"
+PASS document.querySelector(":nth-child(0n of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b)"
+PASS document.querySelector(":nth-child(0n of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a ~ b)"
+PASS document.querySelector(":nth-child(0n of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a ~ b)"
+PASS document.querySelector(":nth-child(0n of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(0n of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(0n of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, a)"
+PASS document.querySelector(":nth-child(0n of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, a)"
+PASS document.querySelector(":nth-child(0n of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b)"
+PASS document.querySelector(":nth-child(0n of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b)"
+PASS document.querySelector(":nth-child(0n of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b, c, d)"
+PASS document.querySelector(":nth-child(0n of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b, c, d)"
+PASS document.querySelector(":nth-child(0n of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(0n of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(0n of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(0n of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3n+5 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of *)"
+PASS document.querySelector(":nth-child(3n+5 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of *)"
+PASS document.querySelector(":nth-child(3n+5 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar)"
+PASS document.querySelector(":nth-child(3n+5 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar)"
+PASS document.querySelector(":nth-child(3n+5 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id)"
+PASS document.querySelector(":nth-child(3n+5 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id)"
+PASS document.querySelector(":nth-child(3n+5 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class)"
+PASS document.querySelector(":nth-child(3n+5 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class)"
+PASS document.querySelector(":nth-child(3n+5 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :first-child)"
+PASS document.querySelector(":nth-child(3n+5 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :first-child)"
+PASS document.querySelector(":nth-child(3n+5 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :last-child)"
+PASS document.querySelector(":nth-child(3n+5 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :last-child)"
+PASS document.querySelector(":nth-child(3n+5 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3n+5 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3n+5 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3n+5 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3n+5 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id:empty)"
+PASS document.querySelector(":nth-child(3n+5 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id:empty)"
+PASS document.querySelector(":nth-child(3n+5 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b)"
+PASS document.querySelector(":nth-child(3n+5 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b)"
+PASS document.querySelector(":nth-child(3n+5 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a b)"
+PASS document.querySelector(":nth-child(3n+5 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a b)"
+PASS document.querySelector(":nth-child(3n+5 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b)"
+PASS document.querySelector(":nth-child(3n+5 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b)"
+PASS document.querySelector(":nth-child(3n+5 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a ~ b)"
+PASS document.querySelector(":nth-child(3n+5 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a ~ b)"
+PASS document.querySelector(":nth-child(3n+5 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3n+5 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3n+5 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, a)"
+PASS document.querySelector(":nth-child(3n+5 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, a)"
+PASS document.querySelector(":nth-child(3n+5 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b)"
+PASS document.querySelector(":nth-child(3n+5 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b)"
+PASS document.querySelector(":nth-child(3n+5 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3n+5 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3n+5 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3n+5 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3n+5 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3n+5 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3n+5 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of *)"
+PASS document.querySelector(":nth-child(-3n+5 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of *)"
+PASS document.querySelector(":nth-child(-3n+5 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar)"
+PASS document.querySelector(":nth-child(-3n+5 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar)"
+PASS document.querySelector(":nth-child(-3n+5 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id)"
+PASS document.querySelector(":nth-child(-3n+5 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id)"
+PASS document.querySelector(":nth-child(-3n+5 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class)"
+PASS document.querySelector(":nth-child(-3n+5 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class)"
+PASS document.querySelector(":nth-child(-3n+5 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :first-child)"
+PASS document.querySelector(":nth-child(-3n+5 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :first-child)"
+PASS document.querySelector(":nth-child(-3n+5 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :last-child)"
+PASS document.querySelector(":nth-child(-3n+5 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :last-child)"
+PASS document.querySelector(":nth-child(-3n+5 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3n+5 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3n+5 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3n+5 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3n+5 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id:empty)"
+PASS document.querySelector(":nth-child(-3n+5 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id:empty)"
+PASS document.querySelector(":nth-child(-3n+5 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b)"
+PASS document.querySelector(":nth-child(-3n+5 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b)"
+PASS document.querySelector(":nth-child(-3n+5 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a b)"
+PASS document.querySelector(":nth-child(-3n+5 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a b)"
+PASS document.querySelector(":nth-child(-3n+5 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b)"
+PASS document.querySelector(":nth-child(-3n+5 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b)"
+PASS document.querySelector(":nth-child(-3n+5 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a ~ b)"
+PASS document.querySelector(":nth-child(-3n+5 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a ~ b)"
+PASS document.querySelector(":nth-child(-3n+5 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3n+5 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3n+5 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, a)"
+PASS document.querySelector(":nth-child(-3n+5 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, a)"
+PASS document.querySelector(":nth-child(-3n+5 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b)"
+PASS document.querySelector(":nth-child(-3n+5 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b)"
+PASS document.querySelector(":nth-child(-3n+5 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3n+5 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3n+5 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3n+5 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3n+5 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3n-5 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of *)"
+PASS document.querySelector(":nth-child(3n-5 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of *)"
+PASS document.querySelector(":nth-child(3n-5 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar)"
+PASS document.querySelector(":nth-child(3n-5 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar)"
+PASS document.querySelector(":nth-child(3n-5 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id)"
+PASS document.querySelector(":nth-child(3n-5 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id)"
+PASS document.querySelector(":nth-child(3n-5 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class)"
+PASS document.querySelector(":nth-child(3n-5 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class)"
+PASS document.querySelector(":nth-child(3n-5 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :first-child)"
+PASS document.querySelector(":nth-child(3n-5 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :first-child)"
+PASS document.querySelector(":nth-child(3n-5 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :last-child)"
+PASS document.querySelector(":nth-child(3n-5 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :last-child)"
+PASS document.querySelector(":nth-child(3n-5 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3n-5 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(3n-5 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3n-5 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(3n-5 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id:empty)"
+PASS document.querySelector(":nth-child(3n-5 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id:empty)"
+PASS document.querySelector(":nth-child(3n-5 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b)"
+PASS document.querySelector(":nth-child(3n-5 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b)"
+PASS document.querySelector(":nth-child(3n-5 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a b)"
+PASS document.querySelector(":nth-child(3n-5 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a b)"
+PASS document.querySelector(":nth-child(3n-5 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b)"
+PASS document.querySelector(":nth-child(3n-5 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b)"
+PASS document.querySelector(":nth-child(3n-5 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a ~ b)"
+PASS document.querySelector(":nth-child(3n-5 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a ~ b)"
+PASS document.querySelector(":nth-child(3n-5 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3n-5 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(3n-5 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, a)"
+PASS document.querySelector(":nth-child(3n-5 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, a)"
+PASS document.querySelector(":nth-child(3n-5 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b)"
+PASS document.querySelector(":nth-child(3n-5 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b)"
+PASS document.querySelector(":nth-child(3n-5 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3n-5 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(3n-5 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3n-5 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(3n-5 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(3n-5 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3n-5 of *)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of *)"
+PASS document.querySelector(":nth-child(-3n-5 of * )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of *)"
+PASS document.querySelector(":nth-child(-3n-5 of foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar)"
+PASS document.querySelector(":nth-child(-3n-5 of foobar )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar)"
+PASS document.querySelector(":nth-child(-3n-5 of #id)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id)"
+PASS document.querySelector(":nth-child(-3n-5 of #id )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id)"
+PASS document.querySelector(":nth-child(-3n-5 of .class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class)"
+PASS document.querySelector(":nth-child(-3n-5 of .class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class)"
+PASS document.querySelector(":nth-child(-3n-5 of :first-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :first-child)"
+PASS document.querySelector(":nth-child(-3n-5 of :first-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :first-child)"
+PASS document.querySelector(":nth-child(-3n-5 of :last-child)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :last-child)"
+PASS document.querySelector(":nth-child(-3n-5 of :last-child )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :last-child)"
+PASS document.querySelector(":nth-child(-3n-5 of foobar#id.class)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3n-5 of foobar#id.class )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar#id.class)"
+PASS document.querySelector(":nth-child(-3n-5 of .class:not(.notclass))") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3n-5 of .class:not(.notclass) )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class:not(.notclass))"
+PASS document.querySelector(":nth-child(-3n-5 of #id:empty)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id:empty)"
+PASS document.querySelector(":nth-child(-3n-5 of #id:empty )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id:empty)"
+PASS document.querySelector(":nth-child(-3n-5 of a > b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b)"
+PASS document.querySelector(":nth-child(-3n-5 of a > b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b)"
+PASS document.querySelector(":nth-child(-3n-5 of a b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a b)"
+PASS document.querySelector(":nth-child(-3n-5 of a b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a b)"
+PASS document.querySelector(":nth-child(-3n-5 of a + b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b)"
+PASS document.querySelector(":nth-child(-3n-5 of a + b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b)"
+PASS document.querySelector(":nth-child(-3n-5 of a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a ~ b)"
+PASS document.querySelector(":nth-child(-3n-5 of a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a ~ b)"
+PASS document.querySelector(":nth-child(-3n-5 of a + b > c ~ d e + g)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3n-5 of a + b > c ~ d e + g )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b > c ~ d e + g)"
+PASS document.querySelector(":nth-child(-3n-5 of a, a)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, a)"
+PASS document.querySelector(":nth-child(-3n-5 of a, a )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, a)"
+PASS document.querySelector(":nth-child(-3n-5 of a, b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b)"
+PASS document.querySelector(":nth-child(-3n-5 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b)"
+PASS document.querySelector(":nth-child(-3n-5 of a, b, c, d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3n-5 of a, b, c, d )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b, c, d)"
+PASS document.querySelector(":nth-child(-3n-5 of .foo, .bar, .baz)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3n-5 of .foo, .bar, .baz )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foo, .bar, .baz)"
+PASS document.querySelector(":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)"
+PASS document.querySelector(":nth-child(-3n-5 of a > b, a b, a + b, a ~ b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)"
+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>+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+<style id="style-container">
+</style>
+</head>
+<body>
+</body>
+<script>
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testValidSelector(selectorString, expectedSerializedSelector) {
+ shouldNotThrow('document.querySelector(":nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')")', '"Error: SyntaxError: DOM Exception 12"');
+
+ var styleContainer = document.getElementById('style-container');
+ styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+ shouldBe("document.getElementById('style-container').sheet.cssRules.length", "1");
+ if (!expectedSerializedSelector)
+ expectedSerializedSelector = selectorString;
+ shouldBeEqualToString("document.getElementById('style-container').sheet.cssRules[0].selectorText", ':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 = [
+ "even",
+ "odd",
+ "n",
+ "-n",
+ "3",
+ "-3",
+ "n+0",
+ "n-0",
+ "0n",
+ "3n+5",
+ "-3n+5",
+ "3n-5",
+ "-3n-5",
+];
+
+debug("Basic valid cases without [of selectors]");
+for (var i = 0; i < validNthAnPlusB.length; ++i)
+ testValidSelector(validNthAnPlusB[i], validNthAnPlusB[i]);
+
+var validRightSide = [
+ // Basic types.
+ "*",
+ "foobar",
+ "#id",
+ ".class",
+ ":first-child",
+ ":last-child",
+
+ // Compound selectors.
+ "foobar#id.class",
+ ".class:not(.notclass)",
+ "#id:empty",
+
+ // Complex selectors.
+ "a > b",
+ "a b",
+ "a + b",
+ "a ~ b",
+ "a + b > c ~ d e + g",
+
+ // Selector lists.
+ "a, a",
+ "a, b",
+ "a, b, c, d",
+ ".foo, .bar, .baz",
+ "a > b, a b, a + b, a ~ b",
+];
+
+debug("Basic cases with [of selectors]");
+for (var leftSideIndex = 0; leftSideIndex < validNthAnPlusB.length; ++leftSideIndex) {
+ for (var rightSideIndex = 0; rightSideIndex < validRightSide.length; ++rightSideIndex) {
+ var selectorString = validNthAnPlusB[leftSideIndex] + " of " + validRightSide[rightSideIndex];
+ testValidSelector(selectorString);
+ testValidSelector(selectorString + " ", selectorString);
+ }
+}
+
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test serizalization.
+PASS document.querySelector(":nth-child(2n+1 of a,b,c,d)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a, b, c, d)"
+PASS document.querySelector(":nth-child( 2n+1 of a, b )") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a, b)"
+PASS document.querySelector(":nth-child(2n+1 of a>b, c d, e~f, g+h)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a > b, c d, e ~ f, g + h)"
+PASS document.querySelector(":nth-child(2n+1 of n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n)"
+PASS document.querySelector(":nth-child(2n+1 of n-1)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n-1)"
+PASS document.querySelector(":nth-child(2n+1 of .n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .n)"
+PASS document.querySelector(":nth-child(2n+1 of .-n-1)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .-n-1)"
+PASS document.querySelector(":nth-child(2n+1 of .n-1)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .n-1)"
+PASS document.querySelector(":nth-child(2n+1 of n+n)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n + n)"
+PASS document.querySelector(":nth-child(even of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(odd of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(n of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(-n of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(3 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(0n of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 Of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 oF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 OF .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(even \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(even \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
+PASS document.querySelector(":nth-child(odd \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(odd \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
+PASS document.querySelector(":nth-child(n \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(n \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(-n \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
+PASS document.querySelector(":nth-child(3 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(3 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(-3 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n+0 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(n-0 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
+PASS document.querySelector(":nth-child(0n \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(0n \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n+5 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n+5 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(3n-5 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\of .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\00006ff .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 o\\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\00006F \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\00004f \\000066 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\00006F \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\00004f \\000046 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\6f f .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 o\\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\6F \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\4f \\66 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\6F \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+PASS document.querySelector(":nth-child(-3n-5 \\4f \\46 .foobar)") did not throw exception.
+PASS document.getElementById('style-container').sheet.cssRules.length is 1
+PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
+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>+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+<style id="style-container">
+</style>
+</head>
+<body>
+</body>
+<script>
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testValidSelector(selectorString, expectedSerializedSelector) {
+ shouldNotThrow('document.querySelector(":nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')")', '"Error: SyntaxError: DOM Exception 12"');
+
+ var styleContainer = document.getElementById('style-container');
+ styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+ shouldBe("document.getElementById('style-container').sheet.cssRules.length", "1");
+ if (!expectedSerializedSelector)
+ expectedSerializedSelector = selectorString;
+ shouldBeEqualToString("document.getElementById('style-container').sheet.cssRules[0].selectorText", ':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 = [
+ "even",
+ "odd",
+ "n",
+ "-n",
+ "3",
+ "-3",
+ "n+0",
+ "n-0",
+ "0n",
+ "3n+5",
+ "-3n+5",
+ "3n-5",
+ "-3n-5",
+];
+
+debug("Test serizalization.");
+testValidSelector("2n+1 of a,b,c,d", "2n+1 of a, b, c, d"); // Space separated complex selector.
+testValidSelector(" 2n+1 of a, b ", "2n+1 of a, b"); // Ignored extra spaces.
+testValidSelector("2n+1 of a>b, c d, e~f, g+h", "2n+1 of a > b, c d, e ~ f, g + h"); // 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("2n+1 of n");
+testValidSelector("2n+1 of n-1"); // "n-1" is a perfectly valid element name.
+testValidSelector("2n+1 of .n");
+testValidSelector("2n+1 of .-n-1");
+testValidSelector("2n+1 of .n-1");
+testValidSelector("2n+1 of n+n", "2n+1 of n + n");
+
+// Test case sensitivity of the separator "of". CSS 2.1 defines that "All CSS syntax is case-insensitive within the ASCII range".
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ testValidSelector(validNthAnPlusB[i] + " of .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " Of .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " oF .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " OF .foobar", validNthAnPlusB[i] + " of .foobar");
+}
+
+// CSS 2.1 "Characters and case" (http://www.w3.org/TR/CSS21/syndata.html#characters) section defines escaping for strings and identifiers:
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ // There is no formal definition of escaping of regular characters, but there is a note saying: 'The identifier "te\st" is exactly the same identifier as "test".'.
+ testValidSelector(validNthAnPlusB[i] + " \\of .foobar", validNthAnPlusB[i] + " of .foobar");
+
+ // Full hexadecimal escape ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
+ testValidSelector(validNthAnPlusB[i] + " \\00006ff .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " o\\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\00006F \\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\00004f \\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\00006F \\000046 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\00004f \\000046 .foobar", validNthAnPlusB[i] + " of .foobar");
+
+ // Short syntax ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
+ testValidSelector(validNthAnPlusB[i] + " \\6f f .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " o\\66 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\6F \\66 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\4f \\66 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\6F \\46 .foobar", validNthAnPlusB[i] + " of .foobar");
+ testValidSelector(validNthAnPlusB[i] + " \\4f \\46 .foobar", validNthAnPlusB[i] + " of .foobar");
+}
+
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test invalid selectors:
+PASS document.querySelector(":nth-child(even of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(evenof .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(oddof .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of )") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(even of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(odd of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-n of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n+0 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(n-0 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(0n of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n+5 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n+5 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(3n-5 of })") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
+PASS document.getElementById('style-container').sheet.cssRules.length is 0
+PASS document.querySelector(":nth-child(-3n-5 of })") 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>+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+<style id="style-container">
+</style>
+</head>
+<body>
+</body>
+<script>
+description('Test the parsing of :nth-child(of) for querySelector and style.');
+
+function testInvalidSelector(selectorString) {
+ shouldThrow('document.querySelector(":nth-child(' + selectorString + ')")', '"Error: SyntaxError: DOM Exception 12"');
+
+ var styleContainer = document.getElementById('style-container');
+ styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
+ shouldBe("document.getElementById('style-container').sheet.cssRules.length", "0");
+ styleContainer.innerHTML = '';
+}
+
+// There are multiple ways of parsing :nth-child() based on the An+B part, we should test everything.
+var validNthAnPlusB = [
+ "even",
+ "odd",
+ "n",
+ "-n",
+ "3",
+ "-3",
+ "n+0",
+ "n-0",
+ "0n",
+ "3n+5",
+ "-3n+5",
+ "3n-5",
+ "-3n-5",
+];
+
+debug("Test invalid selectors:");
+// Missing space characters.
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ testInvalidSelector(validNthAnPlusB[i] + " of");
+ testInvalidSelector(validNthAnPlusB[i] + " of ");
+ testInvalidSelector(validNthAnPlusB[i] + " of.class");
+ testInvalidSelector(validNthAnPlusB[i] + "of .class");
+}
+
+// Use valid identifier but not "of" as a separator.
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ testInvalidSelector(validNthAnPlusB[i] + " empty .class");
+ testInvalidSelector(validNthAnPlusB[i] + " from .class");
+ testInvalidSelector(validNthAnPlusB[i] + " to .class");
+ testInvalidSelector(validNthAnPlusB[i] + " webkit .class");
+}
+
+// Matching pseudo elements do not make any sense.
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ testInvalidSelector(validNthAnPlusB[i] + " of ::first-letter");
+ testInvalidSelector(validNthAnPlusB[i] + " of ::before");
+ testInvalidSelector(validNthAnPlusB[i] + " of ::after");
+ testInvalidSelector(validNthAnPlusB[i] + " of ::-webkit-custom");
+
+ testInvalidSelector(validNthAnPlusB[i] + " of .foo, ::before");
+ testInvalidSelector(validNthAnPlusB[i] + " of ::before, .foo");
+ testInvalidSelector(validNthAnPlusB[i] + " of -webkit-any(::before, .foo)");
+ testInvalidSelector(validNthAnPlusB[i] + " of :nth-child(2n+1 of ::before)");
+ testInvalidSelector(validNthAnPlusB[i] + " of :not(::before)");
+}
+
+// Invalid identifiers, syntax, etc.
+for (var i = 0; i < validNthAnPlusB.length; ++i) {
+ testInvalidSelector(validNthAnPlusB[i] + " of .123class");
+ testInvalidSelector(validNthAnPlusB[i] + " of #123id");
+ testInvalidSelector(validNthAnPlusB[i] + " of []");
+ testInvalidSelector(validNthAnPlusB[i] + " of ()");
+ testInvalidSelector(validNthAnPlusB[i] + " of )");
+ testInvalidSelector(validNthAnPlusB[i] + " of {}");
+ testInvalidSelector(validNthAnPlusB[i] + " of }");
+}
+
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
-
-
-Basic valid cases without [of selectors]
-PASS document.querySelector(":nth-child(even)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even)"
-PASS document.querySelector(":nth-child(odd)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd)"
-PASS document.querySelector(":nth-child(n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n)"
-PASS document.querySelector(":nth-child(-n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n)"
-PASS document.querySelector(":nth-child(3)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3)"
-PASS document.querySelector(":nth-child(-3)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3)"
-PASS document.querySelector(":nth-child(n+0)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0)"
-PASS document.querySelector(":nth-child(n-0)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0)"
-PASS document.querySelector(":nth-child(0n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n)"
-PASS document.querySelector(":nth-child(3n+5)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5)"
-PASS document.querySelector(":nth-child(-3n+5)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5)"
-PASS document.querySelector(":nth-child(3n-5)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5)"
-PASS document.querySelector(":nth-child(-3n-5)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5)"
-Basic cases with [of selectors]
-PASS document.querySelector(":nth-child(even of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of *)"
-PASS document.querySelector(":nth-child(even of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of *)"
-PASS document.querySelector(":nth-child(even of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar)"
-PASS document.querySelector(":nth-child(even of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar)"
-PASS document.querySelector(":nth-child(even of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id)"
-PASS document.querySelector(":nth-child(even of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id)"
-PASS document.querySelector(":nth-child(even of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class)"
-PASS document.querySelector(":nth-child(even of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class)"
-PASS document.querySelector(":nth-child(even of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :first-child)"
-PASS document.querySelector(":nth-child(even of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :first-child)"
-PASS document.querySelector(":nth-child(even of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :last-child)"
-PASS document.querySelector(":nth-child(even of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of :last-child)"
-PASS document.querySelector(":nth-child(even of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar#id.class)"
-PASS document.querySelector(":nth-child(even of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of foobar#id.class)"
-PASS document.querySelector(":nth-child(even of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(even of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(even of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id:empty)"
-PASS document.querySelector(":nth-child(even of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of #id:empty)"
-PASS document.querySelector(":nth-child(even of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b)"
-PASS document.querySelector(":nth-child(even of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b)"
-PASS document.querySelector(":nth-child(even of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a b)"
-PASS document.querySelector(":nth-child(even of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a b)"
-PASS document.querySelector(":nth-child(even of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b)"
-PASS document.querySelector(":nth-child(even of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b)"
-PASS document.querySelector(":nth-child(even of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a ~ b)"
-PASS document.querySelector(":nth-child(even of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a ~ b)"
-PASS document.querySelector(":nth-child(even of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(even of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(even of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, a)"
-PASS document.querySelector(":nth-child(even of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, a)"
-PASS document.querySelector(":nth-child(even of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b)"
-PASS document.querySelector(":nth-child(even of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b)"
-PASS document.querySelector(":nth-child(even of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b, c, d)"
-PASS document.querySelector(":nth-child(even of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a, b, c, d)"
-PASS document.querySelector(":nth-child(even of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(even of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(even of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(even of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(odd of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of *)"
-PASS document.querySelector(":nth-child(odd of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of *)"
-PASS document.querySelector(":nth-child(odd of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar)"
-PASS document.querySelector(":nth-child(odd of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar)"
-PASS document.querySelector(":nth-child(odd of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id)"
-PASS document.querySelector(":nth-child(odd of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id)"
-PASS document.querySelector(":nth-child(odd of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class)"
-PASS document.querySelector(":nth-child(odd of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class)"
-PASS document.querySelector(":nth-child(odd of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :first-child)"
-PASS document.querySelector(":nth-child(odd of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :first-child)"
-PASS document.querySelector(":nth-child(odd of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :last-child)"
-PASS document.querySelector(":nth-child(odd of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of :last-child)"
-PASS document.querySelector(":nth-child(odd of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar#id.class)"
-PASS document.querySelector(":nth-child(odd of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of foobar#id.class)"
-PASS document.querySelector(":nth-child(odd of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(odd of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(odd of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id:empty)"
-PASS document.querySelector(":nth-child(odd of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of #id:empty)"
-PASS document.querySelector(":nth-child(odd of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b)"
-PASS document.querySelector(":nth-child(odd of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b)"
-PASS document.querySelector(":nth-child(odd of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a b)"
-PASS document.querySelector(":nth-child(odd of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a b)"
-PASS document.querySelector(":nth-child(odd of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b)"
-PASS document.querySelector(":nth-child(odd of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b)"
-PASS document.querySelector(":nth-child(odd of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a ~ b)"
-PASS document.querySelector(":nth-child(odd of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a ~ b)"
-PASS document.querySelector(":nth-child(odd of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(odd of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(odd of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, a)"
-PASS document.querySelector(":nth-child(odd of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, a)"
-PASS document.querySelector(":nth-child(odd of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b)"
-PASS document.querySelector(":nth-child(odd of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b)"
-PASS document.querySelector(":nth-child(odd of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b, c, d)"
-PASS document.querySelector(":nth-child(odd of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a, b, c, d)"
-PASS document.querySelector(":nth-child(odd of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(odd of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(odd of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(odd of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of *)"
-PASS document.querySelector(":nth-child(n of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of *)"
-PASS document.querySelector(":nth-child(n of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar)"
-PASS document.querySelector(":nth-child(n of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar)"
-PASS document.querySelector(":nth-child(n of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id)"
-PASS document.querySelector(":nth-child(n of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id)"
-PASS document.querySelector(":nth-child(n of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class)"
-PASS document.querySelector(":nth-child(n of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class)"
-PASS document.querySelector(":nth-child(n of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :first-child)"
-PASS document.querySelector(":nth-child(n of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :first-child)"
-PASS document.querySelector(":nth-child(n of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :last-child)"
-PASS document.querySelector(":nth-child(n of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of :last-child)"
-PASS document.querySelector(":nth-child(n of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar#id.class)"
-PASS document.querySelector(":nth-child(n of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of foobar#id.class)"
-PASS document.querySelector(":nth-child(n of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id:empty)"
-PASS document.querySelector(":nth-child(n of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of #id:empty)"
-PASS document.querySelector(":nth-child(n of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b)"
-PASS document.querySelector(":nth-child(n of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b)"
-PASS document.querySelector(":nth-child(n of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a b)"
-PASS document.querySelector(":nth-child(n of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a b)"
-PASS document.querySelector(":nth-child(n of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b)"
-PASS document.querySelector(":nth-child(n of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b)"
-PASS document.querySelector(":nth-child(n of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a ~ b)"
-PASS document.querySelector(":nth-child(n of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a ~ b)"
-PASS document.querySelector(":nth-child(n of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, a)"
-PASS document.querySelector(":nth-child(n of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, a)"
-PASS document.querySelector(":nth-child(n of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b)"
-PASS document.querySelector(":nth-child(n of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b)"
-PASS document.querySelector(":nth-child(n of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b, c, d)"
-PASS document.querySelector(":nth-child(n of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a, b, c, d)"
-PASS document.querySelector(":nth-child(n of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-n of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of *)"
-PASS document.querySelector(":nth-child(-n of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of *)"
-PASS document.querySelector(":nth-child(-n of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar)"
-PASS document.querySelector(":nth-child(-n of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar)"
-PASS document.querySelector(":nth-child(-n of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id)"
-PASS document.querySelector(":nth-child(-n of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id)"
-PASS document.querySelector(":nth-child(-n of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class)"
-PASS document.querySelector(":nth-child(-n of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class)"
-PASS document.querySelector(":nth-child(-n of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :first-child)"
-PASS document.querySelector(":nth-child(-n of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :first-child)"
-PASS document.querySelector(":nth-child(-n of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :last-child)"
-PASS document.querySelector(":nth-child(-n of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of :last-child)"
-PASS document.querySelector(":nth-child(-n of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar#id.class)"
-PASS document.querySelector(":nth-child(-n of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of foobar#id.class)"
-PASS document.querySelector(":nth-child(-n of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-n of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-n of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id:empty)"
-PASS document.querySelector(":nth-child(-n of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of #id:empty)"
-PASS document.querySelector(":nth-child(-n of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b)"
-PASS document.querySelector(":nth-child(-n of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b)"
-PASS document.querySelector(":nth-child(-n of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a b)"
-PASS document.querySelector(":nth-child(-n of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a b)"
-PASS document.querySelector(":nth-child(-n of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b)"
-PASS document.querySelector(":nth-child(-n of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b)"
-PASS document.querySelector(":nth-child(-n of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a ~ b)"
-PASS document.querySelector(":nth-child(-n of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a ~ b)"
-PASS document.querySelector(":nth-child(-n of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-n of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-n of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, a)"
-PASS document.querySelector(":nth-child(-n of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, a)"
-PASS document.querySelector(":nth-child(-n of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b)"
-PASS document.querySelector(":nth-child(-n of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b)"
-PASS document.querySelector(":nth-child(-n of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b, c, d)"
-PASS document.querySelector(":nth-child(-n of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a, b, c, d)"
-PASS document.querySelector(":nth-child(-n of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-n of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-n of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-n of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of *)"
-PASS document.querySelector(":nth-child(3 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of *)"
-PASS document.querySelector(":nth-child(3 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar)"
-PASS document.querySelector(":nth-child(3 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar)"
-PASS document.querySelector(":nth-child(3 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id)"
-PASS document.querySelector(":nth-child(3 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id)"
-PASS document.querySelector(":nth-child(3 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class)"
-PASS document.querySelector(":nth-child(3 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class)"
-PASS document.querySelector(":nth-child(3 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :first-child)"
-PASS document.querySelector(":nth-child(3 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :first-child)"
-PASS document.querySelector(":nth-child(3 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :last-child)"
-PASS document.querySelector(":nth-child(3 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of :last-child)"
-PASS document.querySelector(":nth-child(3 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id:empty)"
-PASS document.querySelector(":nth-child(3 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of #id:empty)"
-PASS document.querySelector(":nth-child(3 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b)"
-PASS document.querySelector(":nth-child(3 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b)"
-PASS document.querySelector(":nth-child(3 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a b)"
-PASS document.querySelector(":nth-child(3 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a b)"
-PASS document.querySelector(":nth-child(3 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b)"
-PASS document.querySelector(":nth-child(3 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b)"
-PASS document.querySelector(":nth-child(3 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a ~ b)"
-PASS document.querySelector(":nth-child(3 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a ~ b)"
-PASS document.querySelector(":nth-child(3 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, a)"
-PASS document.querySelector(":nth-child(3 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, a)"
-PASS document.querySelector(":nth-child(3 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b)"
-PASS document.querySelector(":nth-child(3 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b)"
-PASS document.querySelector(":nth-child(3 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of *)"
-PASS document.querySelector(":nth-child(-3 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of *)"
-PASS document.querySelector(":nth-child(-3 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar)"
-PASS document.querySelector(":nth-child(-3 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar)"
-PASS document.querySelector(":nth-child(-3 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id)"
-PASS document.querySelector(":nth-child(-3 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id)"
-PASS document.querySelector(":nth-child(-3 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class)"
-PASS document.querySelector(":nth-child(-3 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class)"
-PASS document.querySelector(":nth-child(-3 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :first-child)"
-PASS document.querySelector(":nth-child(-3 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :first-child)"
-PASS document.querySelector(":nth-child(-3 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :last-child)"
-PASS document.querySelector(":nth-child(-3 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of :last-child)"
-PASS document.querySelector(":nth-child(-3 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id:empty)"
-PASS document.querySelector(":nth-child(-3 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of #id:empty)"
-PASS document.querySelector(":nth-child(-3 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b)"
-PASS document.querySelector(":nth-child(-3 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b)"
-PASS document.querySelector(":nth-child(-3 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a b)"
-PASS document.querySelector(":nth-child(-3 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a b)"
-PASS document.querySelector(":nth-child(-3 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b)"
-PASS document.querySelector(":nth-child(-3 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b)"
-PASS document.querySelector(":nth-child(-3 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a ~ b)"
-PASS document.querySelector(":nth-child(-3 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a ~ b)"
-PASS document.querySelector(":nth-child(-3 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, a)"
-PASS document.querySelector(":nth-child(-3 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, a)"
-PASS document.querySelector(":nth-child(-3 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b)"
-PASS document.querySelector(":nth-child(-3 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b)"
-PASS document.querySelector(":nth-child(-3 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n+0 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of *)"
-PASS document.querySelector(":nth-child(n+0 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of *)"
-PASS document.querySelector(":nth-child(n+0 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar)"
-PASS document.querySelector(":nth-child(n+0 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar)"
-PASS document.querySelector(":nth-child(n+0 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id)"
-PASS document.querySelector(":nth-child(n+0 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id)"
-PASS document.querySelector(":nth-child(n+0 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class)"
-PASS document.querySelector(":nth-child(n+0 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class)"
-PASS document.querySelector(":nth-child(n+0 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :first-child)"
-PASS document.querySelector(":nth-child(n+0 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :first-child)"
-PASS document.querySelector(":nth-child(n+0 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :last-child)"
-PASS document.querySelector(":nth-child(n+0 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of :last-child)"
-PASS document.querySelector(":nth-child(n+0 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar#id.class)"
-PASS document.querySelector(":nth-child(n+0 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of foobar#id.class)"
-PASS document.querySelector(":nth-child(n+0 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n+0 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n+0 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id:empty)"
-PASS document.querySelector(":nth-child(n+0 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of #id:empty)"
-PASS document.querySelector(":nth-child(n+0 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b)"
-PASS document.querySelector(":nth-child(n+0 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b)"
-PASS document.querySelector(":nth-child(n+0 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a b)"
-PASS document.querySelector(":nth-child(n+0 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a b)"
-PASS document.querySelector(":nth-child(n+0 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b)"
-PASS document.querySelector(":nth-child(n+0 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b)"
-PASS document.querySelector(":nth-child(n+0 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a ~ b)"
-PASS document.querySelector(":nth-child(n+0 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a ~ b)"
-PASS document.querySelector(":nth-child(n+0 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n+0 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n+0 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, a)"
-PASS document.querySelector(":nth-child(n+0 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, a)"
-PASS document.querySelector(":nth-child(n+0 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b)"
-PASS document.querySelector(":nth-child(n+0 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b)"
-PASS document.querySelector(":nth-child(n+0 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b, c, d)"
-PASS document.querySelector(":nth-child(n+0 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a, b, c, d)"
-PASS document.querySelector(":nth-child(n+0 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n+0 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n+0 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n+0 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n-0 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of *)"
-PASS document.querySelector(":nth-child(n-0 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of *)"
-PASS document.querySelector(":nth-child(n-0 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar)"
-PASS document.querySelector(":nth-child(n-0 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar)"
-PASS document.querySelector(":nth-child(n-0 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id)"
-PASS document.querySelector(":nth-child(n-0 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id)"
-PASS document.querySelector(":nth-child(n-0 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class)"
-PASS document.querySelector(":nth-child(n-0 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class)"
-PASS document.querySelector(":nth-child(n-0 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :first-child)"
-PASS document.querySelector(":nth-child(n-0 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :first-child)"
-PASS document.querySelector(":nth-child(n-0 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :last-child)"
-PASS document.querySelector(":nth-child(n-0 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of :last-child)"
-PASS document.querySelector(":nth-child(n-0 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar#id.class)"
-PASS document.querySelector(":nth-child(n-0 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of foobar#id.class)"
-PASS document.querySelector(":nth-child(n-0 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n-0 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(n-0 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id:empty)"
-PASS document.querySelector(":nth-child(n-0 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of #id:empty)"
-PASS document.querySelector(":nth-child(n-0 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b)"
-PASS document.querySelector(":nth-child(n-0 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b)"
-PASS document.querySelector(":nth-child(n-0 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a b)"
-PASS document.querySelector(":nth-child(n-0 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a b)"
-PASS document.querySelector(":nth-child(n-0 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b)"
-PASS document.querySelector(":nth-child(n-0 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b)"
-PASS document.querySelector(":nth-child(n-0 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a ~ b)"
-PASS document.querySelector(":nth-child(n-0 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a ~ b)"
-PASS document.querySelector(":nth-child(n-0 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n-0 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(n-0 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, a)"
-PASS document.querySelector(":nth-child(n-0 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, a)"
-PASS document.querySelector(":nth-child(n-0 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b)"
-PASS document.querySelector(":nth-child(n-0 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b)"
-PASS document.querySelector(":nth-child(n-0 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b, c, d)"
-PASS document.querySelector(":nth-child(n-0 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a, b, c, d)"
-PASS document.querySelector(":nth-child(n-0 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n-0 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(n-0 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(n-0 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(0n of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of *)"
-PASS document.querySelector(":nth-child(0n of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of *)"
-PASS document.querySelector(":nth-child(0n of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar)"
-PASS document.querySelector(":nth-child(0n of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar)"
-PASS document.querySelector(":nth-child(0n of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id)"
-PASS document.querySelector(":nth-child(0n of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id)"
-PASS document.querySelector(":nth-child(0n of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class)"
-PASS document.querySelector(":nth-child(0n of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class)"
-PASS document.querySelector(":nth-child(0n of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :first-child)"
-PASS document.querySelector(":nth-child(0n of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :first-child)"
-PASS document.querySelector(":nth-child(0n of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :last-child)"
-PASS document.querySelector(":nth-child(0n of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of :last-child)"
-PASS document.querySelector(":nth-child(0n of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar#id.class)"
-PASS document.querySelector(":nth-child(0n of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of foobar#id.class)"
-PASS document.querySelector(":nth-child(0n of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(0n of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(0n of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id:empty)"
-PASS document.querySelector(":nth-child(0n of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of #id:empty)"
-PASS document.querySelector(":nth-child(0n of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b)"
-PASS document.querySelector(":nth-child(0n of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b)"
-PASS document.querySelector(":nth-child(0n of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a b)"
-PASS document.querySelector(":nth-child(0n of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a b)"
-PASS document.querySelector(":nth-child(0n of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b)"
-PASS document.querySelector(":nth-child(0n of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b)"
-PASS document.querySelector(":nth-child(0n of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a ~ b)"
-PASS document.querySelector(":nth-child(0n of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a ~ b)"
-PASS document.querySelector(":nth-child(0n of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(0n of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(0n of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, a)"
-PASS document.querySelector(":nth-child(0n of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, a)"
-PASS document.querySelector(":nth-child(0n of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b)"
-PASS document.querySelector(":nth-child(0n of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b)"
-PASS document.querySelector(":nth-child(0n of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b, c, d)"
-PASS document.querySelector(":nth-child(0n of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a, b, c, d)"
-PASS document.querySelector(":nth-child(0n of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(0n of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(0n of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(0n of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3n+5 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of *)"
-PASS document.querySelector(":nth-child(3n+5 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of *)"
-PASS document.querySelector(":nth-child(3n+5 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar)"
-PASS document.querySelector(":nth-child(3n+5 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar)"
-PASS document.querySelector(":nth-child(3n+5 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id)"
-PASS document.querySelector(":nth-child(3n+5 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id)"
-PASS document.querySelector(":nth-child(3n+5 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class)"
-PASS document.querySelector(":nth-child(3n+5 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class)"
-PASS document.querySelector(":nth-child(3n+5 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :first-child)"
-PASS document.querySelector(":nth-child(3n+5 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :first-child)"
-PASS document.querySelector(":nth-child(3n+5 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :last-child)"
-PASS document.querySelector(":nth-child(3n+5 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of :last-child)"
-PASS document.querySelector(":nth-child(3n+5 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3n+5 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3n+5 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3n+5 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3n+5 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id:empty)"
-PASS document.querySelector(":nth-child(3n+5 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of #id:empty)"
-PASS document.querySelector(":nth-child(3n+5 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b)"
-PASS document.querySelector(":nth-child(3n+5 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b)"
-PASS document.querySelector(":nth-child(3n+5 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a b)"
-PASS document.querySelector(":nth-child(3n+5 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a b)"
-PASS document.querySelector(":nth-child(3n+5 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b)"
-PASS document.querySelector(":nth-child(3n+5 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b)"
-PASS document.querySelector(":nth-child(3n+5 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a ~ b)"
-PASS document.querySelector(":nth-child(3n+5 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a ~ b)"
-PASS document.querySelector(":nth-child(3n+5 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3n+5 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3n+5 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, a)"
-PASS document.querySelector(":nth-child(3n+5 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, a)"
-PASS document.querySelector(":nth-child(3n+5 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b)"
-PASS document.querySelector(":nth-child(3n+5 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b)"
-PASS document.querySelector(":nth-child(3n+5 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3n+5 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3n+5 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3n+5 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3n+5 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3n+5 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3n+5 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of *)"
-PASS document.querySelector(":nth-child(-3n+5 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of *)"
-PASS document.querySelector(":nth-child(-3n+5 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar)"
-PASS document.querySelector(":nth-child(-3n+5 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar)"
-PASS document.querySelector(":nth-child(-3n+5 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id)"
-PASS document.querySelector(":nth-child(-3n+5 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id)"
-PASS document.querySelector(":nth-child(-3n+5 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class)"
-PASS document.querySelector(":nth-child(-3n+5 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class)"
-PASS document.querySelector(":nth-child(-3n+5 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :first-child)"
-PASS document.querySelector(":nth-child(-3n+5 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :first-child)"
-PASS document.querySelector(":nth-child(-3n+5 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :last-child)"
-PASS document.querySelector(":nth-child(-3n+5 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of :last-child)"
-PASS document.querySelector(":nth-child(-3n+5 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3n+5 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3n+5 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3n+5 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3n+5 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id:empty)"
-PASS document.querySelector(":nth-child(-3n+5 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of #id:empty)"
-PASS document.querySelector(":nth-child(-3n+5 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b)"
-PASS document.querySelector(":nth-child(-3n+5 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b)"
-PASS document.querySelector(":nth-child(-3n+5 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a b)"
-PASS document.querySelector(":nth-child(-3n+5 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a b)"
-PASS document.querySelector(":nth-child(-3n+5 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b)"
-PASS document.querySelector(":nth-child(-3n+5 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b)"
-PASS document.querySelector(":nth-child(-3n+5 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a ~ b)"
-PASS document.querySelector(":nth-child(-3n+5 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a ~ b)"
-PASS document.querySelector(":nth-child(-3n+5 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3n+5 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3n+5 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, a)"
-PASS document.querySelector(":nth-child(-3n+5 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, a)"
-PASS document.querySelector(":nth-child(-3n+5 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b)"
-PASS document.querySelector(":nth-child(-3n+5 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b)"
-PASS document.querySelector(":nth-child(-3n+5 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3n+5 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3n+5 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3n+5 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3n+5 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3n-5 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of *)"
-PASS document.querySelector(":nth-child(3n-5 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of *)"
-PASS document.querySelector(":nth-child(3n-5 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar)"
-PASS document.querySelector(":nth-child(3n-5 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar)"
-PASS document.querySelector(":nth-child(3n-5 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id)"
-PASS document.querySelector(":nth-child(3n-5 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id)"
-PASS document.querySelector(":nth-child(3n-5 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class)"
-PASS document.querySelector(":nth-child(3n-5 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class)"
-PASS document.querySelector(":nth-child(3n-5 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :first-child)"
-PASS document.querySelector(":nth-child(3n-5 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :first-child)"
-PASS document.querySelector(":nth-child(3n-5 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :last-child)"
-PASS document.querySelector(":nth-child(3n-5 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of :last-child)"
-PASS document.querySelector(":nth-child(3n-5 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3n-5 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(3n-5 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3n-5 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(3n-5 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id:empty)"
-PASS document.querySelector(":nth-child(3n-5 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of #id:empty)"
-PASS document.querySelector(":nth-child(3n-5 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b)"
-PASS document.querySelector(":nth-child(3n-5 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b)"
-PASS document.querySelector(":nth-child(3n-5 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a b)"
-PASS document.querySelector(":nth-child(3n-5 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a b)"
-PASS document.querySelector(":nth-child(3n-5 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b)"
-PASS document.querySelector(":nth-child(3n-5 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b)"
-PASS document.querySelector(":nth-child(3n-5 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a ~ b)"
-PASS document.querySelector(":nth-child(3n-5 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a ~ b)"
-PASS document.querySelector(":nth-child(3n-5 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3n-5 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(3n-5 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, a)"
-PASS document.querySelector(":nth-child(3n-5 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, a)"
-PASS document.querySelector(":nth-child(3n-5 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b)"
-PASS document.querySelector(":nth-child(3n-5 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b)"
-PASS document.querySelector(":nth-child(3n-5 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3n-5 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(3n-5 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3n-5 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(3n-5 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(3n-5 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3n-5 of *)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of *)"
-PASS document.querySelector(":nth-child(-3n-5 of * )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of *)"
-PASS document.querySelector(":nth-child(-3n-5 of foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar)"
-PASS document.querySelector(":nth-child(-3n-5 of foobar )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar)"
-PASS document.querySelector(":nth-child(-3n-5 of #id)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id)"
-PASS document.querySelector(":nth-child(-3n-5 of #id )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id)"
-PASS document.querySelector(":nth-child(-3n-5 of .class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class)"
-PASS document.querySelector(":nth-child(-3n-5 of .class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class)"
-PASS document.querySelector(":nth-child(-3n-5 of :first-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :first-child)"
-PASS document.querySelector(":nth-child(-3n-5 of :first-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :first-child)"
-PASS document.querySelector(":nth-child(-3n-5 of :last-child)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :last-child)"
-PASS document.querySelector(":nth-child(-3n-5 of :last-child )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of :last-child)"
-PASS document.querySelector(":nth-child(-3n-5 of foobar#id.class)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3n-5 of foobar#id.class )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of foobar#id.class)"
-PASS document.querySelector(":nth-child(-3n-5 of .class:not(.notclass))") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3n-5 of .class:not(.notclass) )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .class:not(.notclass))"
-PASS document.querySelector(":nth-child(-3n-5 of #id:empty)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id:empty)"
-PASS document.querySelector(":nth-child(-3n-5 of #id:empty )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of #id:empty)"
-PASS document.querySelector(":nth-child(-3n-5 of a > b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b)"
-PASS document.querySelector(":nth-child(-3n-5 of a > b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b)"
-PASS document.querySelector(":nth-child(-3n-5 of a b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a b)"
-PASS document.querySelector(":nth-child(-3n-5 of a b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a b)"
-PASS document.querySelector(":nth-child(-3n-5 of a + b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b)"
-PASS document.querySelector(":nth-child(-3n-5 of a + b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b)"
-PASS document.querySelector(":nth-child(-3n-5 of a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a ~ b)"
-PASS document.querySelector(":nth-child(-3n-5 of a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a ~ b)"
-PASS document.querySelector(":nth-child(-3n-5 of a + b > c ~ d e + g)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3n-5 of a + b > c ~ d e + g )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a + b > c ~ d e + g)"
-PASS document.querySelector(":nth-child(-3n-5 of a, a)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, a)"
-PASS document.querySelector(":nth-child(-3n-5 of a, a )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, a)"
-PASS document.querySelector(":nth-child(-3n-5 of a, b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b)"
-PASS document.querySelector(":nth-child(-3n-5 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b)"
-PASS document.querySelector(":nth-child(-3n-5 of a, b, c, d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3n-5 of a, b, c, d )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a, b, c, d)"
-PASS document.querySelector(":nth-child(-3n-5 of .foo, .bar, .baz)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3n-5 of .foo, .bar, .baz )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foo, .bar, .baz)"
-PASS document.querySelector(":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)"
-PASS document.querySelector(":nth-child(-3n-5 of a > b, a b, a + b, a ~ b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of a > b, a b, a + b, a ~ b)"
-Test serizalization.
-PASS document.querySelector(":nth-child(2n+1 of a,b,c,d)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a, b, c, d)"
-PASS document.querySelector(":nth-child( 2n+1 of a, b )") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a, b)"
-PASS document.querySelector(":nth-child(2n+1 of a>b, c d, e~f, g+h)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of a > b, c d, e ~ f, g + h)"
-PASS document.querySelector(":nth-child(2n+1 of n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n)"
-PASS document.querySelector(":nth-child(2n+1 of n-1)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n-1)"
-PASS document.querySelector(":nth-child(2n+1 of .n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .n)"
-PASS document.querySelector(":nth-child(2n+1 of .-n-1)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .-n-1)"
-PASS document.querySelector(":nth-child(2n+1 of .n-1)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of .n-1)"
-PASS document.querySelector(":nth-child(2n+1 of n+n)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(2n+1 of n + n)"
-PASS document.querySelector(":nth-child(even of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(odd of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(n of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(-n of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(3 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(0n of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 Of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 oF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 OF .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(even \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(even \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(even of .foobar)"
-PASS document.querySelector(":nth-child(odd \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(odd \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(odd of .foobar)"
-PASS document.querySelector(":nth-child(n \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(n \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(-n \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-n of .foobar)"
-PASS document.querySelector(":nth-child(3 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(3 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(-3 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n+0 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n+0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(n-0 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(n-0 of .foobar)"
-PASS document.querySelector(":nth-child(0n \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(0n \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(0n of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n+5 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n+5 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n+5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(3n-5 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\of .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\00006ff .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 o\\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\00006F \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\00004f \\000066 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\00006F \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\00004f \\000046 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\6f f .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 o\\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\6F \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\4f \\66 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\6F \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-PASS document.querySelector(":nth-child(-3n-5 \\4f \\46 .foobar)") did not throw exception.
-PASS document.getElementById('style-container').sheet.cssRules.length is 1
-PASS document.getElementById('style-container').sheet.cssRules[0].selectorText is ":nth-child(-3n-5 of .foobar)"
-
-Test invalid selectors:
-PASS document.querySelector(":nth-child(even of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(evenof .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(oddof .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0nof .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of )") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of.class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5of .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 empty .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 from .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 to .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 webkit .class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ::first-letter)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ::after)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ::-webkit-custom)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of .foo, ::before)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ::before, .foo)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of -webkit-any(::before, .foo))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of :nth-child(2n+1 of ::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of :not(::before))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(even of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(odd of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-n of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n+0 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(n-0 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(0n of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n+5 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n+5 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(3n-5 of })") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of .123class)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of #123id)") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of [])") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ())") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of ))") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of {})") threw exception Error: SyntaxError: DOM Exception 12.
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector(":nth-child(-3n-5 of })") 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>-<!doctype html>
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-<style id="style-container">
-</style>
-</head>
-<body>
-</body>
-<script>
-description('Test the parsing of :nth-child(of) for querySelector and style.');
-
-function testInvalidSelector(selectorString) {
- shouldThrow('document.querySelector(":nth-child(' + selectorString + ')")', '"Error: SyntaxError: DOM Exception 12"');
-
- var styleContainer = document.getElementById('style-container');
- styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
- shouldBe("document.getElementById('style-container').sheet.cssRules.length", "0");
- styleContainer.innerHTML = '';
-}
-
-function testValidSelector(selectorString, expectedSerializedSelector) {
- shouldNotThrow('document.querySelector(":nth-child(' + selectorString.replace(/\\/g, '\\\\') + ')")', '"Error: SyntaxError: DOM Exception 12"');
-
- var styleContainer = document.getElementById('style-container');
- styleContainer.innerHTML = ':nth-child(' + selectorString + ') { }';
- shouldBe("document.getElementById('style-container').sheet.cssRules.length", "1");
- if (!expectedSerializedSelector)
- expectedSerializedSelector = selectorString;
- shouldBeEqualToString("document.getElementById('style-container').sheet.cssRules[0].selectorText", ':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 = [
- "even",
- "odd",
- "n",
- "-n",
- "3",
- "-3",
- "n+0",
- "n-0",
- "0n",
- "3n+5",
- "-3n+5",
- "3n-5",
- "-3n-5",
-];
-
-debug("Basic valid cases without [of selectors]");
-for (var i = 0; i < validNthAnPlusB.length; ++i)
- testValidSelector(validNthAnPlusB[i], validNthAnPlusB[i]);
-
-var validRightSide = [
- // Basic types.
- "*",
- "foobar",
- "#id",
- ".class",
- ":first-child",
- ":last-child",
-
- // Compound selectors.
- "foobar#id.class",
- ".class:not(.notclass)",
- "#id:empty",
-
- // Complex selectors.
- "a > b",
- "a b",
- "a + b",
- "a ~ b",
- "a + b > c ~ d e + g",
-
- // Selector lists.
- "a, a",
- "a, b",
- "a, b, c, d",
- ".foo, .bar, .baz",
- "a > b, a b, a + b, a ~ b",
-];
-
-debug("Basic cases with [of selectors]");
-for (var leftSideIndex = 0; leftSideIndex < validNthAnPlusB.length; ++leftSideIndex) {
- for (var rightSideIndex = 0; rightSideIndex < validRightSide.length; ++rightSideIndex) {
- var selectorString = validNthAnPlusB[leftSideIndex] + " of " + validRightSide[rightSideIndex];
- testValidSelector(selectorString);
- testValidSelector(selectorString + " ", selectorString);
- }
-}
-
-debug("Test serizalization.");
-testValidSelector("2n+1 of a,b,c,d", "2n+1 of a, b, c, d"); // Space separated complex selector.
-testValidSelector(" 2n+1 of a, b ", "2n+1 of a, b"); // Ignored extra spaces.
-testValidSelector("2n+1 of a>b, c d, e~f, g+h", "2n+1 of a > b, c d, e ~ f, g + h"); // 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("2n+1 of n");
-testValidSelector("2n+1 of n-1"); // "n-1" is a perfectly valid element name.
-testValidSelector("2n+1 of .n");
-testValidSelector("2n+1 of .-n-1");
-testValidSelector("2n+1 of .n-1");
-testValidSelector("2n+1 of n+n", "2n+1 of n + n");
-
-// Test case sensitivity of the separator "of". CSS 2.1 defines that "All CSS syntax is case-insensitive within the ASCII range".
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- testValidSelector(validNthAnPlusB[i] + " of .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " Of .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " oF .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " OF .foobar", validNthAnPlusB[i] + " of .foobar");
-}
-
-// CSS 2.1 "Characters and case" (http://www.w3.org/TR/CSS21/syndata.html#characters) section defines escaping for strings and identifiers:
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- // There is no formal definition of escaping of regular characters, but there is a note saying: 'The identifier "te\st" is exactly the same identifier as "test".'.
- testValidSelector(validNthAnPlusB[i] + " \\of .foobar", validNthAnPlusB[i] + " of .foobar");
-
- // Full hexadecimal escape ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
- testValidSelector(validNthAnPlusB[i] + " \\00006ff .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " o\\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\00006F \\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\00004f \\000066 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\00006F \\000046 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\00004f \\000046 .foobar", validNthAnPlusB[i] + " of .foobar");
-
- // Short syntax ('o' = 0x6f, 'f' = 0x66, 'O' = 0x4f, 'F' = 0x46.
- testValidSelector(validNthAnPlusB[i] + " \\6f f .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " o\\66 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\6F \\66 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\4f \\66 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\6F \\46 .foobar", validNthAnPlusB[i] + " of .foobar");
- testValidSelector(validNthAnPlusB[i] + " \\4f \\46 .foobar", validNthAnPlusB[i] + " of .foobar");
-}
-
-
-debug("");
-debug("Test invalid selectors:");
-// Missing space characters.
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- testInvalidSelector(validNthAnPlusB[i] + " of");
- testInvalidSelector(validNthAnPlusB[i] + " of ");
- testInvalidSelector(validNthAnPlusB[i] + " of.class");
- testInvalidSelector(validNthAnPlusB[i] + "of .class");
-}
-
-// Use valid identifier but not "of" as a separator.
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- testInvalidSelector(validNthAnPlusB[i] + " empty .class");
- testInvalidSelector(validNthAnPlusB[i] + " from .class");
- testInvalidSelector(validNthAnPlusB[i] + " to .class");
- testInvalidSelector(validNthAnPlusB[i] + " webkit .class");
-}
-
-// Matching pseudo elements do not make any sense.
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- testInvalidSelector(validNthAnPlusB[i] + " of ::first-letter");
- testInvalidSelector(validNthAnPlusB[i] + " of ::before");
- testInvalidSelector(validNthAnPlusB[i] + " of ::after");
- testInvalidSelector(validNthAnPlusB[i] + " of ::-webkit-custom");
-
- testInvalidSelector(validNthAnPlusB[i] + " of .foo, ::before");
- testInvalidSelector(validNthAnPlusB[i] + " of ::before, .foo");
- testInvalidSelector(validNthAnPlusB[i] + " of -webkit-any(::before, .foo)");
- testInvalidSelector(validNthAnPlusB[i] + " of :nth-child(2n+1 of ::before)");
- testInvalidSelector(validNthAnPlusB[i] + " of :not(::before)");
-}
-
-// Invalid identifiers, syntax, etc.
-for (var i = 0; i < validNthAnPlusB.length; ++i) {
- testInvalidSelector(validNthAnPlusB[i] + " of .123class");
- testInvalidSelector(validNthAnPlusB[i] + " of #123id");
- testInvalidSelector(validNthAnPlusB[i] + " of []");
- testInvalidSelector(validNthAnPlusB[i] + " of ()");
- testInvalidSelector(validNthAnPlusB[i] + " of )");
- testInvalidSelector(validNthAnPlusB[i] + " of {}");
- testInvalidSelector(validNthAnPlusB[i] + " of }");
-}
-
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</html>
</del></span></pre>
</div>
</div>
</body>
</html>