aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-variables-1_dev/index.htm
blob: 2d1834b4cce27808b9b79f2a9e151e4c3a47d0b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
 <head>
  <title>CSS Custom Properties Level 1 CR Test Suite</title>
  <style type="text/css">
    @import "http://www.w3.org/StyleSheets/TR/base.css";
    @import "indices.css";
  </style>
 </head>
 <body>


  <h1>CSS Custom Properties Level 1 CR Test Suite</h1>
  <dt>Test Coordinator:</dt>
   	<dd>None Yet</dd>
  
  <p>This is a <strong>Development</strong>
     version of the CSS Custom Properties Level 1 CR Test Suite.</p>

   <p>You can provide test data or review the testing results for this test suite:</p>
   <dt><a href="http://test.csswg.org/harness/suite/css-variables-1_dev">Enter Data</a></dt>
   <dt><a href="http://test.csswg.org/harness/review/css-variables-1_dev">Review Results</a></dt>
       

 <p>Some tests in the test suite may contain errors.
   Please check the latest version of the
   <a href="https://www.w3.org/TR/css-variables-1/">CSS Variables 1 specification</a>
   <strong>and its errata</strong>
   before assuming a failure is due to an implementation bug and
   not a test suite bug.</p>


  <p>
  In time we hope to correct all errors and extend this test suite to
  cover all of CSS Variables 1. Your help is welcome in this effort.
  The appropriate mailing list for submitting tests and bug reports is
  <a href="http://lists.w3.org/Archives/Public/public-css-testsuite/">public-css-testsuite@w3.org</a>.
  More information on the contribution process and test guidelines is
  available on the <a href="http://wiki.csswg.org/test">wiki
  page</a>.</p>

 <p>Tests are currently available in these formats:</p>

 <dl>
   <dt><a href="html/toc.htm">HTML 5</a></dt>
     <dd>HTML 5 tests sent as <code>text/html</code></dd>
   <dt><a href="xhtml1/toc.xht">XHTML 1.1</a></dt>
     <dd>XHTML 1.1 tests sent as <code>application/xhtml+xml</code></dd>
   <dt><a href="xhtml1print/toc.xht">XHTML 1.1 for Printers</a></dt>
     <dd>XHTML 1.1 tests with all images converted from PNG to JPEG
       and formatted with headers and footers to ease testing of
       embedded printer software. This is not a canonical format,
       and some tests may fail due to the format conversion that
       would otherwise pass in the above XHTML 1.1 format.</dd>
  </dl>

  
  <p>Unless the test instructions explicitly indicate otherwise,
    any occurrence of red in a test indicates test failure.</p>

<h2 id="implement">Implementation Reports</h2>
  <p>An <a href="implementation-report-TEMPLATE.data">implementation report template</a>
    is available to help with creating implementation reports. See also the
    <a href="http://lists.w3.org/Archives/Public/public-css-testsuite/2010Aug/0020.html">explanation</a>
    of its format.</p>

<h2 id="common">Common Assumptions</h2>

  <p>Most of the test suite makes the following assumptions:</p>
  <ul>
    <li>The X/HTML <code>div</code> element is assigned <code>display: block;</code>
      and no other property declaration.</li>
    <li>The X/HTML <code>span</code> element is assigned <code>display: inline;</code>
      and no other property declaration.</li>
    <li>The X/HTML <code>p</code> element is assigned <code>display: block;</code></li>
    <li>The X/HTML <code>li</code> element is assigned <code>display: list-item;</code></li>
    <li>The X/HTML table elements <code>table</code>, <code>tbody</code>,
      <code>tr</code>, and <code>td</code> are assigned the <code>display</code>
      values <code>table</code>, <code>table-row-group</code>,
      <code>table-row</code>, and <code>table-cell</code>, respectively.</li>
    <li>The device can display the sixteen color values associated with the color
      keywords <code>black</code>, <code>white</code>, <code>gray</code>,
      <code>silver</code>, <code>red</code>, <code>green</code>, <code>blue</code>,
      <code>purple</code>, <code>yellow</code>, <code>orange</code>, <code>teal</code>,
      <code>fuchsia</code>, <code>maroon</code>, <code>navy</code>, <code>aqua</code>,
      and <code>lime</code> as distinct colors.</li>
    <li>The UA is set to print background colors and, if it supports graphics,
      background images.</li>
    <li>The UA implements reasonable page-breaking behavior; e.g., it is assumed
      that UAs will not break at every opportunity, but only near the end of
      a page unless a page break is forced.</li>
    <li>The UA implements reasonable line-breaking behavior; e.g., it is assumed
      that spaces between alphanumeric characters provide line breaking
      opportunities and that UAs will not break at every opportunity, but only
      near the end of a line unless a line break is forced.</li>
  </ul>

<h2 id="uncommon">Uncommon Assumptions</h2>

  <p>In addition, some of the tests make one or more of the following
   assumptions:</p>

  <ul>
    <li>The device is a full-color device.</li>
    <li>The device has a viewport width of at least 640px (approx).</li>
    <li>The resolution of the device is 96 CSS pixels per inch.</li>
    <li>The UA imposes no minimum font size.</li>
    <li>The 'medium' font-size computes to 16px.</li>
    <li>The initial value of 'color' is black.</li>
    <li>The canvas background is white.</li>
    <li>The user stylesheet is empty (except where indicated by the tests).</li>
    <li>The device is interactive and uses scroll bars.</li>
  </ul>

  <p>The tests that need these assumptions to be true have not yet been
  marked, but it is likely that we will add a way to identify these
  tests in due course. Tests should avoid relying on these assumptions
  unless necessary.</p>

<h2>License</h2>

  <p>This test suite is licensed under both the
  <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-license">W3C
  Test Suite License</a> and the <a href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license">W3C
  3-clause BSD License</a>. See W3C Legal's <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright">explanation
  of the licenses</a>.</p>

<h2>Acknowledgements</h2>

  <p>Many thanks to the following for their contributions:</p>
  <ul>
    <li>Cameron McCormack</li>
    <li>L. David Baron</li>
    <li>Lea Verou</li>
    <li>Mihaela Velimiroviciu</li>
    <li>Mozilla Corporation</li>
    <li>Noah Collins</li>
    <li>Simon Sapin</li>
  </ul>

</body>
</html>