Abstract
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
- Current
- 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:
- CSS 2.1
- all necessary infrastructure, such as terminology definitions, etc.
- syntax
- the cascade
- selectors
- inheritance
- basic paged media support
- CSS3 Paged Media
- extended print-specific functionality (e.g., page size, headers and
footers, widows and orphans)
Tests within this suite are drawn from four different sources:
- 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.
- XHTML tests from the CSS3 Selectors test suite.
- 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.
- 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:
- Tests which contain png images have been converted to use similar jpeg images (CSS Print
is designed to be used with XHTML-Print, which requires support for jpeg but not for png images).
- Tests for border styles have been simplified to only use those styles mandatory for CSS Print.
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:
- -j
- Indicates a test which is essentially a duplicate of
another test, but which uses jpeg images rather than png images
- -p
- 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:
- For each feature, there will be at
least one page which tests the feature in various ways, using XHTML markup.
- There will be at least one such test for each testable assertion in the Paged Media
chapter of CSS 2.1 and the CSS3 Paged Media specification.
Feedback regarding the CSS Print Test Suite should be sent to
public-css-testsuite@w3.org.