CSS Print Test Suite Overview

Melinda Grant, Hewlett-Packard Co.


This Test Suite has been designed primarily to prove implementability of the CSS Print specification.

It is also intended to help implementers evaluate conformance to CSS Print. It draws from the CSS 2.1 and CSS3 Selectors and Page test suites.

Table of Contents

Status of the test suite

The CSS Print Profile test suite is still in early development. It is neither stable nor anywhere near complete.

It is expected that the test suite will progress through a number of releases, each more stable and complete than the previous. The latest version under development can be found in 'current'.  The contents of this directory are dynamic, and files may be added or modified day by day. The dated releases will not change, except that tests subsequently determined to be incorrect may be modified to explain this determination.

CSS Print Profile

This links to the latest revision of the test suite. The links below point to specific, dated versions.
31 Jan 2007
The initial release of the test suite. Many tests still missing. This should be considered an 'alpha' release.

Feedback and discussion regarding the CSS Print Profile Test Suite should be sent to public-css-testsuite@w3.org (archive). The subject should be prefaced with '[Print]'.  Send mail to public-css-testsuite@w3.org with "Subject: subscribe" to subscribe to this list.

Overview of the test suite

The CSS Print Profile itself defines no properties or features. It depends on other specifications for the normative definition of required functionality:

  1. CSS 2.1
  2. CSS3 Paged Media

Tests within this suite are drawn from four different sources:

  1. XHTML tests from the CSS 2.1 test suite. These tests are not designed specifically for printing. The displayed content does not contain the test name or a specific description of what is being tested. The absence of a test name in the printout creates an extra burden of care for the tester, to ensure the test output is matched against the correct test.
  2. XHTML tests from the CSS3 Selectors test suite.
  3. Tests from the CSS3 Page test suite. These tests are designed to be printed, and include the test name at the start and end of the test.  They also display a description of what is being tested within a div of class 'testPurpose'.  The style sheet "test.css" within the "support" directory can be modified to not display this information.
  4. Tests which have been leveraged from the CSS 2.1 test suite, as for some reason they are not suitable as-is for use by the CSS Print test suite. For example:

For additional background, see the CSS testsuite documentation. Tests generally follow the CSS authoring guidelines.  This test suite adds additional suffices to the naming conventions defined in these references, as follows:

Indicates a test which is essentially a duplicate of another test, but which uses jpeg images rather than png images
Indicates a test which is specific to printing, where there is a similar test for screen display.

The tests themselves are composed as XHTML 1.1 documents.

Completion criteria for the test suite are:

Feedback regarding the CSS Print Test Suite should be sent to public-css-testsuite@w3.org.