Skip to content

Commit

Permalink
Add in references for css/CSS2/selector tests
Browse files Browse the repository at this point in the history
All CSS2/selector tests were missing references. This change adds in references for these tests.
  • Loading branch information
csnardi authored and jgraham committed Mar 25, 2019
1 parent 2eb1f3a commit 69e5802
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 2 deletions.
25 changes: 25 additions & 0 deletions css/CSS2/selector/attribute-value-selector-007-ref.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions css/CSS2/selector/attribute-value-selector-007.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]">
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]">
<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">
Expand Down
25 changes: 25 additions & 0 deletions css/CSS2/selector/attribute-value-selector-008-ref.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions css/CSS2/selector/attribute-value-selector-008.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]"/>
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]"/>
<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[
Expand Down
24 changes: 24 additions & 0 deletions css/CSS2/selector/attribute-value-selector-009-ref.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions css/CSS2/selector/attribute-value-selector-009.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]"/>
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]"/>
<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[
Expand Down
24 changes: 24 additions & 0 deletions css/CSS2/selector/attribute-value-selector-010-ref.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions css/CSS2/selector/attribute-value-selector-010.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]">
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]">
<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">
Expand Down
24 changes: 24 additions & 0 deletions css/CSS2/selector/lang-pseudoclass-001-ref.html
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions css/CSS2/selector/lang-pseudoclass-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]">
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]">
<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">
Expand Down
3 changes: 1 addition & 2 deletions css/CSS2/selector/lang-pseudoclass-002.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Richard Ishida" href="mailto:[email protected]"/>
<link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:[email protected]"/>
<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[
Expand All @@ -24,8 +25,6 @@
<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>
Expand Down

0 comments on commit 69e5802

Please sign in to comment.