aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-variables-1_dev/xhtml1print
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/css-tests/css-variables-1_dev/xhtml1print')
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/chapter-3.xht12
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reference/variable-reference-40-ref.xht14
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest-toc.xht8
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest.list1
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/toc.xht2
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1print/variable-reference-40.xht17
6 files changed, 51 insertions, 3 deletions
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/chapter-3.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/chapter-3.xht
index 482b930dfa6..4963837eb6f 100644
--- a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/chapter-3.xht
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/chapter-3.xht
@@ -13,7 +13,7 @@
<body>
<h1>CSS Custom Properties Level 1 CR Test Suite</h1>
- <h2>Using Cascading Variables: the var() notation (78 tests)</h2>
+ <h2>Using Cascading Variables: the var() notation (79 tests)</h2>
<table width="100%">
<col id="test-column"></col>
<col id="refs-column"></col>
@@ -31,7 +31,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s3">+</a>
<a href="http://www.w3.org/TR/css-variables-1/#using-variables">3 Using Cascading Variables: the var() notation</a></th></tr>
- <!-- 73 tests -->
+ <!-- 74 tests -->
<tr id="css-vars-custom-property-case-sensitive-001-3" class="primary">
<td><strong>
<a href="css-vars-custom-property-case-sensitive-001.xht">css-vars-custom-property-case-sensitive-001</a></strong></td>
@@ -358,6 +358,14 @@
<td>Test declaring a non-custom property containing a variable reference with fallback is an implicitly closed URL due to EOF.
</td>
</tr>
+ <tr id="variable-reference-40-3" class="primary">
+ <td><strong>
+ <a href="variable-reference-40.xht">variable-reference-40</a></strong></td>
+ <td><a href="reference/variable-reference-40-ref.xht">=</a> </td>
+ <td></td>
+ <td>Test that a variable reference within a gradient value in a border-image shorthand parses correctly.
+ </td>
+ </tr>
<tr id="variable-supports-01-3" class="primary">
<td><strong>
<a href="variable-supports-01.xht">variable-supports-01</a></strong></td>
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reference/variable-reference-40-ref.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reference/variable-reference-40-ref.xht
new file mode 100644
index 00000000000..e7fa9bf1db5
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reference/variable-reference-40-ref.xht
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+--><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Reftest Reference</title>
+<link href="mailto:cam@mcc.id.au" rel="author" title="Cameron McCormack" />
+<style>
+p {
+ border: 2px solid transparent;
+ border-image: linear-gradient(to right, orange, blue) 1 1;
+}
+</style>
+</head><body><p>This paragraph must have an orange/blue gradient border.</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest-toc.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest-toc.xht
index 1492aa01d4b..53d7aa4b7b5 100644
--- a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest-toc.xht
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest-toc.xht
@@ -872,6 +872,14 @@
<td rowspan="1"></td>
</tr>
</tbody>
+ <tbody id="variable-reference-40" class="">
+ <tr>
+ <td rowspan="1" title="Test that a variable reference within a gradient value in a border-image shorthand parses correctly.">
+ <a href="variable-reference-40.xht">variable-reference-40</a></td>
+ <td><a href="reference/variable-reference-40-ref.xht">=</a> </td>
+ <td rowspan="1"></td>
+ </tr>
+ </tbody>
<tbody id="variable-supports-01" class="">
<tr>
<td rowspan="1" title="Test a passing non-custom property declaration in an @supports rule where the property value contains a variable reference and no white space tokens.">
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest.list b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest.list
index 4e777479d10..5062fadb337 100644
--- a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest.list
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/reftest.list
@@ -105,6 +105,7 @@ variable-reference-36.xht == reference/variable-reference-36-ref.xht
variable-reference-37.xht == reference/variable-reference-37-ref.xht
variable-reference-38.xht == reference/variable-declaration-59-ref.xht
variable-reference-39.xht == support/color-green-ref.xht
+variable-reference-40.xht == reference/variable-reference-40-ref.xht
variable-supports-01.xht == support/color-green-ref.xht
variable-supports-02.xht == support/color-green-ref.xht
variable-supports-03.xht == support/color-green-ref.xht
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/toc.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/toc.xht
index 976a26c32eb..26caf6aebed 100644
--- a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/toc.xht
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/toc.xht
@@ -32,7 +32,7 @@
<tbody id="s3">
<tr><th><a href="chapter-3.xht">Chapter 3 -
Using Cascading Variables: the var() notation</a></th>
- <td>(78 Tests)</td></tr>
+ <td>(79 Tests)</td></tr>
</tbody>
<tbody id="s4">
<tr><th><a href="chapter-4.xht">Chapter 4 -
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/variable-reference-40.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/variable-reference-40.xht
new file mode 100644
index 00000000000..bdd0f19c830
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1print/variable-reference-40.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+--><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: Test that a variable reference within a gradient value in a border-image shorthand parses correctly.</title>
+<link href="mailto:cam@mcc.id.au" rel="author" title="Cameron McCormack" />
+<link href="http://www.w3.org/TR/css-variables-1/#using-variables" rel="help" />
+<link href="reference/variable-reference-40-ref.xht" rel="match" />
+<style>
+p {
+ --orange: orange;
+ border: 2px solid transparent;
+ border-image: linear-gradient(to right, var(--orange), blue) 1 1;
+}
+</style>
+</head><body><p>This paragraph must have an orange/blue gradient border.</p>
+</body></html> \ No newline at end of file