<!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>[180123] trunk</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/180123">180123</a></dd>
<dt>Author</dt> <dd>benjamin@webkit.org</dd>
<dt>Date</dt> <dd>2015-02-14 22:11:51 -0800 (Sat, 14 Feb 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add the initial matching implementation for attribute selectors with case-insensitive value
https://bugs.webkit.org/show_bug.cgi?id=141615

Reviewed by Andreas Kling.

Source/WebCore:

Tests: fast/css/case-insensitive-attribute-selector-specificity.html
       fast/css/case-insensitive-attribute-selector-styling-html-1.html
       fast/css/case-insensitive-attribute-selector-styling-html-2.html
       fast/css/case-insensitive-attribute-selector-styling-html-3.html
       fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml
       fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml
       fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml
       fast/selectors/case-insensitive-attribute-bascis.html
       fast/selectors/case-insensitive-attribute-matching-style-attribute.html
       fast/selectors/case-insensitive-attribute-style-update.html
       fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):
We already had case-insensitive value matching due to some legacy HTML
behaviors where some attribute values would be matched case-insensitively
depending on the attribute name.

For this patch, I just re-use the same mechanism. I used branches to try
to convey the idea that matching is case sensitive by default unless
the selector has a flag or we are in the weird HTML exception.

* cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::constructFragmentsInternal):
Disable that case in the CSS JIT for now, I'll implement it later.

LayoutTests:

This covers the basics. I will add some more cases as I do the follow up patches.

I avoided the problem of non-ASCII characters, this will need its own follow up
patch that fixes all attribute matching.

* fast/css/case-insensitive-attribute-selector-specificity-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-specificity.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-1.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-2.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-html-3.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html: Added.
* fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml: Added.
* fast/selectors/case-insensitive-attribute-bascis-expected.txt: Added.
* fast/selectors/case-insensitive-attribute-bascis.html: Added.
* fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt: Added.
* fast/selectors/case-insensitive-attribute-matching-style-attribute.html: Added.
* fast/selectors/case-insensitive-attribute-style-update-expected.txt: Added.
* fast/selectors/case-insensitive-attribute-style-update.html: Added.
* fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt: Added.
* fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssSelectorCheckercpp">trunk/Source/WebCore/css/SelectorChecker.cpp</a></li>
<li><a href="#trunkSourceWebCorecssjitSelectorCompilercpp">trunk/Source/WebCore/cssjit/SelectorCompiler.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorspecificityexpectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorspecificityhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml1expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml1html">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml2expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml2html">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml3expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml3html">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml1expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml1xhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml2expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml2xhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml3expectedhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml3xhtml">trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributebascisexpectedtxt">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributebascishtml">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis.html</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributematchingstyleattributeexpectedtxt">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributematchingstyleattributehtml">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute.html</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributestyleupdateexpectedtxt">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributestyleupdatehtml">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update.html</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributewithcasesensitivenameexpectedtxt">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorscaseinsensitiveattributewithcasesensitivenamehtml">trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (180122 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-02-15 05:31:53 UTC (rev 180122)
+++ trunk/LayoutTests/ChangeLog        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2015-02-14  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Add the initial matching implementation for attribute selectors with case-insensitive value
+        https://bugs.webkit.org/show_bug.cgi?id=141615
+
+        Reviewed by Andreas Kling.
+
+        This covers the basics. I will add some more cases as I do the follow up patches.
+
+        I avoided the problem of non-ASCII characters, this will need its own follow up
+        patch that fixes all attribute matching.
+
+        * fast/css/case-insensitive-attribute-selector-specificity-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-specificity.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-1.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-2.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-html-3.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html: Added.
+        * fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml: Added.
+        * fast/selectors/case-insensitive-attribute-bascis-expected.txt: Added.
+        * fast/selectors/case-insensitive-attribute-bascis.html: Added.
+        * fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt: Added.
+        * fast/selectors/case-insensitive-attribute-matching-style-attribute.html: Added.
+        * fast/selectors/case-insensitive-attribute-style-update-expected.txt: Added.
+        * fast/selectors/case-insensitive-attribute-style-update.html: Added.
+        * fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt: Added.
+        * fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html: Added.
+
</ins><span class="cx"> 2015-02-14  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: Symbol RemoteObject should not send sub-type
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorspecificityexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            /* Specificity of (0, 0, 0). */
+            * {
+                background-color: white;
+                font-weight: bold;
+            }
+
+            /* Specificity of (0, 0, 1). */
+            p {
+                margin: 2px; /* Ref-test must fix into 800*600, keep the margins small. */
+                font-weight: normal
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;Test the specificity of the case-insensitive attribute selector. If the test pass, each line should be styled as described by its text.&lt;/p&gt;
+        &lt;p&gt;Black text, white background, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; font-weight: bold; border: 15px solid red;&quot;&gt;Green background, bold blue text, solid red border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; font-weight: bold; lime; border: 3px dashed orange;&quot;&gt;Green background, bold blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; font-weight: bold; border: 15px solid red;&quot;&gt;Green background, bold blue text, solid red border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorspecificityhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-specificity.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            /* Specificity of (0, 1, 1). */
+            p.target {
+                padding: 0;
+            }
+
+            /* Specificity of (0, 1, 0). */
+            .target {
+                background-color: red;
+                color: blue;
+                border: none;
+            }
+
+            /* This should also have a specificity of (0, 1, 0). It should have higher precedence
+               than the previous rule due to the position in the stylesheet. */
+            [data-webkit=&quot;rocks&quot; i] {
+                background-color: lime;
+                border: 15px solid red;
+                padding: 25px;
+                font-weight: bold;
+            }
+
+            /* Specificity of (0, 1, 0). */
+            [data-webkit=&quot;rocks&quot;] {
+                border: 3px dashed orange;
+            }
+
+            /* Specificity of (0, 0, 1). */
+            p {
+                margin: 2px; /* Ref-test must fix into 800*600, keep the margins small. */
+                font-weight: normal;
+            }
+
+            /* Specificity of (0, 0, 0). */
+            * {
+                background-color: white;
+                font-weight: bold;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;Test the specificity of the case-insensitive attribute selector. If the test pass, each line should be styled as described by its text.&lt;/p&gt;
+        &lt;p data-webkit&gt;Black text, white background, no border.&lt;/p&gt;
+        &lt;p class=&quot;target&quot; data-webkit=&quot;ROCKS&quot;&gt;Green background, bold blue text, solid red border.&lt;/p&gt;
+        &lt;p class=&quot;target&quot; data-webkit=&quot;rocks&quot;&gt;Green background, bold blue text, dashed orange border.&lt;/p&gt;
+        &lt;p class=&quot;target&quot; data-webkit=&quot;Rocks&quot;&gt;Green background, bold blue text, solid red border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: red; color: blue;&quot;&gt;Red background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: red; border: 2px solid purple; font-weight: bold;&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-1.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: red;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit=&quot;ROCKS!&quot; i] {
+                color: white;
+            }
+            [data-webkit=&quot;rocks!&quot;] {
+                color: red;
+                font-weight: bold;
+            }
+
+            [data-webkit^=&quot;RO&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit^=&quot;ro&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit&gt;Red background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROCKS!&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks!&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks!&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;ROCKS&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Roar&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROAR&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml2expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: white;&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-2.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: lightgrey;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit$=&quot;CKS!&quot; i] {
+                color: white;
+            }
+            [data-webkit$=&quot;cks!&quot;] {
+                color: red;
+            }
+
+            [data-webkit*=&quot;oa&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit*=&quot;oa&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROCKS!&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks!&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks!&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;ROCKS&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROAR&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml3expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: white;&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: red; border: 2px solid purple;&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylinghtml3html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-html-3.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: lightgrey;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit~=&quot;is&quot; i] {
+                color: white;
+            }
+            [data-webkit~=&quot;is&quot;] {
+                color: red;
+            }
+
+            [data-webkit|=&quot;is&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit|=&quot;is&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is fast&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS fast&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS fast is FAST&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is FAST&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Fast&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;fast&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;FAST&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is-Fast&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-Fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is-Fast Is-Fast&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-fast Is-Fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml1expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: red; color: blue;&quot;&gt;Red background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: red; border: 2px solid purple; font-weight: bold;&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml1xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: red;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit=&quot;ROCKS!&quot; i] {
+                color: white;
+            }
+            [data-webkit=&quot;rocks!&quot;] {
+                color: red;
+                font-weight: bold;
+            }
+
+            [data-webkit^=&quot;RO&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit^=&quot;ro&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit=&quot;&quot;&gt;Red background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROCKS!&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks!&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks!&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;ROCKS&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Roar&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROAR&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml2expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: white;&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml2xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: lightgrey;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit$=&quot;CKS!&quot; i] {
+                color: white;
+            }
+            [data-webkit$=&quot;cks!&quot;] {
+                color: red;
+            }
+
+            [data-webkit*=&quot;oa&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit*=&quot;oa&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit=&quot;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROCKS!&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks!&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks!&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;ROCKS&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;rocks&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Rocks&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+
+        &lt;p data-webkit=&quot;roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Roar&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;ROAR&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml3expectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3-expected.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: white;&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: red;&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: red; border: 2px solid purple;&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: white; border: 5px dashed orange;&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lightgrey; color: blue;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 2px solid purple;&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p style=&quot;background-color: lime; color: blue; border: 5px dashed orange;&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsscaseinsensitiveattributeselectorstylingxhtml3xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml                                (rev 0)
+++ trunk/LayoutTests/fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+    &lt;head&gt;
+        &lt;style&gt;
+            p { /* Ref-test must fix into 800*600, keep the margins small. */
+                margin: 2px;
+            }
+
+            [data-webkit] {
+                background-color: lightgrey;
+                color: blue;
+                border: none;
+            }
+
+            [data-webkit~=&quot;is&quot; i] {
+                color: white;
+            }
+            [data-webkit~=&quot;is&quot;] {
+                color: red;
+            }
+
+            [data-webkit|=&quot;is&quot; i] {
+                border: 5px dashed orange;
+                background-color: lime;
+            }
+            [data-webkit|=&quot;is&quot;] {
+                border: 2px solid purple;
+            }
+
+            /* This rule is invalid. */
+            [data-webkit i] {
+                background-color: red;
+            }
+        &lt;/style&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;This test verify basic styling of element using case-insensitive attribute value matching (e.g. [foo=bar i]). If the test succeed, each paragraph should be styled according to its description.&lt;/p&gt;
+        &lt;p data-webkit=&quot;&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is fast&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS fast&quot;&gt;Light grey background, white text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS fast is FAST&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is FAST&quot;&gt;Light grey background, red text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is&quot;&gt;Green background, red text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;IS&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is&quot;&gt;Green background, white text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Fast&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;fast&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;FAST&quot;&gt;Light grey background, blue text, no border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is-Fast&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-Fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;is-Fast Is-Fast&quot;&gt;Green background, blue text, solid purple border.&lt;/p&gt;
+        &lt;p data-webkit=&quot;Is-fast Is-Fast&quot;&gt;Green background, blue text, dashed orange border.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributebascisexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis-expected.txt (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis-expected.txt        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,1233 @@
</span><ins>+Check the basic features of attribute matching with the case insensitive flag (e.g. [foo=bar i]).
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Testing &quot;[data-attribute=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit]').length is 1
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit]')[0].id is &quot;target1&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; i]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; I]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i  ]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I  ]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute~=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]').length is 4
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[1].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[2].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[3].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; i]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=&quot;WebKit&quot; I]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i  ]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute~=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[6].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[7].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I  ]')[8].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute|=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]').length is 2
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]')[1].id is &quot;target7&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; i]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=&quot;WebKit&quot; I]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i  ]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute|=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[3].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[4].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I  ]')[5].id is &quot;target9&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute^=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[1].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[2].id is &quot;target7&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+
+Testing &quot;[data-attribute^=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKit&quot; I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKi i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKi I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=&quot;WebKi&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=&quot;WebKi&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=&quot;WebKi&quot; I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKi i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute^=WebKi I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[1].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[2].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; i]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;WebKit&quot; I]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i  ]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I  ]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=ebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=ebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=&quot;ebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; i]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=&quot;ebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=&quot;ebKit&quot; I]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=ebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i  ]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute$=ebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[3].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[4].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I  ]')[5].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=WebKit]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]').length is 5
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[1].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[2].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[3].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[4].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=WebKit i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=WebKit I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=&quot;WebKit&quot; i]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; i]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=&quot;WebKit&quot; I]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=&quot;WebKit&quot; I]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=WebKit i  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+Testing &quot;[data-attribute*=WebKit I  ]&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[0].id is &quot;target1&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[1].id is &quot;target2&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[2].id is &quot;target3&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[3].id is &quot;target4&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[4].id is &quot;target5&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[5].id is &quot;target6&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[6].id is &quot;target7&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[7].id is &quot;target8&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[8].id is &quot;target9&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[9].id is &quot;target10&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[10].id is &quot;target11&quot;
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I  ]')[11].id is &quot;target12&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[0]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[1]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[2]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[3]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[4]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[5]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[6]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[7]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[8]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[9]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[10]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[11]).backgroundColor is &quot;rgb(10, 100, 200)&quot;
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributebascishtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis.html                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-bascis.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,133 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+#test-root * {
+    background-color: red;
+}
+&lt;/style&gt;
+&lt;style id=&quot;style&quot;&gt;
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;div style=&quot;display:none&quot; id=&quot;test-root&quot;&gt;
+        &lt;div data-attribute=&quot;WebKit&quot; id=&quot;target1&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;webkit&quot; id=&quot;target2&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WEBKIT&quot; id=&quot;target3&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WebKit rocks&quot; id=&quot;target4&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;webkit Rocks&quot; id=&quot;target5&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WEBKIT ROCKS&quot; id=&quot;target6&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WebKit-rocks&quot; id=&quot;target7&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;webkit-Rocks&quot; id=&quot;target8&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WEBKIT-ROCKS&quot; id=&quot;target9&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WEBKIT webkit&quot; id=&quot;target10&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;WEBKIT WebKit&quot; id=&quot;target11&quot;&gt;&lt;/div&gt;
+        &lt;div data-attribute=&quot;webkit WebKit&quot; id=&quot;target12&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Check the basic features of attribute matching with the case insensitive flag (e.g. [foo=bar i]).');
+
+function testQuerySelector(selector, expectedIds) {
+    shouldBe(&quot;document.querySelectorAll('&quot; + selector + &quot;').length&quot;, '' + expectedIds.length);
+    for (var i = 0; i &lt; expectedIds.length; ++i)
+        shouldBeEqualToString(&quot;document.querySelectorAll('&quot; + selector + &quot;')[&quot; + i + &quot;].id&quot;, 'target' + expectedIds[i]);
+}
+
+function testStyling(selector, expectedIds) {
+    var stylingElement = document.getElementById(&quot;style&quot;);
+    stylingElement.innerHTML = '' + selector + ' { background-color: rgb(10, 100, 200); }';
+
+    var allTestCases = document.querySelectorAll(&quot;#test-root *&quot;);
+    for (var i = 0; i &lt; allTestCases.length; ++i) {
+        var expectMatch = expectedIds.indexOf(parseInt(allTestCases[i].id.replace('target', ''))) &gt;= 0;
+        shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;#test-root *&quot;)[' + i + ']).backgroundColor', expectMatch ? 'rgb(10, 100, 200)' : 'rgb(255, 0, 0)');
+    }
+
+    stylingElement.innerHTML = '';
+}
+
+function testSelector(selector, expectedIds) {
+    debug(&quot;Testing \&quot;&quot; + selector + &quot;\&quot;&quot;);
+    testQuerySelector(&quot;#test-root &quot; + selector, expectedIds);
+    testStyling(&quot;#test-root &quot; + selector, expectedIds);
+    debug(&quot;&quot;);
+}
+
+var testCases = [
+    ['[data-attribute=WebKit]', [1]],
+
+    ['[data-attribute=WebKit i]', [1, 2, 3]],
+    ['[data-attribute=WebKit I]', [1, 2, 3]],
+    ['[data-attribute=&quot;WebKit&quot; i]', [1, 2, 3]],
+    ['[data-attribute=&quot;WebKit&quot; I]', [1, 2, 3]],
+    ['[data-attribute=WebKit i  ]', [1, 2, 3]],
+    ['[data-attribute=WebKit I  ]', [1, 2, 3]],
+
+    ['[data-attribute~=WebKit]', [1, 4, 11, 12]],
+
+    ['[data-attribute~=WebKit i]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+    ['[data-attribute~=WebKit I]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+    ['[data-attribute~=&quot;WebKit&quot; i]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+    ['[data-attribute~=&quot;WebKit&quot; I]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+    ['[data-attribute~=WebKit i  ]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+    ['[data-attribute~=WebKit I  ]', [1, 2, 3, 4, 5, 6, 10, 11, 12]],
+
+    ['[data-attribute|=WebKit]', [1, 7]],
+
+    ['[data-attribute|=WebKit i]', [1, 2, 3, 7, 8, 9]],
+    ['[data-attribute|=WebKit I]', [1, 2, 3, 7, 8, 9]],
+    ['[data-attribute|=&quot;WebKit&quot; i]', [1, 2, 3, 7, 8, 9]],
+    ['[data-attribute|=&quot;WebKit&quot; I]', [1, 2, 3, 7, 8, 9]],
+    ['[data-attribute|=WebKit i  ]', [1, 2, 3, 7, 8, 9]],
+    ['[data-attribute|=WebKit I  ]', [1, 2, 3, 7, 8, 9]],
+
+    ['[data-attribute^=WebKit]', [1, 4, 7]],
+
+    ['[data-attribute^=WebKit i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKit I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=&quot;WebKit&quot; i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=&quot;WebKit&quot; I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKit i  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKit I  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+
+    ['[data-attribute^=WebKi i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKi I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=&quot;WebKi&quot; i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=&quot;WebKi&quot; I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKi i  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute^=WebKi I  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+
+    ['[data-attribute$=WebKit]', [1, 11, 12]],
+
+    ['[data-attribute$=WebKit i]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=WebKit I]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=&quot;WebKit&quot; i]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=&quot;WebKit&quot; I]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=WebKit i  ]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=WebKit I  ]', [1, 2, 3, 10, 11, 12]],
+
+    ['[data-attribute$=ebKit i]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=ebKit I]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=&quot;ebKit&quot; i]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=&quot;ebKit&quot; I]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=ebKit i  ]', [1, 2, 3, 10, 11, 12]],
+    ['[data-attribute$=ebKit I  ]', [1, 2, 3, 10, 11, 12]],
+
+    ['[data-attribute*=WebKit]', [1, 4, 7, 11, 12]],
+
+    ['[data-attribute*=WebKit i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute*=WebKit I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute*=&quot;WebKit&quot; i]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute*=&quot;WebKit&quot; I]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute*=WebKit i  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+    ['[data-attribute*=WebKit I  ]', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]],
+];
+
+for (var testCase of testCases) {
+    testSelector(testCase[0], testCase[1]);
+}
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributematchingstyleattributeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute-expected.txt        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+Test attribute matching with the case insensitive flag used to match the style attribute.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Initial state.
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length is 2
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[0].id is &quot;target-with-renderer&quot;
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[1].id is &quot;target-without-renderer&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+
+Let's change the background color to something else than purple.
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length is 0
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;color&quot;] is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;color&quot;] is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(255, 0, 0)&quot;
+
+Back to purple.
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length is 2
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[0].id is &quot;target-with-renderer&quot;
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[1].id is &quot;target-without-renderer&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+
+Remove the style attribute entirely.
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length is 0
+
+Back to purple.
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length is 2
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[0].id is &quot;target-with-renderer&quot;
+PASS document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[1].id is &quot;target-without-renderer&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;color&quot;] is &quot;rgb(255, 0, 0)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+PASS getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;background-color&quot;] is &quot;rgb(128, 0, 128)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributematchingstyleattributehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute.html                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-matching-style-attribute.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,84 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style id=&quot;style&quot;&gt;
+    * {
+        color: black;
+    }
+    [style*=&quot;PURPLE&quot; i] {
+        color: red;
+    }
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;div id=&quot;test-root-with-renderer&quot;&gt;
+        &lt;div id=&quot;target-with-renderer&quot; style=&quot;background-color: purple;&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+
+    &lt;div style=&quot;display:none&quot;&gt;
+        &lt;div id=&quot;target-without-renderer&quot;style=&quot;background-color: purple;&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Test attribute matching with the case insensitive flag used to match the style attribute.');
+
+function testStyle(expectedValues) {
+    for (var key in expectedValues) {
+        shouldBeEqualToString('getComputedStyle(document.getElementById(&quot;target-with-renderer&quot;))[&quot;' + key + '&quot;]', expectedValues[key]);
+        shouldBeEqualToString('getComputedStyle(document.getElementById(&quot;target-without-renderer&quot;))[&quot;' + key + '&quot;]', expectedValues[key]);
+    }
+}
+
+function testQuerySelector(expectMatch) {
+    if (expectMatch) {
+        shouldBe('document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length', '2');
+        shouldBeEqualToString('document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[0].id', 'target-with-renderer');
+        shouldBeEqualToString('document.querySelectorAll(&quot;[style*=PURPLE i]&quot;)[1].id', 'target-without-renderer');
+    } else {
+        shouldBe('document.querySelectorAll(&quot;[style*=PURPLE i]&quot;).length', '0');
+    }
+}
+
+function test(expectMatch, expectedValues) {
+    testQuerySelector(expectMatch);
+    testStyle(expectedValues);
+}
+
+// Force a layout.
+var sideEffect = document.body.offsetTop;
+
+
+debug(&quot;Initial state.&quot;);
+test(true, {color: &quot;rgb(255, 0, 0)&quot;, &quot;background-color&quot;: &quot;rgb(128, 0, 128)&quot;});
+
+document.getElementById('test-root-with-renderer').style.display = &quot;None&quot;;
+debug(&quot;&quot;);
+
+debug(&quot;Let's change the background color to something else than purple.&quot;);
+var targetWithRenderer = document.getElementById('target-with-renderer');
+var targetWithoutRenderer = document.getElementById('target-without-renderer');
+targetWithRenderer.style.backgroundColor = 'red';
+targetWithoutRenderer.style.backgroundColor = 'red';
+test(false, {color: &quot;rgb(0, 0, 0)&quot;, &quot;background-color&quot;: &quot;rgb(255, 0, 0)&quot;});
+debug(&quot;&quot;);
+
+debug(&quot;Back to purple.&quot;);
+targetWithRenderer.style.backgroundColor = 'purple';
+targetWithoutRenderer.style.backgroundColor = 'purple';
+test(true, {color: &quot;rgb(255, 0, 0)&quot;, &quot;background-color&quot;: &quot;rgb(128, 0, 128)&quot;});
+debug(&quot;&quot;);
+
+debug(&quot;Remove the style attribute entirely.&quot;);
+targetWithRenderer.removeAttribute('style');
+targetWithoutRenderer.removeAttribute('style');
+test(false, {});
+debug(&quot;&quot;);
+
+debug(&quot;Back to purple.&quot;);
+targetWithRenderer.style.backgroundColor = 'purple';
+targetWithoutRenderer.style.backgroundColor = 'purple';
+test(true, {color: &quot;rgb(255, 0, 0)&quot;, &quot;background-color&quot;: &quot;rgb(128, 0, 128)&quot;});
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributestyleupdateexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update-expected.txt (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update-expected.txt        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+Test the basic cases of style update when matching attribute values with the case-insensitive flag.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Initial state.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 0
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+Adding the attribute without value.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 0
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+Setting the value to &quot;matched&quot;.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 2
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+Setting the value to &quot;not&quot;.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 0
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+Setting the value to &quot;Matched&quot;.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 2
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+Setting the value of an unrelated attribute to &quot;Matched&quot;.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 2
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+Remove the data-webkit attribute.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 0
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+Setting the value to &quot;MATCHED&quot;.
+PASS document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length is 2
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor is &quot;rgb(1, 2, 3)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributestyleupdatehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update.html                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-style-update.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+* {
+    background-color: rgb(255, 255, 255);
+}
+[data-webkit='Matched' i] {
+    background-color: rgb(1, 2, 3);
+}
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;div&gt;
+        &lt;!-- With renderer --&gt;
+        &lt;target&gt;&lt;/target&gt;
+    &lt;/div&gt;
+    &lt;div style=&quot;display:none;&quot;&gt;
+        &lt;!-- Without renderer --&gt;
+        &lt;target&gt;&lt;/target&gt;
+    &lt;/div&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Test the basic cases of style update when matching attribute values with the case-insensitive flag.');
+
+function testState(shouldMatch) {
+    shouldBe('document.querySelectorAll(&quot;[data-webkit=Matched i]&quot;).length', shouldMatch ? '2' : '0');
+    shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;target&quot;)[0]).backgroundColor', shouldMatch ? 'rgb(1, 2, 3)' : 'rgb(255, 255, 255)');
+    shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;target&quot;)[1]).backgroundColor', shouldMatch ? 'rgb(1, 2, 3)' : 'rgb(255, 255, 255)');
+}
+
+function setAttribute(attribute, value) {
+    var allTargets = document.querySelectorAll(&quot;target&quot;);
+    for (var i = 0; i &lt; allTargets.length; ++i)
+        allTargets[i].setAttribute(attribute, value);
+}
+
+function removeAttribute(attribute) {
+    var allTargets = document.querySelectorAll(&quot;target&quot;);
+    for (var i = 0; i &lt; allTargets.length; ++i)
+        allTargets[i].removeAttribute(attribute);
+}
+
+
+debug(&quot;Initial state.&quot;);
+testState(false);
+
+debug(&quot;Adding the attribute without value.&quot;);
+setAttribute('data-webkit', '');
+testState(false);
+
+debug(&quot;Setting the value to \&quot;matched\&quot;.&quot;);
+setAttribute('data-webkit', 'matched');
+testState(true);
+
+
+debug(&quot;Setting the value to \&quot;not\&quot;.&quot;);
+setAttribute('data-webkit', 'not');
+testState(false);
+
+debug(&quot;Setting the value to \&quot;Matched\&quot;.&quot;);
+setAttribute('data-webkit', 'Matched');
+testState(true);
+
+debug(&quot;Setting the value of an unrelated attribute to \&quot;Matched\&quot;.&quot;);
+setAttribute('data-foobar', 'Matched');
+testState(true);
+
+debug(&quot;Remove the data-webkit attribute.&quot;);
+removeAttribute('data-webkit');
+testState(false);
+
+debug(&quot;Setting the value to \&quot;MATCHED\&quot;.&quot;);
+setAttribute('data-webkit', 'Matched');
+testState(true);
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributewithcasesensitivenameexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name-expected.txt        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+Case insensitive value matching does not affect the name matching in any way. This test checks the attribute name is check case-sensitively regardless of the case-insensitive flag for the value.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS document.querySelectorAll(&quot;div[id^=target i]&quot;).length is 4
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[0]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[0]).color is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[0]).borderTopColor is &quot;rgb(7, 8, 9)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[1]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[1]).color is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[1]).borderTopColor is &quot;rgb(7, 8, 9)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[2]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[2]).color is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[2]).borderTopColor is &quot;rgb(7, 8, 9)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[3]).backgroundColor is &quot;rgb(255, 255, 255)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[3]).color is &quot;rgb(0, 0, 0)&quot;
+PASS getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[3]).borderTopColor is &quot;rgb(7, 8, 9)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastselectorscaseinsensitiveattributewithcasesensitivenamehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html (0 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html                                (rev 0)
+++ trunk/LayoutTests/fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -0,0 +1,69 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+* {
+    background-color: rgb(255, 255, 255);
+    color: rgb(0, 0, 0);
+    border-top-color: rgb(0, 0, 0);
+}
+[*|data-webkit='one' i] {
+    background-color: rgb(1, 2, 3);
+}
+[*|data-webkit='two' i] {
+    color: rgb(4, 5, 6);
+}
+[*|data-webkit='three' i] {
+    border-top-color: rgb(7, 8, 9);
+}
+
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;div&gt;
+        &lt;!-- With renderer --&gt;
+        &lt;div id=&quot;target1&quot;&gt;&lt;/div&gt;
+        &lt;div id=&quot;target2&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+    &lt;div style=&quot;display:none;&quot;&gt;
+        &lt;!-- Without renderer --&gt;
+        &lt;div id=&quot;target3&quot;&gt;&lt;/div&gt;
+        &lt;div id=&quot;target4&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/body&gt;
+&lt;script&gt;
+description('Case insensitive value matching does not affect the name matching in any way. This test checks the attribute name is check case-sensitively regardless of the case-insensitive flag for the value.');
+
+function setupAttributes(element) {
+    element.setAttributeNS('', 'data-WebKit', 'one');
+    element.setAttributeNS('', 'data-WEBKIT', 'two');
+    element.setAttributeNS('', 'data-webkit', 'three');
+}
+function setupAttributesWithNamespace(element) {
+    element.setAttributeNS('http://www.webkit.org', 'data-WebKit', 'one');
+    element.setAttributeNS('http://www.webkit.org', 'data-WEBKIT', 'two');
+    element.setAttributeNS('http://www.webkit.org', 'data-webkit', 'three');
+}
+
+var target1 = document.getElementById('target1');
+setupAttributes(target1);
+var target2 = document.getElementById('target2');
+setupAttributesWithNamespace(target2);
+
+var target3 = document.getElementById('target3');
+setupAttributes(target3);
+var target4 = document.getElementById('target4');
+setupAttributesWithNamespace(target4);
+
+shouldBe('document.querySelectorAll(&quot;div[id^=target i]&quot;).length', '4');
+for (var i = 0; i &lt; 4; ++i) {
+    shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[' + i + ']).backgroundColor', 'rgb(255, 255, 255)');
+    shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[' + i + ']).color', 'rgb(0, 0, 0)');
+    shouldBeEqualToString('getComputedStyle(document.querySelectorAll(&quot;div[id^=target i]&quot;)[' + i + ']).borderTopColor', 'rgb(7, 8, 9)');
+}
+
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (180122 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-02-15 05:31:53 UTC (rev 180122)
+++ trunk/Source/WebCore/ChangeLog        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -1,3 +1,36 @@
</span><ins>+2015-02-14  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Add the initial matching implementation for attribute selectors with case-insensitive value
+        https://bugs.webkit.org/show_bug.cgi?id=141615
+
+        Reviewed by Andreas Kling.
+
+        Tests: fast/css/case-insensitive-attribute-selector-specificity.html
+               fast/css/case-insensitive-attribute-selector-styling-html-1.html
+               fast/css/case-insensitive-attribute-selector-styling-html-2.html
+               fast/css/case-insensitive-attribute-selector-styling-html-3.html
+               fast/css/case-insensitive-attribute-selector-styling-xhtml-1.xhtml
+               fast/css/case-insensitive-attribute-selector-styling-xhtml-2.xhtml
+               fast/css/case-insensitive-attribute-selector-styling-xhtml-3.xhtml
+               fast/selectors/case-insensitive-attribute-bascis.html
+               fast/selectors/case-insensitive-attribute-matching-style-attribute.html
+               fast/selectors/case-insensitive-attribute-style-update.html
+               fast/selectors/case-insensitive-attribute-with-case-sensitive-name.html
+
+        * css/SelectorChecker.cpp:
+        (WebCore::SelectorChecker::checkOne):
+        We already had case-insensitive value matching due to some legacy HTML
+        behaviors where some attribute values would be matched case-insensitively
+        depending on the attribute name.
+
+        For this patch, I just re-use the same mechanism. I used branches to try
+        to convey the idea that matching is case sensitive by default unless
+        the selector has a flag or we are in the weird HTML exception.
+
+        * cssjit/SelectorCompiler.cpp:
+        (WebCore::SelectorCompiler::constructFragmentsInternal):
+        Disable that case in the CSS JIT for now, I'll implement it later.
+
</ins><span class="cx"> 2015-02-14  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Declare soft-linked functions with extern &quot;C&quot; linkage
</span></span></pre></div>
<a id="trunkSourceWebCorecssSelectorCheckercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SelectorChecker.cpp (180122 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SelectorChecker.cpp        2015-02-15 05:31:53 UTC (rev 180122)
+++ trunk/Source/WebCore/css/SelectorChecker.cpp        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -581,7 +581,11 @@
</span><span class="cx">             return false;
</span><span class="cx"> 
</span><span class="cx">         const QualifiedName&amp; attr = selector-&gt;attribute();
</span><del>-        bool caseSensitive = !(m_documentIsHTML &amp;&amp; element-&gt;isHTMLElement()) || HTMLDocument::isCaseSensitiveAttribute(attr);
</del><ins>+        bool caseSensitive = true;
+        if (selector-&gt;attributeValueMatchingIsCaseInsensitive())
+            caseSensitive = false;
+        else if (m_documentIsHTML &amp;&amp; element-&gt;isHTMLElement() &amp;&amp; !HTMLDocument::isCaseSensitiveAttribute(attr))
+            caseSensitive = false;
</ins><span class="cx"> 
</span><span class="cx">         return anyAttributeMatches(element, selector, attr, caseSensitive);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorecssjitSelectorCompilercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/cssjit/SelectorCompiler.cpp (180122 => 180123)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/cssjit/SelectorCompiler.cpp        2015-02-15 05:31:53 UTC (rev 180122)
+++ trunk/Source/WebCore/cssjit/SelectorCompiler.cpp        2015-02-15 06:11:51 UTC (rev 180123)
</span><span class="lines">@@ -999,6 +999,8 @@
</span><span class="cx">             FALLTHROUGH;
</span><span class="cx">         case CSSSelector::Exact:
</span><span class="cx">         case CSSSelector::Hyphen:
</span><ins>+            if (selector-&gt;attributeValueMatchingIsCaseInsensitive())
+                return FunctionType::CannotCompile;
</ins><span class="cx">             fragment-&gt;onlyMatchesLinksInQuirksMode = false;
</span><span class="cx">             fragment-&gt;attributes.append(AttributeMatchingInfo(selector, HTMLDocument::isCaseSensitiveAttribute(selector-&gt;attribute())));
</span><span class="cx">             break;
</span></span></pre>
</div>
</div>

</body>
</html>