--- layout: page title: CSS Metadata order: 14 --- 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 |
---|---|
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. |
font | Requires a specific font to be installed at the OS level. (A link to the font to be installed must be provided; this is not needed if only web fonts are used.) |
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 |
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] |
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 |
userstyle | Requires a user style sheet to be set |