W3C

XHTML-Print Assertions

This is a list of testable assertions extracted from the http://www.w3.org/TR/2006/PR-xhtml-print-20060131/ specification.

The table below is arranged into four columns:

  1. the assertion identifier,
  2. a link to the section of the specification that the assertion was extracted from,
  3. a list of tests for the assertion, and
  4. the text of the assertion, excerpted from the specification

The assertions identified within this document intend to describe all mandatory behaviors for conforming Printers. This document does not include testable assertions for conforming documents or testable assertions for recommended behaviors.

XHTML-Print dependencies on the XHTML Family User Agent Conformance requirements are called out in the XHTML Family User Agent Conformance test list.

The tests use a naming convention based on their source:

  1. Tests from the XHTML-Print specification are named from the associated section of the XHTML-Print specification, for example 1_3-BF-01.htm.
  2. Tests from the XHTML Family User Agent Conformance section of the XHTML 1.1 specification are prefixed with "xhtml_conform", for example xhtml_conform-BF-01.htm.
AssertionSection Test File Name Quote/Description
11.3.1. Script and Events1_3-BF-01.htmthe content of the script element MUST be treated as if its display property were set to the value "none" and the content of the noscript element printed.
22.3.1 Formatting/Rendering RulesXHTML Family User Agent Conformance test listA printer MUST conform to the XHTML Family User Agent Conformance section of the Modularization of XHTML specification ([XHTMLMOD], section 3.5) (see XHTML Family User Agent Conformance test list)
32.3.1 Formatting/Rendering Rules 2_3_1-BF-02.htmIf a printer encounters an image in a format it does not support, it SHALL render any alternate content provided.
42.3.1 Formatting/Rendering Rules2_3_1-BF-03.htmIf the image format is supported and the height and width attributes are not provided, the printer must attempt to print the image at its intrinsic size.
52.3.1 Formatting/Rendering Rules 3_10-BF-01.htm A printer MUST support images referenced by a URI [RFC2396] containing a scheme name http [RFC2616].
62.3.2 XHTML Requirements 2_3_2-BF-01.htm
2_3_2-BF-02.htm
2_3_2-BF-02a.htm
2_3_2-BF-03.htm
2_3_2-BF-04.htm
2_3_2-BF-05.htm
A conforming printer SHALL support all XHTML Modules listed in The XHTML-Print Document Type.
72.3.2 XHTML Requirements2_3_2-BF-06.htm A conforming printer SHALL print a static version of a form using default and selected values as specified in the form.
82.3.2 XHTML RequirementsSee CSS test listA conforming printer SHALL support the CSS constructs and associated values given in the CSS Print Profile
93.1 Attributes and Attribute CollectionsTested under individual sections. a conforming printer MUST implement [an] attribute [tagged as a must]
103.1 Attributes and Attribute Collections3_13-BF-02.htm
3_3-BF-02a.htm
A conforming printer MUST NOT treat an attribute marked as should as an error: (style) media, (style) xml:space="preserve".
113.1 Attributes and Attribute Collections 3_2-BF-03.htm
3_2-BF-04.htm
3_2-BF-05.htm
3_2-BF-06.htm
3_2-BF-07.htm
3_3-BF-02a.htm
3_3-BF-05.htm
3_4-BF-03.htm
3_5-BF-02.htm
3_6-BF-02.htm
3_7-BF-06.htm
3_8-BF-08.htm
3_8-BF-09.htm
3_9-BF-05.htm
3_10-BF-06.htm
3_10-BF-07.htm
3_12-BF-03.htm
3_15-BF-06.htm
3_15-BF-07.htm
A conforming printer MUST NOT treat an attribute marked as may as an error: xml:lang, (head) profile, (td, th) abbr, (object) declare, (link) hreflang
123.1 Attributes and Attribute Collections3_2-BF-01.htm
3_3-BF-02.htm
3_3-BF-03.htm
3_3-BF-04.htm
3_4-BF-01.htm
3_4-BF-02.htm
3_5-BF-01.htm
3_6-BF-01.htm
3_7-BF-01.htm
3_7-BF-05.htm
3_8-BF-01.htm
3_8-BF-07.htm
3_9-BF-01.htm
3_9-BF-04.htm
3_10-BF-01.htm
3_10-BF-05.htm
3_11-BF-01.htm
3_12-BF-01.htm
3_12-BF-02.htm
3_15-BF-01.htm
A conforming printer MUST NOT treat [an] attribute [marked as N/A] as an error[: title, (blockquote, q) cite, (a) accesskey, (a) charset, (a) href, (a) hreflang, (a) rel, (a) rev, (a) tabindex, (a) type, (form) action, (form) method, (form) enctype, (input) accesskey, (input) maxlength, (input) name, (input) src, (input) tabindex, (label accesskey, (label) for, (select) multiple, (select) name, (select) tabindex, (textarea) accesskey, (textarea) name, (textarea) tabindex, (table) summary, (td, th) axis, (td, th) scope, (img) londesc, (object) archive, (object) classid, (object) codetype, (object) name, (object) standby, (object) tabindex, (param) id, (param) name, (param) type, (param) value, (param) valuetype, (meta) content, (meta) http-equiv, (meta) name, (meta) scheme, (script) charset, (script) defer, (script) src, (script) type, (style) title, (link) rev].
133.1 Attributes and Attribute Collections 3_2-BF-01.htm
3_3-BF-02.htm
3_4-BF-01.htm
3_5-BF-01.htm
3_6-BF-01.htm
3_7-BF-01.htm
3_8-BF-01.htm
3_9-BF-01.htm
3_10-BF-01.htm
3_12-BF-01.htm
3_15-BF-01.htm
[must support the class attribute on all elements with CORE attribute set: body, abbr, acronym, address, blockquote, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var, a, dl, dt, dd, ol, ul, li, b, big, hr, i, small, sub, sup, tt, form, input, label, select, option, textarea, caption, table, td, th, tr, img, object, noscript, link ]
143.1 Attributes and Attribute Collections 3_2-BF-01.htm
3_3-BF-02.htm
3_4-BF-01.htm
3_5-BF-01.htm
3_6-BF-01.htm
3_7-BF-01.htm
3_8-BF-01.htm
3_9-BF-01.htm
3_10-BF-01.htm
3_12-BF-01.htm
3_15-BF-01.htm
[must support the id attribute on all elements with CORE attribute set: body, abbr, acronym, address, blockquote, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var, a, dl, dt, dd, ol, ul, li, b, big, hr, i, small, sub, sup, tt, form, input, label, select, option, textarea, caption, table, td, th, tr, img, object, noscript, link]
153.1 Attributes and Attribute Collections3_3-BF-02a.htm
3_4-BF-01.htm
3_5-BF-01.htm
3_6-BF-01.htm
3_7-BF-01.htm
3_8-BF-01.htm
3_9-BF-01.htm
3_10-BF-01.htm
3_12-BF-01.htm
must support the style attribute on all elements with the Common attribute set: body, abbr, acronym, address, blockquote, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var, a, dl, dt, dd, ol, ul, li, b, big, hr, i, small, sub, sup, tt, form, input, label, select, option, textarea, caption, table, td, th, tr, img, object, noscript, link
163.2 Structure Module3_2-BF-01.htm
[must support "http://www.w3.org/1999/xhtml" as a value of the xmlns attribute of the html element]
173.3 Text Module3_3-BF-01.htm
3_3-BF-02a.htm
[must support "preserve" as a value of the xml:space attribute of the pre element]
183.7 Basic Forms Module 3_7-BF-02.htm[must support the checked="checked" attribute of the input element]
193.7 Basic Forms Module 3_7-BF-02.htm[must support the size attribute of the input element]
203.7 Basic Forms Module3_7-BF-02.htm[must support the type="text" attribute of the input element]
213.7 Basic Forms Module3_7-BF-02.htm[must support the type="password" attribute of the input element]
223.7 Basic Forms Module3_7-BF-02.htm[must support the type="checkbox" attribute of the input element]
233.7 Basic Forms Module3_7-BF-02.htm[must support the type="radio" attribute of the input element]
243.7 Basic Forms Module3_7-BF-02.htm[must support the type="submit" attribute of the input element]
253.7 Basic Forms Module3_7-BF-02.htm[must support the type="reset" attribute of the input element]
263.7 Basic Forms Module3_7-BF-02.htm[must support the type="hidden" attribute of the input element]
273.7 Basic Forms Module3_7-BF-02.htm[must support the value attribute of the input element]
283.7 Basic Forms Module3_7-BF-03.htm[must support the size attribute of the select element]
293.7 Basic Forms Module3_7-BF-03.htm[must support the selected="selected" attribute of the option element]
303.7 Basic Forms Module3_7-BF-04.htm[must support the cols attribute of the textarea element]
313.7 Basic Forms Module3_7-BF-04.htm[must support the rows attribute of the textarea element]
323.8 Basic Tables Module3_8-BF-02.htm [must support the align attribute of the td and th elements]
333.8 Basic Tables Module3_8-BF-06.htm [must support the colspan attribute of the td and th elements]
343.8 Basic Tables Module3_8-BF-06.htm [must support the rowspan attribute of the td and th elements]
353.8 Basic Tables Module3_8-BF-04.htm [must support the valign attribute of the td and th elements]
363.8 Basic Tables Module3_8-BF-02.htm [must support the align attribute of the tr element]
373.8 Basic Tables Module3_8-BF-04.htm [must support the valign attribute of the tr element]
383.8 Basic Tables Module Optional (not tested)If a printer implements a feature to truncate the contents of a cell because of space constraints, it MUST support the abbr attribute and print the value of the abbr attribute (if present) instead of the cell's content.
393.8 Basic Tables Module3_8-BF-02.htmIf the align attribute is missing or has an unsupported value, a printer MUST act as if the align attribute has the value left for the td and tr elements, and as if the align attribute has the value center for the th element.
403.8 Basic Tables Module3_8-BF-04.htmA printer MUST support the values top, middle, and bottom for the valign attribute of the td, th, and tr elements
413.9 Image Module3_9-BF-02.htm[must support the alt attribute of the img element]
423.9 Image Module3_9-BF-03.htm[must support the height attribute of the img element]
433.9 Image Module3_9-BF-03.htm[must support the src attribute of the img element]
443.9 Image Module3_9-BF-03.htm[must support the width attribute of the img element]
453.10 Object Module3_10-BF-03.htm[must support the codebase attribute of the object element]
463.10 Object Module3_10-BF-01.htm
3_10-BF-03.htm
[must support the data attribute of the object element]
473.10 Object Module3_10-BF-01.htm
3_10-BF-03.htm
[must support the height attribute of the object element]
483.10 Object Module3_10-BF-01.htm
3_10-BF-03.htm
[must support the type="image/jpeg" attribute of the object element]
493.10 Object Module3_10-BF-01.htm
3_10-BF-03.htm
[must support the width attribute of the object element]
503.10 Object Module3_10-BF-01.htmPrinters MUST support the http [RFC2616] scheme of a URI [RFC2396].
513.10 Object Module3_10-BF-04.htm
A printer MUST process the content of the object element when it does not recognize or support the object type referenced by the value of the type attribute.
523.13 Style Sheet Module3_13-BF-02.htm A printer MUST read and process the content of style elements where the media attribute has the value print or all.
533.13 Style Sheet Module3_13-BF-03.htm
The absence of the media attribute MUST be treated as if the media attribute had the value all.
543.13 Style Sheet Module3_13-BF-04.htm
all unsupported values for type MUST cause the content to be ignored.
553.15 Link Module3_15-BF-02.htm
3_15-BF-08.htm
[must support the charset attribute of the link element]
563.15 Link Module 3_15-BF-01.htm
[must support the href attribute of the link element]
573.15 Link Module3_15-BF-03.htm
3_15-BF-04.htm
[must support the media attribute of the link element]
583.15 Link Module3_15-BF-01.htm
3_15-BF-09.htm
A printer must support the rel="stylesheet" attribute of the link element]
593.15 Link Module3_15-BF-01.htm[must support the type="text/css" attribute of the link element]
603.15 Link Module2_3_2-BF-02.htm
3_9-BF-04.htm
3_15-BF-05.htm
3_16-BF-01.htm
Printers MUST support the http [RFC2616] scheme of a URI [RFC2396].
613.15 Link Module3_15-BF-03.htm
3_15-BF-04.htm
A printer MUST read and process the content of external style sheets where the media attribute has the value print or all.
623.15 Link Module3_15-BF-01.htm The absence of the media attribute MUST be treat as if the media attribute had the value all.
633.15 Link Module3_15-BF-01.htm
3_15-BF-09.htm
A printer SHALL support the value stylesheet for the rel attribute along with the value "text/css" for the type attribute.
643.16 Base Module3_16-BF-01.htm [must support the href attribute of the base element]
653.16 Base Module3_16-BF-01.htm Printers MUST support the http [RFC2616] scheme of a URI [RFC2396].
664.1.1 Recommended Attributes on the img and object Elements3_9-BF-03.htm
3_10-BF-01.htm
3_10-BF-03.htm
4_1_1-BF-01.htm
...the height and width attributes within the img or the object element ... MAY be expressed as pixels or percentages within the img or the object element. Percentages are relative to the parent element and not the page width or printable area.
674.2 Style Sheets4_2-BF-01.htm
printers SHALL support both in-line and referenced style sheets within the style element or link element in the head element of a document.
68A.2.1 JPEG ProcessesA_2_1-BF-01.htm A JPEG decoder for an XHTML-Print printer SHALL support all baseline JPEG processes as defined in [CCITT], except for 2- and 4-component images
69A.2.2 Handling of APPx Markers A_2_2-BF-01.htm A JPEG decoder for a minimal printer SHALL NOT fail as a consequence of encountering an unsupported APPx marker
70C.1 Normative References C_1-BF-01.htm
C_1-BF-02.htm
[XML] Section 2.2 All XML processors MUST accept the UTF-8 and UTF-16 encodings of Unicode 3.1.

Valid XHTML 1.0!