Table of Contents

<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”>http://testthewebforward.org/docs</a> </strong> </div> </html>

Frequently Asked Questions

Why reftest instead of testharness.js?

While JavaScript tests can be more efficient for many things than reftests, they have two key disadvantages: they can test layout and cascading, but not rendering; and they require OM/scripting support, which not all CSS renderers have.

For this reason, we recommend testharness.js for OM-related tests, but unless there's a very strong reason to use scripting for a test, layout tests should be done as reftests.

Why metadata?

Short answer: partly to help us evaluate coverage, and partly because, like commenting your code, it helps reviewers and maintainers understand what your code is trying to do.

Long answer:

Some test writers find that writing out the assertion helps them think about what, exactly, they're trying to test and how it relates to prose that is in the spec. (And if that prose is not there, it's time to file a spec issue. ;)