<!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 <benjamin@webkit.org>
+
+ 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 <pecoraro@apple.com>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ /* 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
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test the specificity of the case-insensitive attribute selector. If the test pass, each line should be styled as described by its text.</p>
+ <p>Black text, white background, no border.</p>
+ <p style="background-color: lime; color: blue; font-weight: bold; border: 15px solid red;">Green background, bold blue text, solid red border.</p>
+ <p style="background-color: lime; color: blue; font-weight: bold; lime; border: 3px dashed orange;">Green background, bold blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; font-weight: bold; border: 15px solid red;">Green background, bold blue text, solid red border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ /* 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="rocks" i] {
+ background-color: lime;
+ border: 15px solid red;
+ padding: 25px;
+ font-weight: bold;
+ }
+
+ /* Specificity of (0, 1, 0). */
+ [data-webkit="rocks"] {
+ 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;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test the specificity of the case-insensitive attribute selector. If the test pass, each line should be styled as described by its text.</p>
+ <p data-webkit>Black text, white background, no border.</p>
+ <p class="target" data-webkit="ROCKS">Green background, bold blue text, solid red border.</p>
+ <p class="target" data-webkit="rocks">Green background, bold blue text, dashed orange border.</p>
+ <p class="target" data-webkit="Rocks">Green background, bold blue text, solid red border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: red; color: blue;">Red background, blue text, no border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lime; color: red; border: 2px solid purple; font-weight: bold;">Green background, red text, solid purple border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ 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="ROCKS!" i] {
+ color: white;
+ }
+ [data-webkit="rocks!"] {
+ color: red;
+ font-weight: bold;
+ }
+
+ [data-webkit^="RO" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit^="ro"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit>Red background, blue text, no border.</p>
+ <p data-webkit="ROCKS!">Green background, white text, dashed orange border.</p>
+ <p data-webkit="rocks!">Green background, red text, solid purple border.</p>
+ <p data-webkit="Rocks!">Green background, white text, dashed orange border.</p>
+
+ <p data-webkit="ROCKS">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="rocks">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Rocks">Green background, blue text, dashed orange border.</p>
+
+ <p data-webkit="roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Roar">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="ROAR">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: white;">Light grey background, white text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ 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$="CKS!" i] {
+ color: white;
+ }
+ [data-webkit$="cks!"] {
+ color: red;
+ }
+
+ [data-webkit*="oa" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit*="oa"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit>Light grey background, blue text, no border.</p>
+ <p data-webkit="ROCKS!">Light grey background, white text, no border.</p>
+ <p data-webkit="rocks!">Light grey background, red text, no border.</p>
+ <p data-webkit="Rocks!">Light grey background, red text, no border.</p>
+
+ <p data-webkit="ROCKS">Light grey background, blue text, no border.</p>
+ <p data-webkit="rocks">Light grey background, blue text, no border.</p>
+ <p data-webkit="Rocks">Light grey background, blue text, no border.</p>
+
+ <p data-webkit="roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="ROAR">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: white;">Light grey background, white text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lime; color: red; border: 2px solid purple;">Green background, red text, solid purple border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ 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~="is" i] {
+ color: white;
+ }
+ [data-webkit~="is"] {
+ color: red;
+ }
+
+ [data-webkit|="is" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit|="is"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit>Light grey background, blue text, no border.</p>
+ <p data-webkit="is fast">Light grey background, red text, no border.</p>
+ <p data-webkit="IS fast">Light grey background, white text, no border.</p>
+ <p data-webkit="IS fast is FAST">Light grey background, red text, no border.</p>
+ <p data-webkit="is FAST">Light grey background, red text, no border.</p>
+ <p data-webkit="is">Green background, red text, solid purple border.</p>
+ <p data-webkit="IS">Green background, white text, dashed orange border.</p>
+ <p data-webkit="Is">Green background, white text, dashed orange border.</p>
+ <p data-webkit="Fast">Light grey background, blue text, no border.</p>
+ <p data-webkit="fast">Light grey background, blue text, no border.</p>
+ <p data-webkit="FAST">Light grey background, blue text, no border.</p>
+ <p data-webkit="is-Fast">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Is-Fast">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="Is-fast">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="is-Fast Is-Fast">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Is-fast Is-Fast">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: red; color: blue;">Red background, blue text, no border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lime; color: red; border: 2px solid purple; font-weight: bold;">Green background, red text, solid purple border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style>
+ 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="ROCKS!" i] {
+ color: white;
+ }
+ [data-webkit="rocks!"] {
+ color: red;
+ font-weight: bold;
+ }
+
+ [data-webkit^="RO" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit^="ro"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit="">Red background, blue text, no border.</p>
+ <p data-webkit="ROCKS!">Green background, white text, dashed orange border.</p>
+ <p data-webkit="rocks!">Green background, red text, solid purple border.</p>
+ <p data-webkit="Rocks!">Green background, white text, dashed orange border.</p>
+
+ <p data-webkit="ROCKS">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="rocks">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Rocks">Green background, blue text, dashed orange border.</p>
+
+ <p data-webkit="roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Roar">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="ROAR">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: white;">Light grey background, white text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style>
+ 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$="CKS!" i] {
+ color: white;
+ }
+ [data-webkit$="cks!"] {
+ color: red;
+ }
+
+ [data-webkit*="oa" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit*="oa"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit="">Light grey background, blue text, no border.</p>
+ <p data-webkit="ROCKS!">Light grey background, white text, no border.</p>
+ <p data-webkit="rocks!">Light grey background, red text, no border.</p>
+ <p data-webkit="Rocks!">Light grey background, red text, no border.</p>
+
+ <p data-webkit="ROCKS">Light grey background, blue text, no border.</p>
+ <p data-webkit="rocks">Light grey background, blue text, no border.</p>
+ <p data-webkit="Rocks">Light grey background, blue text, no border.</p>
+
+ <p data-webkit="roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Roar">Green background, blue text, solid purple border.</p>
+ <p data-webkit="ROAR">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!doctype html>
+<html>
+ <head>
+ <style>
+ p { /* Ref-test must fix into 800*600, keep the margins small. */
+ margin: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: white;">Light grey background, white text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lightgrey; color: red;">Light grey background, red text, no border.</p>
+ <p style="background-color: lime; color: red; border: 2px solid purple;">Green background, red text, solid purple border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lime; color: white; border: 5px dashed orange;">Green background, white text, dashed orange border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lightgrey; color: blue;">Light grey background, blue text, no border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ <p style="background-color: lime; color: blue; border: 2px solid purple;">Green background, blue text, solid purple border.</p>
+ <p style="background-color: lime; color: blue; border: 5px dashed orange;">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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>+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style>
+ 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~="is" i] {
+ color: white;
+ }
+ [data-webkit~="is"] {
+ color: red;
+ }
+
+ [data-webkit|="is" i] {
+ border: 5px dashed orange;
+ background-color: lime;
+ }
+ [data-webkit|="is"] {
+ border: 2px solid purple;
+ }
+
+ /* This rule is invalid. */
+ [data-webkit i] {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>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.</p>
+ <p data-webkit="">Light grey background, blue text, no border.</p>
+ <p data-webkit="is fast">Light grey background, red text, no border.</p>
+ <p data-webkit="IS fast">Light grey background, white text, no border.</p>
+ <p data-webkit="IS fast is FAST">Light grey background, red text, no border.</p>
+ <p data-webkit="is FAST">Light grey background, red text, no border.</p>
+ <p data-webkit="is">Green background, red text, solid purple border.</p>
+ <p data-webkit="IS">Green background, white text, dashed orange border.</p>
+ <p data-webkit="Is">Green background, white text, dashed orange border.</p>
+ <p data-webkit="Fast">Light grey background, blue text, no border.</p>
+ <p data-webkit="fast">Light grey background, blue text, no border.</p>
+ <p data-webkit="FAST">Light grey background, blue text, no border.</p>
+ <p data-webkit="is-Fast">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Is-Fast">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="Is-fast">Green background, blue text, dashed orange border.</p>
+ <p data-webkit="is-Fast Is-Fast">Green background, blue text, solid purple border.</p>
+ <p data-webkit="Is-fast Is-Fast">Green background, blue text, dashed orange border.</p>
+ </body>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Testing "[data-attribute=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit]').length is 1
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit]')[0].id is "target1"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" i]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" i]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" I]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute="WebKit" I]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i ]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit i ]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I ]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute=WebKit I ]')[2].id is "target3"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute~=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]').length is 4
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[1].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[2].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit]')[3].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" i]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~="WebKit" I]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit i ]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute~=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]').length is 9
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[6].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[7].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute~=WebKit I ]')[8].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute|=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]').length is 2
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit]')[1].id is "target7"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" i]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|="WebKit" I]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit i ]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute|=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[3].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[4].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute|=WebKit I ]')[5].id is "target9"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute^=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[1].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit]')[2].id is "target7"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(255, 0, 0)"
+
+Testing "[data-attribute^=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKit" I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit i ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKit I ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKi i]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKi I]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^="WebKi" i]"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^="WebKi" I]"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^="WebKi" I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKi i ]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi i ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute^=WebKi I ]"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute^=WebKi I ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]').length is 3
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[1].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit]')[2].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" i]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$="WebKit" I]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit i ]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=WebKit I ]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=ebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=ebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$="ebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" i]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$="ebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$="ebKit" I]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=ebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit i ]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute$=ebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]').length is 6
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[3].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[4].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute$=ebKit I ]')[5].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*=WebKit]"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]').length is 5
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[1].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[2].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[3].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit]')[4].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*=WebKit i]"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*=WebKit I]"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*="WebKit" i]"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" i]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*="WebKit" I]"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*="WebKit" I]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*=WebKit i ]"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit i ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+Testing "[data-attribute*=WebKit I ]"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]').length is 12
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[0].id is "target1"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[1].id is "target2"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[2].id is "target3"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[3].id is "target4"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[4].id is "target5"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[5].id is "target6"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[6].id is "target7"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[7].id is "target8"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[8].id is "target9"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[9].id is "target10"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[10].id is "target11"
+PASS document.querySelectorAll('#test-root [data-attribute*=WebKit I ]')[11].id is "target12"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[0]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[1]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[2]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[3]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[4]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[5]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[6]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[7]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[8]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[9]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[10]).backgroundColor is "rgb(10, 100, 200)"
+PASS getComputedStyle(document.querySelectorAll("#test-root *")[11]).backgroundColor is "rgb(10, 100, 200)"
+
+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>+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+<style>
+#test-root * {
+ background-color: red;
+}
+</style>
+<style id="style">
+</style>
+</head>
+<body>
+ <div style="display:none" id="test-root">
+ <div data-attribute="WebKit" id="target1"></div>
+ <div data-attribute="webkit" id="target2"></div>
+ <div data-attribute="WEBKIT" id="target3"></div>
+ <div data-attribute="WebKit rocks" id="target4"></div>
+ <div data-attribute="webkit Rocks" id="target5"></div>
+ <div data-attribute="WEBKIT ROCKS" id="target6"></div>
+ <div data-attribute="WebKit-rocks" id="target7"></div>
+ <div data-attribute="webkit-Rocks" id="target8"></div>
+ <div data-attribute="WEBKIT-ROCKS" id="target9"></div>
+ <div data-attribute="WEBKIT webkit" id="target10"></div>
+ <div data-attribute="WEBKIT WebKit" id="target11"></div>
+ <div data-attribute="webkit WebKit" id="target12"></div>
+ </div>
+</body>
+<script>
+description('Check the basic features of attribute matching with the case insensitive flag (e.g. [foo=bar i]).');
+
+function testQuerySelector(selector, expectedIds) {
+ shouldBe("document.querySelectorAll('" + selector + "').length", '' + expectedIds.length);
+ for (var i = 0; i < expectedIds.length; ++i)
+ shouldBeEqualToString("document.querySelectorAll('" + selector + "')[" + i + "].id", 'target' + expectedIds[i]);
+}
+
+function testStyling(selector, expectedIds) {
+ var stylingElement = document.getElementById("style");
+ stylingElement.innerHTML = '' + selector + ' { background-color: rgb(10, 100, 200); }';
+
+ var allTestCases = document.querySelectorAll("#test-root *");
+ for (var i = 0; i < allTestCases.length; ++i) {
+ var expectMatch = expectedIds.indexOf(parseInt(allTestCases[i].id.replace('target', ''))) >= 0;
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("#test-root *")[' + i + ']).backgroundColor', expectMatch ? 'rgb(10, 100, 200)' : 'rgb(255, 0, 0)');
+ }
+
+ stylingElement.innerHTML = '';
+}
+
+function testSelector(selector, expectedIds) {
+ debug("Testing \"" + selector + "\"");
+ testQuerySelector("#test-root " + selector, expectedIds);
+ testStyling("#test-root " + selector, expectedIds);
+ debug("");
+}
+
+var testCases = [
+ ['[data-attribute=WebKit]', [1]],
+
+ ['[data-attribute=WebKit i]', [1, 2, 3]],
+ ['[data-attribute=WebKit I]', [1, 2, 3]],
+ ['[data-attribute="WebKit" i]', [1, 2, 3]],
+ ['[data-attribute="WebKit" 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~="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 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|="WebKit" 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 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^="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^=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^="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^=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$="WebKit" 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$=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$="ebKit" 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$=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*="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*=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]);
+}
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Initial state.
+PASS document.querySelectorAll("[style*=PURPLE i]").length is 2
+PASS document.querySelectorAll("[style*=PURPLE i]")[0].id is "target-with-renderer"
+PASS document.querySelectorAll("[style*=PURPLE i]")[1].id is "target-without-renderer"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["background-color"] is "rgb(128, 0, 128)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["background-color"] is "rgb(128, 0, 128)"
+
+Let's change the background color to something else than purple.
+PASS document.querySelectorAll("[style*=PURPLE i]").length is 0
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["color"] is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["color"] is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["background-color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["background-color"] is "rgb(255, 0, 0)"
+
+Back to purple.
+PASS document.querySelectorAll("[style*=PURPLE i]").length is 2
+PASS document.querySelectorAll("[style*=PURPLE i]")[0].id is "target-with-renderer"
+PASS document.querySelectorAll("[style*=PURPLE i]")[1].id is "target-without-renderer"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["background-color"] is "rgb(128, 0, 128)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["background-color"] is "rgb(128, 0, 128)"
+
+Remove the style attribute entirely.
+PASS document.querySelectorAll("[style*=PURPLE i]").length is 0
+
+Back to purple.
+PASS document.querySelectorAll("[style*=PURPLE i]").length is 2
+PASS document.querySelectorAll("[style*=PURPLE i]")[0].id is "target-with-renderer"
+PASS document.querySelectorAll("[style*=PURPLE i]")[1].id is "target-without-renderer"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["color"] is "rgb(255, 0, 0)"
+PASS getComputedStyle(document.getElementById("target-with-renderer"))["background-color"] is "rgb(128, 0, 128)"
+PASS getComputedStyle(document.getElementById("target-without-renderer"))["background-color"] is "rgb(128, 0, 128)"
+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>+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test-pre.js"></script>
+<style id="style">
+ * {
+ color: black;
+ }
+ [style*="PURPLE" i] {
+ color: red;
+ }
+</style>
+</head>
+<body>
+ <div id="test-root-with-renderer">
+ <div id="target-with-renderer" style="background-color: purple;"></div>
+ </div>
+
+ <div style="display:none">
+ <div id="target-without-renderer"style="background-color: purple;"></div>
+ </div>
+</body>
+<script>
+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("target-with-renderer"))["' + key + '"]', expectedValues[key]);
+ shouldBeEqualToString('getComputedStyle(document.getElementById("target-without-renderer"))["' + key + '"]', expectedValues[key]);
+ }
+}
+
+function testQuerySelector(expectMatch) {
+ if (expectMatch) {
+ shouldBe('document.querySelectorAll("[style*=PURPLE i]").length', '2');
+ shouldBeEqualToString('document.querySelectorAll("[style*=PURPLE i]")[0].id', 'target-with-renderer');
+ shouldBeEqualToString('document.querySelectorAll("[style*=PURPLE i]")[1].id', 'target-without-renderer');
+ } else {
+ shouldBe('document.querySelectorAll("[style*=PURPLE i]").length', '0');
+ }
+}
+
+function test(expectMatch, expectedValues) {
+ testQuerySelector(expectMatch);
+ testStyle(expectedValues);
+}
+
+// Force a layout.
+var sideEffect = document.body.offsetTop;
+
+
+debug("Initial state.");
+test(true, {color: "rgb(255, 0, 0)", "background-color": "rgb(128, 0, 128)"});
+
+document.getElementById('test-root-with-renderer').style.display = "None";
+debug("");
+
+debug("Let's change the background color to something else than purple.");
+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: "rgb(0, 0, 0)", "background-color": "rgb(255, 0, 0)"});
+debug("");
+
+debug("Back to purple.");
+targetWithRenderer.style.backgroundColor = 'purple';
+targetWithoutRenderer.style.backgroundColor = 'purple';
+test(true, {color: "rgb(255, 0, 0)", "background-color": "rgb(128, 0, 128)"});
+debug("");
+
+debug("Remove the style attribute entirely.");
+targetWithRenderer.removeAttribute('style');
+targetWithoutRenderer.removeAttribute('style');
+test(false, {});
+debug("");
+
+debug("Back to purple.");
+targetWithRenderer.style.backgroundColor = 'purple';
+targetWithoutRenderer.style.backgroundColor = 'purple';
+test(true, {color: "rgb(255, 0, 0)", "background-color": "rgb(128, 0, 128)"});
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+Initial state.
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 0
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(255, 255, 255)"
+Adding the attribute without value.
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 0
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(255, 255, 255)"
+Setting the value to "matched".
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 2
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(1, 2, 3)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(1, 2, 3)"
+Setting the value to "not".
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 0
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(255, 255, 255)"
+Setting the value to "Matched".
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 2
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(1, 2, 3)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(1, 2, 3)"
+Setting the value of an unrelated attribute to "Matched".
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 2
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(1, 2, 3)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(1, 2, 3)"
+Remove the data-webkit attribute.
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 0
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(255, 255, 255)"
+Setting the value to "MATCHED".
+PASS document.querySelectorAll("[data-webkit=Matched i]").length is 2
+PASS getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor is "rgb(1, 2, 3)"
+PASS getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor is "rgb(1, 2, 3)"
+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>+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="../../resources/js-test-pre.js"></script>
+<style>
+* {
+ background-color: rgb(255, 255, 255);
+}
+[data-webkit='Matched' i] {
+ background-color: rgb(1, 2, 3);
+}
+</style>
+</head>
+<body>
+ <div>
+ <!-- With renderer -->
+ <target></target>
+ </div>
+ <div style="display:none;">
+ <!-- Without renderer -->
+ <target></target>
+ </div>
+</body>
+<script>
+description('Test the basic cases of style update when matching attribute values with the case-insensitive flag.');
+
+function testState(shouldMatch) {
+ shouldBe('document.querySelectorAll("[data-webkit=Matched i]").length', shouldMatch ? '2' : '0');
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("target")[0]).backgroundColor', shouldMatch ? 'rgb(1, 2, 3)' : 'rgb(255, 255, 255)');
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("target")[1]).backgroundColor', shouldMatch ? 'rgb(1, 2, 3)' : 'rgb(255, 255, 255)');
+}
+
+function setAttribute(attribute, value) {
+ var allTargets = document.querySelectorAll("target");
+ for (var i = 0; i < allTargets.length; ++i)
+ allTargets[i].setAttribute(attribute, value);
+}
+
+function removeAttribute(attribute) {
+ var allTargets = document.querySelectorAll("target");
+ for (var i = 0; i < allTargets.length; ++i)
+ allTargets[i].removeAttribute(attribute);
+}
+
+
+debug("Initial state.");
+testState(false);
+
+debug("Adding the attribute without value.");
+setAttribute('data-webkit', '');
+testState(false);
+
+debug("Setting the value to \"matched\".");
+setAttribute('data-webkit', 'matched');
+testState(true);
+
+
+debug("Setting the value to \"not\".");
+setAttribute('data-webkit', 'not');
+testState(false);
+
+debug("Setting the value to \"Matched\".");
+setAttribute('data-webkit', 'Matched');
+testState(true);
+
+debug("Setting the value of an unrelated attribute to \"Matched\".");
+setAttribute('data-foobar', 'Matched');
+testState(true);
+
+debug("Remove the data-webkit attribute.");
+removeAttribute('data-webkit');
+testState(false);
+
+debug("Setting the value to \"MATCHED\".");
+setAttribute('data-webkit', 'Matched');
+testState(true);
+
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.querySelectorAll("div[id^=target i]").length is 4
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[0]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[0]).color is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[0]).borderTopColor is "rgb(7, 8, 9)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[1]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[1]).color is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[1]).borderTopColor is "rgb(7, 8, 9)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[2]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[2]).color is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[2]).borderTopColor is "rgb(7, 8, 9)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[3]).backgroundColor is "rgb(255, 255, 255)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[3]).color is "rgb(0, 0, 0)"
+PASS getComputedStyle(document.querySelectorAll("div[id^=target i]")[3]).borderTopColor is "rgb(7, 8, 9)"
+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>+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="../../resources/js-test-pre.js"></script>
+<style>
+* {
+ 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);
+}
+
+</style>
+</head>
+<body>
+ <div>
+ <!-- With renderer -->
+ <div id="target1"></div>
+ <div id="target2"></div>
+ </div>
+ <div style="display:none;">
+ <!-- Without renderer -->
+ <div id="target3"></div>
+ <div id="target4"></div>
+ </div>
+</body>
+<script>
+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("div[id^=target i]").length', '4');
+for (var i = 0; i < 4; ++i) {
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("div[id^=target i]")[' + i + ']).backgroundColor', 'rgb(255, 255, 255)');
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("div[id^=target i]")[' + i + ']).color', 'rgb(0, 0, 0)');
+ shouldBeEqualToString('getComputedStyle(document.querySelectorAll("div[id^=target i]")[' + i + ']).borderTopColor', 'rgb(7, 8, 9)');
+}
+
+</script>
+<script src="../../resources/js-test-post.js"></script>
+</html>
</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 <benjamin@webkit.org>
+
+ 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 <ddkilzer@apple.com>
</span><span class="cx">
</span><span class="cx"> Declare soft-linked functions with extern "C" 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& attr = selector->attribute();
</span><del>- bool caseSensitive = !(m_documentIsHTML && element->isHTMLElement()) || HTMLDocument::isCaseSensitiveAttribute(attr);
</del><ins>+ bool caseSensitive = true;
+ if (selector->attributeValueMatchingIsCaseInsensitive())
+ caseSensitive = false;
+ else if (m_documentIsHTML && element->isHTMLElement() && !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->attributeValueMatchingIsCaseInsensitive())
+ return FunctionType::CannotCompile;
</ins><span class="cx"> fragment->onlyMatchesLinksInQuirksMode = false;
</span><span class="cx"> fragment->attributes.append(AttributeMatchingInfo(selector, HTMLDocument::isCaseSensitiveAttribute(selector->attribute())));
</span><span class="cx"> break;
</span></span></pre>
</div>
</div>
</body>
</html>