CSS 2.1 Conformance Test Suite
Test Coordinator:
None Yet
This is a Beta
version of the CSS 2.1 Conformance Test Suite.
You can provide test data or review the testing results for this test suite:
Enter Data
Review Results
Some tests in the test suite may contain errors.
Please check the latest version of the
CSS 2.1 specification
and its errata
before assuming a failure is due to an implementation bug and
not a test suite bug.
In time we hope to correct all errors and extend this test suite to
cover all of CSS 2.1. Your help is welcome in this effort.
The appropriate mailing list for submitting tests and bug reports is
public-css-testsuite@w3.org.
More information on the contribution process and test guidelines is
available on the wiki
page.
Tests are currently available in these formats:
- HTML 4.01
- HTML 4.01 tests sent as
text/html
- XHTML 1.1
- XHTML 1.1 tests sent as
application/xhtml+xml
- XHTML 1.1 for Printers
- 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.
Unless the test instructions explicitly indicate otherwise,
any occurrence of red in a test indicates test failure.
Implementation Reports
An implementation report template
is available to help with creating implementation reports. See also the
explanation
of its format.
Common Assumptions
Most of the test suite makes the following assumptions:
- The X/HTML
div
element is assigned display: block;
and no other property declaration.
- The X/HTML
span
element is assigned display: inline;
and no other property declaration.
- The X/HTML
p
element is assigned display: block;
- The X/HTML
li
element is assigned display: list-item;
- The X/HTML table elements
table
, tbody
,
tr
, and td
are assigned the display
values table
, table-row-group
,
table-row
, and table-cell
, respectively.
- The device can display the sixteen color values associated with the color
keywords
black
, white
, gray
,
silver
, red
, green
, blue
,
purple
, yellow
, orange
, teal
,
fuchsia
, maroon
, navy
, aqua
,
and lime
as distinct colors.
- The UA is set to print background colors and, if it supports graphics,
background images.
- 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.
- 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.
Uncommon Assumptions
In addition, some of the tests make one or more of the following
assumptions:
- The device is a full-color device.
- The device has a viewport width of at least 640px (approx).
- The resolution of the device is 96 CSS pixels per inch.
- The UA imposes no minimum font size.
- The 'medium' font-size computes to 16px.
- The initial value of 'color' is black.
- The canvas background is white.
- The user stylesheet is empty (except where indicated by the tests).
- The device is interactive and uses scroll bars.
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.
License
This test suite is licensed under both the
W3C
Test Suite License and the W3C
3-clause BSD License. See W3C Legal's explanation
of the licenses.
Acknowledgements
Many thanks to the following for their contributions:
- Aharon Lanin
- Alan Gresley
- Alan Harder
- Alexander Dawson
- Arron Eicholz
- Bernd Mielke
- Bert Bos
- Boris Zbarsky
- Bruno Fassino
- Chris Rebert
- Daniel Schattenkirchner
- David Hammond
- David Hyatt
- Eira Monstad
- Eira Monstad, Opera Software ASA
- Elika J. Etemad
- Ethan Malasky
- Florian Rivoal
- Gérard Talbot
- Gabriele Romanato
- Germain Garand
- Google
- Hajime Shiozawa
- Hewlett-Packard Company
- Hilbrand Edskes
- Ian Hickson
- Intel
- James Hopkins
- Jeffrey Carl Faden
- John Daggett
- Justin Boss
- L. David Baron
- Lachlan Hunt
- Magne Andersson
- Manuel Rego Casasnovas
- Marc Pacheco
- Mark McKenzie-Bell
- Mats Palmgren
- Matt Bradley
- Melinda Grant
- Michael Turnwall
- Microsoft
- Mihai Balan
- Mozilla
- Mozilla Corporation
- Ray Kiddy
- Rebecca Hauck
- Richard Ishida
- Robert O'Callahan
- Rodney Rehm
- Shiyou Tan
- Simon Montagu
- Tom Clancy
- Vasil Dinkov
- W3C