CSS tests have some additional requirements for metadata. ### Specification Links Specification Links ``` html ``` The specification link elements provide a way to align the test with information in the specification being tested. * Links should link to relevant sections within the specification * Use the anchors from the specification's Table of Contents * A test can have multiple specification links * Always list the primary section that is being tested as the first item in the list of specification links * Order the list from the most used/specific to least used/specific * There is no need to list common incidental features like the color green if it is being used to validate the test unless the case is specifically testing the color green * If the test is part of multiple test suites, link to the relevant sections of each spec. Example 1: ``` html ``` Example 2: ``` html ``` ### Requirement Flags
Token | Description |
---|---|
ahem | Test requires Ahem font |
animated | Test is animated in final state. (Cannot be verified using reftests/screenshots.) |
asis | The test has particular markup formatting requirements and cannot be re-serialized. |
combo | Test, which must have an unsuffixed filename number, is strictly the union of all the suffixed tests with the same name and number. (See File name format, below.) |
dom | Requires support for JavaScript and the Document Object Model ( DOM) |
font | Requires a specific font to be installed. (Details must be provided and/or the font linked to in the test description) |
history | User agent session history is required. Testing :visited is a good example where this may be used. |
HTMLonly | Test case is only valid for HTML |
http | Requires HTTP headers |
image | Requires support for bitmap graphics and the graphic to load |
interact | Requires human interaction (such as for testing scrolling behavior) |
invalid | Tests handling of invalid CSS. Note: This case contains CSS properties and syntax that may not validate. |
may | Behavior tested is preferred but OPTIONAL. [RFC2119] |
namespace | Requires support for XML Namespaces |
nonHTML | Test case is only valid for formats besides HTML (e.g. XHTML or arbitrary XML) |
paged | Only valid for paged media |
scroll | Only valid for continuous (scrolling) media |
should | Behavior tested is RECOMMENDED, but not REQUIRED. [RFC2119] |
speech | Device supports audio output. Text-to-speech (TTS) engine installed |
svg | Requires support for vector graphics (SVG) |
userstyle | Requires a user style sheet to be set |
32bit | Assumes a 32-bit integer as the minimum (-2147483648) or maximum (2147483647) value |
96dpi | Assumes 96dpi display |