<html> <strong> <div style=“color: red; font-size: 20px; border: 2px solid red; padding: 10px; line-height: 1.5; text-align: center;”> This page has been deprecated and is no longer being maintained. <br>For up to date information on contributing and authoring CSS Test suites, see: <br><a href=“http://testthewebforward.org/docs/test-style-guidelines.html#self-describing-tests”>http://testthewebforward.org/docs/test-style-guidelines.html#self-describing-tests</a> </strong> </div> </html>

Self-Describing Tests

A self-describing test is a test page that describes what the page should look like when the test has passed. A human examining the test page can then determine from the description whether the test has passed or failed.

The following are some examples of self-describing tests, using common techniques to identify passes:

Self-describing tests have some advantages:

They also have some disadvantages:

Self-describing tests must follow the CSS test format guidelines.

Additional information on writing self-describing tests is available on the W3C site.