W3C CSS Test Suite Repository

This repository contains top level directories for all of CSS specs for
which we currently have tests. Place tests in the appropriate directory based
on the first rel="help" link in the test. If you are writing tests for a spec
and it doesn't yet have a directory here, feel free to create it.

There are a few directories that do not map to specifications:

support/ contains common image files to which many of the tests link in
this location

tools/ is random scripts that may be useful when administering tests.

vendor-imports/ is where third parties may import their tests that originate
and are maintained in an external repo. Files in this directory should
never be modified in this repo, but should go through the vendor's process
to be imported here.

work-in-progress/ is a legacy directory that contains all the work that was
once submitted to the repo, but was not yet ready for review. Since the CSSWG
has adopted the GitHub pull request process, no new files should be landed here.
The subdirectories here are named by test author or contributing organization.

Running the Tests

The tests are designed to be run from your local computer. The test
environment requires Python 2.7+ (but not Python 3.x). You will also
need a copy of OpenSSL. Users on Windows should read the
[Windows Notes](#windows-notes) section below.

To get the tests running, you need to set up the test domains in your
[`hosts` file](http://en.wikipedia.org/wiki/Hosts_%28file%29%23Location_in_the_file_system). The
following entries are required:

```   csswg.test   www.csswg.test   www1.csswg.test   www2.csswg.test   xn--n8j6ds53lwwkrqhv28a.csswg.test   xn--lve-6lad.csswg.test     nonexistent-origin.csswg.test

Because csswg-test uses git submodules, you must ensure that
these are up to date. In the root of your checkout, run:

git submodule update --init --recursive

The test environment can then be started using


This will start HTTP servers on two ports and a websockets server on
one port. By default one web server starts on port 8000 and the other
ports are randomly-chosen free ports. Tests must be loaded from the
*first* HTTP server in the output. To change the ports, copy the
`config.default.json` file to `config.json` and edit the new file,
replacing the part that reads:

"http": [8000, "auto"]

to some port of your choice e.g.

"http": [1234, "auto"]

If you installed OpenSSL in such a way that running `openssl` at a
command line doesn't work, you also need to adjust the path to the
OpenSSL binary. This can be done by adding a section to `config.json`

"ssl": {"openssl": {"binary": "/path/to/openssl"}}
Windows Notes

Running wptserve with SSL enabled on Windows typically requires
installing an OpenSSL distribution.
[Shining Light](http://slproweb.com/products/Win32OpenSSL.html)
provide a convenient installer that is known to work, but requires a
little extra setup.

After installation ensure that the path to OpenSSL is on your `%Path%`
environment variable.

Then set the path to the default OpenSSL configuration file (usually
something like `C:\OpenSSL-Win32\bin\openssl.cfg` in the server
configuration. To do this copy `config.default.json` in the
web-platform-tests root to `config.json`. Then edit the JSON so that
the key `ssl/openssl/base_conf_path` has a value that is the path to
the OpenSSL config file.

Linking Your Tests to Specifications

In addition to placing your tests in the appropriate directory in this repository,
you must also include at least one specification link in the test metadata,
following [these guidelines][speclinks].

For CSS tests, you must also be sure you’re linking to a specific level of the spec,
generally the first level where the feature being tested is defined. Where possible,
it’s preferable to link to the official version of the spec, which will start with
https://www.w3.org/TR/. This can usually be found as the ‘Latest version’ link in the
spec itself and will include the level of the spec in the URL. For example, the proper
link to level 1 of the CSS Flexbox spec is:


When testing features not yet available in an official draft, link to the appropriate
Editor’s Draft found at https://drafts.csswg.org/. Be sure to include the level of the
specification in the link. For example, the proper link to the CSS Flexbox Level 1
Editor’s Draft is:



Absolutely everyone is welcome (and even encouraged) to contribute to test
development, so long as you fulfill the contribution requirements detailed
in the [Contributing Guidelines][contributing]. No test is too small or too
simple, especially if it corresponds to something for which you've noted an
interoperability bug in a browser.

Getting Involved

If you wish to contribute actively, you're very welcome to join the
public-css-testsuite@w3.org mailing list by
[signing up to our mailing list](mailto:public-css-testsuite-request@w3.org?subject=subscribe).
The mailing list is [archived][mailarchive].

[mailarchive]: https://lists.w3.org/Archives/Public/public-css-testsuite/

Write Access

This section only applies if you have cloned the repository from
Mercurial. If you've cloned it from GitHub, which is a mirror of
the canonical Mercurial repo, you can submit your tests via a [pull request][github101].

To gain write access to this Mercurial repository, sign up for an account
on the CSS Test Suite Manager (aka Shepherd) at:
and then submit a request on the Repository Access page at:

You will be notified by email when your request is processed.

Please note that although we will grant write access directly to the Mercurial
repo, it is strongly advised to use GitHub for test submissions to enable
reviewers to use its built-in review tools. Direct submissions to Mercurial
should be limited to administrative or housekeeping tasks, very minor changes
that don't require a review, or from advanced users of the system.

[contributing]: https://github.com/w3c/csswg-test/blob/master/CONTRIBUTING.md
[github101]: http://testthewebforward.org/docs/github-101.html
[speclinks]: http://testthewebforward.org/docs/test-templates.html#specification-links
Icon  Name                      Last modified      Size  Description
[PARENTDIR] Parent Directory - [DIR] WOFF2-UserAgent/ 2017-02-25 00:05 - [DIR] compositing-1/ 2017-02-25 00:05 - [DIR] css-align-3/ 2017-03-09 00:05 - [DIR] css-animations-1/ 2017-03-02 00:05 - [DIR] css-backgrounds-3/ 2017-03-29 00:05 - [DIR] css-box-3/ 2017-02-25 00:05 - [DIR] css-break-3/ 2014-05-30 00:04 - [DIR] css-cascade-3/ 2017-02-25 00:05 - [DIR] css-cascade-4/ 2017-03-25 00:05 - [DIR] css-color-3/ 2017-02-25 00:05 - [DIR] css-color-4/ 2017-03-25 00:05 - [DIR] css-conditional-3/ 2017-02-25 00:05 - [DIR] css-counter-styles-3/ 2017-02-25 00:05 - [DIR] css-display-3/ 2017-03-08 00:05 - [DIR] css-exclusions-1/ 2017-02-25 00:05 - [DIR] css-flexbox-1/ 2017-03-29 00:05 - [DIR] css-fonts-3/ 2017-03-25 00:05 - [DIR] css-gcpm-3/ 2017-02-25 00:05 - [DIR] css-grid-1/ 2017-02-25 00:05 - [DIR] css-images-3/ 2017-02-25 00:05 - [DIR] css-lists-3/ 2017-02-25 00:05 - [DIR] css-logical-properties-1/ 2017-02-25 00:05 - [DIR] css-logical-props-1/ 2017-03-25 00:05 - [DIR] css-masking-1/ 2017-02-25 00:05 - [DIR] css-multicol-1/ 2017-03-25 00:05 - [DIR] css-namespaces-3/ 2017-02-25 00:05 - [DIR] css-page-3/ 2017-02-25 00:05 - [DIR] css-pseudo-4/ 2017-02-25 00:05 - [DIR] css-regions-1/ 2017-02-25 00:05 - [DIR] css-rhythm-1/ 2017-02-27 00:05 - [DIR] css-round-display/ 2017-02-25 00:05 - [DIR] css-ruby-1/ 2017-02-25 00:05 - [DIR] css-scoping-1/ 2017-02-25 00:05 - [DIR] css-shapes-1/ 2017-02-25 00:05 - [DIR] css-speech-1/ 2017-02-25 00:05 - [DIR] css-style-attr-1/ 2017-03-29 00:05 - [DIR] css-syntax-3/ 2017-02-25 00:05 - [DIR] css-tables-3/ 2017-02-25 00:05 - [DIR] css-text-3/ 2017-02-25 00:05 - [DIR] css-text-decor-3/ 2017-02-25 00:05 - [DIR] css-transforms-1/ 2017-03-26 00:05 - [DIR] css-transitions-1/ 2017-02-25 00:05 - [DIR] css-transitions-2/ 2017-02-25 00:05 - [DIR] css-ui-3/ 2017-03-28 00:05 - [DIR] css-values-3/ 2017-02-25 00:05 - [DIR] css-values-4/ 2017-02-25 00:05 - [DIR] css-variables-1/ 2017-02-25 00:05 - [DIR] css-writing-modes-3/ 2017-03-29 00:05 - [DIR] css1/ 2017-02-25 00:05 - [DIR] css21/ 2017-03-25 00:05 - [DIR] cssom-1/ 2017-02-25 00:05 - [DIR] cssom-view-1/ 2017-02-25 00:05 - [DIR] filters-1/ 2017-02-25 00:05 - [DIR] fonts/ 2017-02-25 00:05 - [DIR] geometry-1/ 2017-03-28 00:05 - [DIR] mediaqueries-3/ 2017-02-25 00:05 - [DIR] reference/ 2017-02-25 00:05 - [DIR] resources/ 2017-02-03 00:05 - [DIR] selectors-3/ 2017-03-29 00:05 - [DIR] selectors-4/ 2017-03-25 00:05 - [DIR] support/ 2017-02-25 00:05 - [DIR] tools/ 2017-02-25 00:05 - [DIR] vendor-imports/ 2014-05-30 00:04 - [DIR] work-in-progress/ 2016-03-03 00:08 - [DIR] wpt_tools/ 2017-03-21 00:05 - [   ] CONTRIBUTING.md 2015-12-07 15:37 1.5K [   ] LICENSE.md 2016-12-08 00:05 5.1K [TXT] build-css-testsuites.sh 2017-03-21 21:12 1.1K [   ] config.default.json 2016-08-19 00:05 672 [TXT] filename-list.html 2017-03-29 00:05 3.6M CSS Tests by Filename [TXT] filename-list.txt 2017-03-29 00:05 1.9M [   ] lint 2017-01-26 00:05 288 [   ] lint.whitelist 2017-03-24 00:05 33K [   ] manifest 2017-01-16 09:15 171 [TXT] parse-errors.txt 2017-03-29 00:05 12M [TXT] requirements.txt 2017-02-25 00:05 86 [   ] serve 2016-08-19 00:05 80 [TXT] serve.py 2016-08-19 00:05 64
Apache/2.4.10 (Debian) Server at test.csswg.org Port 443