Skip to content

Commit

Permalink
Add in additional CSS2/generated-content references (web-platform-tes…
Browse files Browse the repository at this point in the history
…ts#8819)

Many CSS2/generated-content tests were missing references. This change
adds in more references for these tests.
  • Loading branch information
csnardi authored and gsnedders committed Dec 30, 2017
1 parent 9b5cff5 commit a96e455
Show file tree
Hide file tree
Showing 164 changed files with 1,087 additions and 21 deletions.
14 changes: 14 additions & 0 deletions css/CSS2/generated-content/after-inheritable-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: solid;
color: green;
text-align: center;
}
</style>
<body>
<p>Test passes if the words "PASS PASS" below are green and the words are centered within the box below.</p>
<div>PASS PASS</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/after-inheritable-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: Pseudo-element ':after' inherits inheritable values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="after-inheritable-001-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The pseudo-element ':after' generated content inherits any inheritable properties from the element." />
<style type="text/css">
Expand Down
17 changes: 17 additions & 0 deletions css/CSS2/generated-content/after-inheritable-002-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 15px solid blue;
color: green;
}
a {
border-color: orange;
border-style: solid;
}
</style>
<body>
<p>Test passes if the words "PASS PASS" are green, they are contained within an orange box with thinner lines than the blue box.</p>
<div><a>PASS PASS</a></div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/after-inheritable-002.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: Pseudo-element ':after' does not inherit non-inheritable values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="after-inheritable-002-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="Non-inherited properties apply their initial value when applying to ':after'." />
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions css/CSS2/generated-content/after-location-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<body>
<p>Test passes if the words "PASS PASS" appear below and are to the right of the arrow.</p>
<div>--&gt;PASS PASS</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/after-location-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: After applies after text</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="after-location-001-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="After places the generated content after the element content." />
<style type="text/css">
Expand Down
1 change: 1 addition & 0 deletions css/CSS2/generated-content/before-inheritable-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: Pseudo-element ':before' inherits inheritable values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="after-inheritable-001-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The pseudo-element ':before' generated content inherits any inheritable properties from the element." />
<style type="text/css">
Expand Down
1 change: 1 addition & 0 deletions css/CSS2/generated-content/before-inheritable-002.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: Pseudo-element ':before' does not inherit non-inheritable values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="after-inheritable-002-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="Non-inherited properties apply the initial value when applying to ':before'." />
<style type="text/css">
Expand Down
7 changes: 7 additions & 0 deletions css/CSS2/generated-content/before-location-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<body>
<p>Test passes if the words "PASS PASS" appear below and are to the left of the arrow.</p>
<div>PASS PASS&lt;--</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/before-location-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>CSS Test: Before applies before text</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content" />
<link rel="match" href="before-location-001-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="Before places generated content before the element content." />
<style type="text/css">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<body>
<p>The two lines below should be identical:</p>
<p>This sentence should be readable</p>
<p>This sentence should be readable</p>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/bidi-generated-content-001.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<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/generate.html#content"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction"/>
<link rel="match" href="bidi-generated-content-001-ref.html" />
<meta name="assert" content="A right-to-left override should be applied when u+202E is inserted through the content property"/>
<style type="text/css"><![CDATA[
.force:before {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<body>
<p>The two lines below should be identical:</p>
<p>ab c d</p>
<p>ab c d</p>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/bidi-generated-content-002.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<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/visuren.html#direction"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/>
<link rel="match" href="bidi-generated-content-002-ref.html" />
<meta name="flags" content=""/>
<meta name="assert" content="A left-to-right override should be correctly applied when inserted through the content property"/>
<style type="text/css"><![CDATA[
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-005-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a zero "0" in the box below.</p>
<div>0</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-005.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-005-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function as a value." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-006-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a bullet (&#x2022;) in the box below.</p>
<div>&#x2022;</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-006.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-006-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-007-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a bullet (&#x25E6;) in the box below.</p>
<div>&#x25E6;</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-007.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-007-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-009.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-005-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-010-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there are double zeros "00" in the box below.</p>
<div>00</div>
</body>
3 changes: 2 additions & 1 deletion css/CSS2/generated-content/content-010.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-010-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand All @@ -20,7 +21,7 @@
</style>
</head>
<body>
<p>Test passes if there is are double zeros "00" in the box below.</p>
<p>Test passes if there are double zeros "00" in the box below.</p>
<div></div>
</body>
</html>
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-011-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a letter "i" in the box below.</p>
<div>i</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-011.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-011-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-012-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a letter "I" in the box below.</p>
<div>I</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-012.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-012-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-013-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a greek letter "&#x03B1;" in the box below.</p>
<div>&#x03B1;</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-013.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-013-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-014-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a letter "a" in the box below.</p>
<div>a</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-014.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-014-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-015-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a letter "A" in the box below.</p>
<div>A</div>
</body>
1 change: 1 addition & 0 deletions css/CSS2/generated-content/content-015.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-015-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand Down
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-016-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is an Armenian character "&#x0531;" below.</p>
<div>&#x0531;</div>
</body>
3 changes: 2 additions & 1 deletion css/CSS2/generated-content/content-016.xht
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
<link rel="match" href="content-016-ref.html" />
<meta name="flags" content="" />
<meta name="assert" content="The 'content' property properly handles a 'counter()' function with a list-style." />
<style type="text/css">
Expand All @@ -21,7 +22,7 @@
</style>
</head>
<body>
<p>Test passes if there is an Armenian character "&#x0561;" or "&#x0531;" below.</p>
<p>Test passes if there is an Armenian character "&#x0531;" below.</p>
<div></div>
</body>
</html>
13 changes: 13 additions & 0 deletions css/CSS2/generated-content/content-017-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
div {
border: 2px solid black;
height: 30px;
}
</style>
<body>
<p>Test passes if there is a Georgian character "&#x10d0;" in the box below.</p>
<div>&#x10d0;</div>
</body>
Loading

0 comments on commit a96e455

Please sign in to comment.