Bug 1541567 [wpt PR 16061] - Rebased CSS2 PRs, a=testonly
authorChris Nardi <christopherncarmel@hotmail.com>
Thu, 18 Apr 2019 11:54:57 +0000
changeset 529908 ade8bfcb3a2ddc8f679616fe7917261590fd09e0
parent 529907 880ac981b63b61a0710988c7fceeb3647117d6de
child 529909 3f1ede9a78c37d212a809f04951ac1ae5c43c3f4
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1541567, 16061
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1541567 [wpt PR 16061] - Rebased CSS2 PRs, a=testonly Automatic update from web-platform-tests Add references for CSS2/sec5 Some CSS2/sec5 tests were missing references. This adds in references for the remaining sec5 tests without references except for first-letter-000.xht. -- Add in references for css/CSS2/selector tests All CSS2/selector tests were missing references. This change adds in references for these tests. -- wpt-commits: 2eb1f3a046ffccef07c831897f262fbcc31ec8e8, 69e5802277ed34ad99092743b4313ab8eec7323e wpt-pr: 16061
testing/web-platform/tests/css/CSS2/sec5/class-000-ref.html
testing/web-platform/tests/css/CSS2/sec5/class-000.xht
testing/web-platform/tests/css/CSS2/sec5/class-001.xht
testing/web-platform/tests/css/CSS2/sec5/class-002-ref.html
testing/web-platform/tests/css/CSS2/sec5/class-002.xht
testing/web-platform/tests/css/CSS2/sec5/first-child-000-ref.html
testing/web-platform/tests/css/CSS2/sec5/first-child-000.xht
testing/web-platform/tests/css/CSS2/sec5/first-child-001.xht
testing/web-platform/tests/css/CSS2/sec5/first-line-000-ref.html
testing/web-platform/tests/css/CSS2/sec5/first-line-000.xht
testing/web-platform/tests/css/CSS2/sec5/id-000.xht
testing/web-platform/tests/css/CSS2/sec5/id-001.xht
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-007-ref.html
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-007.html
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-008-ref.html
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-008.xht
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-009-ref.html
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-009.xht
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-010-ref.html
testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-010.html
testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-001-ref.html
testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-001.html
testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-002.xht
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/sec5/class-000-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    p {
+        color: fuchsia;
+    }
+    div {
+        color: orange;
+    }
+    h4 {
+        color: blue;
+    }
+</style>
+<body>
+    <p>This text should be fuchsia.</p>
+    <div>This text should be orange.</div>
+    <h4>This text should be blue.</h4>
+</body>
--- a/testing/web-platform/tests/css/CSS2/sec5/class-000.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/class-000.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: Class selectors</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+  <link rel="match" href="class-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the elements which have the specified class"/>
 <style type="text/css">
 p.foo {color: fuchsia}
 div.moo {color: orange}
 h4.title {color: blue}
 
 </style>
--- a/testing/web-platform/tests/css/CSS2/sec5/class-001.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/class-001.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: Class selectors with the universal selector</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+  <link rel="match" href="class-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the elements which have the specified class"/>
 <style type="text/css">
 .foo {color: fuchsia}
 .moo {color: orange}
 *.title {color: blue}
 
 </style>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/sec5/class-002-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    p {
+        color: fuchsia;
+    }
+    div {
+        color: fuchsia;
+        border: thin solid;
+    }
+    h4 {
+        color: blue;
+    }
+</style>
+<body>
+    <p>This text should be fuchsia.</p>
+    <div>This text should be fuchsia with a thin fuchsia border.</div>
+    <h4>This text should be blue without any border.</h4>
+</body>
--- a/testing/web-platform/tests/css/CSS2/sec5/class-002.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/class-002.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: Class selectors: Multiple classes</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+  <link rel="match" href="class-002-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the elements which have the specified class or classes"/>
 <style type="text/css">
 .foo {color: fuchsia}
 .foo.moo {border: thin solid;}
 h4.title {color: blue; border: none;}
 
 </style>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/sec5/first-child-000-ref.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    p {
+        color: fuchsia;
+    }
+    div {
+        color: orange;
+    }
+    h4 {
+        color: blue;
+    }
+    .silver {
+        color: silver;
+    }
+</style>
+<body>
+    <p><em>This text should be fuchsia.</em> <span class="silver">Filler text.</span></p>
+    <div>This text should be orange.</div>
+    <p class="silver">Filler text.</p>
+    <h4>This text should be blue. <span class="silver">Filler text.</span></h4>
+</body>
--- a/testing/web-platform/tests/css/CSS2/sec5/first-child-000.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/first-child-000.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: The :first-child pseudo-class</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-child" />
+  <link rel="match" href="first-child-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the element which is the first child of its parent"/>
 <style type="text/css">
 * {color: silver}
 em:first-child {color: fuchsia;}
 div:first-child {color: orange;}
 span:first-child {color: blue}
 </style>
--- a/testing/web-platform/tests/css/CSS2/sec5/first-child-001.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/first-child-001.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: The :first-child pseudo-class with the universal selector</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-child" />
+  <link rel="match" href="first-child-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the element which is the first child of its parent"/>
 <style type="text/css">
 * {color: silver}
 * em:first-child {color: fuchsia}
 div *:first-child {color: orange}
 * > span:first-child {color: blue}
 </style>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/sec5/first-line-000-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    p {
+        color: fuchsia;
+    }
+    span {
+        color: silver;
+    }
+</style>
+<body>
+    <p>The first line of this paragraph should be fuchsia (same as in the next block).<br /><span>Filler text.</span></p>
+    <p>Lorem ipsum dolor.<br /><span>Filler text.</span></p>
+</body>
--- a/testing/web-platform/tests/css/CSS2/sec5/first-line-000.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/first-line-000.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: The :first-line pseudo-element</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+  <link rel="match" href="first-line-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply the rule only to the first line of a block-level element"/>
 <style type="text/css">
 p, div {color: silver}
 p:first-line, div span {color: fuchsia}
 
 </style>
  </head>
--- a/testing/web-platform/tests/css/CSS2/sec5/id-000.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/id-000.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: ID selectors</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+  <link rel="match" href="class-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the elements which have the specified ID"/>
 <style type="text/css">
 p#foo {color: fuchsia}
 div#moo {color: orange}
 h4#title {color: blue}
 
 </style>
--- a/testing/web-platform/tests/css/CSS2/sec5/id-001.xht
+++ b/testing/web-platform/tests/css/CSS2/sec5/id-001.xht
@@ -1,15 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!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>
   <title>CSS Test: Selectors: ID selectors with universal selector</title>
   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+  <link rel="match" href="class-000-ref.html"/>
   <meta name="flags" content="" />
   <meta name="assert" content="Browsers should apply each rule to the elements which have the specified ID"/>
 <style type="text/css">
 #foo {color: fuchsia}
 #moo {color: orange}
 *#title {color: blue}
 
 </style>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-007-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    .green {
+        background-color: green;
+        color: white;
+    }
+</style>
+<body>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <p class="green">This line should be green <em>and this should also be green</em></p>
+
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green<p>This line should NOT be green</p></div>
+    <p>This line should NOT be green <em>and this should not be green either</em></p>
+</body>
--- a/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-007.html
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-007.html
@@ -1,15 +1,16 @@
 <!DOCTYPE html>
 <html>
   <head>
     <title>CSS Test: lang attribute selector - att=val</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+    <link rel="match" href="attribute-value-selector-007-ref.html" />
     <meta name="flags" content="HTMLonly">
     <meta name="assert" content="lang attribute selector with att=val in HTML should not be case sensitive, and should only match when att is exactly val">
     <style type="text/css">
       div[lang = "es"] { color:white;background-color:green; }
       p[lang = "es"] { color:white;background-color:green; }
       div[lang = "en-GB"] { color:white;background-color:green; }
       p[lang = "fr"] { color:white;background-color:green; }
       em[lang = "de"] { color:white;background-color:green; }
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-008-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    .green {
+        background-color: green;
+        color: white;
+    }
+</style>
+<body>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <p class="green">This line should be green <em>and this should also be green</em></p>
+
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green<p>This line should NOT be green</p></div>
+    <p>This line should NOT be green <em>and this should not be green either</em></p>
+</body>
--- a/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-008.xht
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-008.xht
@@ -1,15 +1,16 @@
 <!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>
     <title>CSS Test: attribute selector - att=val</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/>
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors"/>
+    <link rel="match" href="attribute-value-selector-008-ref.html" />
     <meta name="flags" content="nonHTML"/>
     <meta name="assert" content="attribute selector with att=val in XHTML should be case sensitive, and should only match when att is exactly val"/>
     <style type="text/css"><![CDATA[
       div[title="es"] { color:white;background-color:green; }
       p[title="es"] { color:white;background-color:green; }
       div[title="en-GB"] { color:white;background-color:green; }
       p[title="fr"] { color:white;background-color:green; }
       em[title="de"] { color:white;background-color:green; }
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-009-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    .green {
+        background-color: green;
+        color: white;
+    }
+</style>
+<body>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <p class="green">This line should be green <em>and this should be green too</em></p>
+
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green<p>This line should NOT be green</p></div>
+    <p>This line should NOT be green <em>and this should not be green either</em></p>
+</body>
--- a/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-009.xht
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-009.xht
@@ -1,15 +1,16 @@
 <!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>
     <title>CSS Test: lang attribute selector - att |= val</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/>
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors"/>
+    <link rel="match" href="attribute-value-selector-009-ref.html" />
     <meta name="flags" content="nonHTML"/>
     <meta name="assert" content="lang attribute selector with 'att |= val' in XHTML should be case sensitive, and match hyphen-separated list"/>
     <style type="text/css"><![CDATA[
       div[title |= "es"] { color:white;background-color:green; }
       p[title |= "es"] { color:white;background-color:green; }
       div[title |= "en-GB"] { color:white;background-color:green; }
       p[title |= "fr"] { color:white;background-color:green; }
       em[title |= "de"] { color:white;background-color:green; }
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-010-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    .green {
+        background-color: green;
+        color: white;
+    }
+</style>
+<body>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <p class="green">This line should be green <em>and this should be green too</em></p>
+
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green<p>This line should NOT be green</p></div>
+    <p>This line should NOT be green <em>and this should not be green either</em></p>
+</body>
--- a/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-010.html
+++ b/testing/web-platform/tests/css/CSS2/selector/attribute-value-selector-010.html
@@ -1,15 +1,16 @@
 <!DOCTYPE html>
 <html>
   <head>
     <title>CSS Test: lang attribute selector - att |= val</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+    <link rel="match" href="attribute-value-selector-010-ref.html" />
     <meta name="flags" content="HTMLonly">
     <meta name="assert" content="lang attribute selector with 'att |= val' in HTML should not be case sensitive, and match hyphen-separated list">
     <style type="text/css">
       div[lang |= "es"] { color:white;background-color:green; }
       p[lang |= "es"] { color:white;background-color:green; }
       div[lang |= "en-GB"] { color:white;background-color:green; }
       p[lang |= "fr"] { color:white;background-color:green; }
       em[lang |= "de"] { color:white;background-color:green; }
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-001-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference</title>
+<style>
+    .green {
+        background-color: green;
+        color: white;
+    }
+</style>
+<body>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+    <div class="green">This line should be green</div>
+
+    <p class="green">This line should be green <em>and this should be green too</em></p>
+    <div><p class="green">This line should be green</p>This line should NOT be green</div>
+    <p>This line should NOT be green <em class="green">but this should be green</em></p>
+
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+    <div>This line should NOT be green</div>
+</body>
--- a/testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-001.html
+++ b/testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-001.html
@@ -1,15 +1,16 @@
 <!DOCTYPE html>
 <html>
   <head>
     <title>CSS Test: :lang pseudoclass</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang">
+    <link rel="match" href="lang-pseudoclass-001-ref.html" />
     <meta name="flags" content="HTMLonly" >
     <meta name="assert" content=":lang pseudoclass in HTML should not be case-sensitive, and match a substring">
     <style type="text/css">
       div:lang(es) { color:white;background-color:green; }
       p:lang(es) { color:white;background-color:green; }
       p:lang(fr) { color:white;background-color:green; }
       em:lang(de) { color:white;background-color:green; }
       div:lang(en-GB) { color:white;background-color:green; }
--- a/testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-002.xht
+++ b/testing/web-platform/tests/css/CSS2/selector/lang-pseudoclass-002.xht
@@ -1,15 +1,16 @@
 <!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>
     <title>CSS Test: :lang pseudoclass</title>
     <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"/>
     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang"/>
+    <link rel="match" href="lang-pseudoclass-001-ref.html" />
     <meta name="flags" content="nonHTML" />
     <meta name="assert" content=":lang pseudoclass in XHTML should be case sensitive, and match a substring"/>
     <style type="text/css"><![CDATA[
       div:lang(es) { color:white;background-color:green; }
       p:lang(es) { color:white;background-color:green; }
       p:lang(fr) { color:white;background-color:green; }
       em:lang(de) { color:white;background-color:green; }
       div:lang(en-GB) { color:white;background-color:green; }
@@ -19,18 +20,16 @@
 
     <div xml:lang="es">This line should be green</div>
     <div xml:lang="es-MX">This line should be green</div>
     <div xml:lang="ES">This line should be green</div>
 
     <div xml:lang="en-GB">This line should be green</div>
     <div xml:lang="en-GB-scouse">This line should be green</div>
 
-    <div xml:lang="es">This line should be green</div>
-
     <p xml:lang="es">This line should be green <em>and this should be green too</em></p>
 
     <div xml:lang="fr"><p>This line should be green</p>This line should NOT be green</div>
     <p xml:lang="de">This line should NOT be green <em>but this should be green</em></p>
 
     <div xml:lang="en-US">This line should NOT be green</div>
     <div xml:lang="en">This line should NOT be green</div>
     <div xml:lang="MX-es">This line should NOT be green</div>