W3C

CSS Print Profile

Testable Assertions

This version:
Print/20070131/css-print-testlist.htm
Editor:
Melinda Grant, Hewlett-Packard

This document contains a table of testable assertions extracted from the CSS Print Profile, W3C Last Call Working Draft 13 October 2006 specification, and associated test cases.

This document provides the assertions and  test links for the enhanced level of functionality required for a conforming printer.

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 (empty lists indicate opportunities for additional test development), and
  4. the text of the assertion, excerpted from the specification (some assertions are extracted from a table of requirements, and form two sub-cells within the last column)
IDSectionTest File NameQuote/Description
CSSPP-1 2 Conformance t0302-media-01-b.htm From CSS-PP: "...a conforming user agent will support the features defined in this specification following the CSS 2.1 conformance clause ([CSS21] Section 3.2)."

Subcase from CSS 2.1, Section 3.2, "It must recognize one or more of the CSS 2.1 media types."

CSSPP-2 2 Conformance t0603-c11-import-00-b.xht
t0302-import-02-b.htm
t040105-atkeyw-00-b.xht
t040105-atkeyw-01-b.xht
t040105-atkeyw-02-b.xht
t040105-import-00-b.xht
t040105-import-01-b.xht
For each source document, a user agent SHALL attempt to retrieve all associated style sheets that are appropriate for the supported media types. If it cannot retrieve all associated style sheets (for instance, because of network errors), it must display the document using those it can retrieve.
CSSPP-3 2 Conformance the printer SHALL recognize all CSS Print Profile at-rules, blocks, declarations, and selectors.
NOTE: Tested under individual sections.
CSSPP-4 2 Conformance t0302-conform-01-b.htmthe user agent ... must ignore declarations with invalid values.
NOTE: Mostly tested under individual properties.
CSSPP-5 2 Conformance t0302-media-01-b.htm
t0302-import-01-b.htm
t0302-import-02-b.htm
User agents SHALL ignore rules that apply to unsupported media types.
CSSPP-6 2 Conformance t0602-c13-inh-underlin-00-e.xht
t0602-c13-inheritance-00-e.xht
t0602-inherit-bdr-pad-b-00.xht
t060401-c32-cascading-00-b.xht
t100304-c43-rpl-bbx-00-d-g-j.htm
t100304-c43-rpl-bbx-01-d-g-j.htm
A conforming user agent shall support all CSS 2.1 semantics applicable to the constructs supported by this profile, including inheritance and the cascade.
CSSPP-7 3. Selectors css3-modsel-3a.xml
css3-modsel-4.xml
* MUST
CSSPP-8 3. Selectors css3-modsel-2.xml E MUST
CSSPP-9 3. Selectors css3-modsel-43.xml
css3-modsel-43b.xml
css3-modsel-86.xml
css3-modsel-89.xml
E F MUST
CSSPP-103. Selectors css3-modsel-44.xml
css3-modsel-44b.xml
css3-modsel-44c.xml
css3-modsel-44d.xml
css3-modsel-86.xml
css3-modsel-89.xml
E > F MUST
CSSPP-11 3. Selectors css3-modsel-5.xml E[foo]Enhanced: must
CSSPP-12 3. Selectors css3-modsel-6.xml E[foo='warning']Enhanced: MUST
CSSPP-133. Selectors css3-modsel-7.xml E[foo~='warning']Enhanced: MUST
CSSPP-14 3. Selectors css3-modsel-13.xml
css3-modsel-14.xml
css3-modsel-14b.xml
css3-modsel-14c.xml
css3-modsel-44c.xml
css3-modsel-45c.xml
css3-modsel-175a.xml
css3-modsel-175b.xml
css3-modsel-175c.xml
css3-modsel-183.xml
E.classid MUST
CSSPP-15 3. Selectors css3-modsel-15.xml
css3-modsel-15b.xml
css3-modsel-15c.xml
css3-modsel-44d.xml
E#myid MUST
CSSPP-16 3. Selectors css3-modsel-1.xml the CSS Print Profile includes the CSS 2.1 grouping mechanism
CSSPP-17 3. Selectors t130202-page-first-00-b.htm
t130202-page-first-01-d.htm
@page:first MUST
CSSPP-18 3.1 at-rules t0603-c11-import-00-b.xht
t0302-import-02-b.htm
t040105-import-00-b.xht
t040105-import-01-b.xht
t0302-import-01-b.htm
@import Enhanced: MUST
CSSPP-19 3.1 at-rules @charset MUST
CSSPP-20 3.1 at-rules t0302-media-01-b.htm
t070201-media-01-b.htm
t0703-media-01-b.htm
t0703-media-02-f.htm
@media MUST
CSSPP-21 3.1 at-rules t1302-page-01-b.htm
t1302-page-02-b.htm
t130201-page-01-b.htm
t130201-page-02-b.htm
t1302-page-03-c.htm
t0301-abs-pos-00-c.htm
@page MUST
CSSPP-22 3.1 at-rules t04-footers-00-b.htm @bottom-left-corner,
@bottom-left,
@bottom-center,
@bottom-right,
@bottom-right-corner
MUST
CSSPP-23 3.1 at-rules t04-headers-00-b.htm @top-left-corner,
@top-left,
@top-center,
@top-right,
@top-right-corner
MUST
CSSPP-24 4. Properties t1402-c45-bg-canvas-00-b.xht
t140201-c533-bgimage-01-b-g-j.htm
'background'background-color | inherit
Enhanced:
['background-color' ||
'background-image' ||
'background-repeat' || 'background-position'] |
inherit
CSSPP-25 4. Properties t140201-c532-bgcolor-01-b.xht
t140201-c532-bgcolor-00-a.xht
'background-color' MUST
CSSPP-26 4. Properties t140201-c533-bgimage-00-a-j.htm
t140201-bgimage-02-b.htm
'background-image' Enhanced MUST
CSSPP-27 4. Properties t140201-bgimage-02-b.htm 'background-position' Enhanced MUST
CSSPP-28 4. Properties t140201-bgimage-02-b.htm 'background-repeat' Enhanced MUST
CSSPP-29 4. Properties t010403-shand-border-00-c.xht
t0805-c5522-brdr-01-b.htm
t0805-c5522-brdr-02-e.xht
t170602-bdr-conflct-w-29-d.xht
t170602-bdr-conflct-w-92-d.xht
t170602-bdr-conflct-w-99-d.xht
'border' Enhanced MUST
CSSPP-30 4. Properties t170602-bdr-conflct-w-00-d.xht t170602-bdr-conflct-w-09-d.xht
'border-collapse'Enhanced MUST
CSSPP-31 4. Properties t0805-c5522-brdr-01-b.htm
t0805-c5516-brdr-c-00-a.xht
t0805-c5516-ibrdr-c-00-a.xht
'border-color' Enhanced MUST
CSSPP-32 4. Properties t170601-bdr-sp-01-b.htm 'border-spacing' Enhanced MUST
CSSPP-33 4. Properties t0805-c5522-brdr-01-b.htm
'border-style' Enhanced: none, solid
CSSPP-34 4. Properties t0805-c5518-brdr-t-01-e.xht
t0805-c5519-brdr-r-01-e.xht
t0805-c5519-brdr-r-02-e.xht
t0805-c5520-brdr-b-01-e.xht
t0805-c5521-brdr-l-01-e.xht
t0805-c5521-brdr-l-02-e.xht
'border-top'
'border-right'
'border-bottom'
'border-left'
Enhanced MUST
CSSPP-35 4. Properties t170602-bdr-conflct-w-02-d.xht t170602-bdr-conflct-w-22-d.xht
t0805-c5516-brdr-c-01-b.htm
'border-top-color'
'border-right-color'
'border-bottom-color'
'border-left-color'
Enhanced MUST
CSSPP-36 4. Properties t080503-brdr-s-00-b.htm'border-top-style'
'border-right-style'
'border-bottom-style'
'border-left-style'
Enhanced: none, solid
CSSPP-37 4. Properties t0805-c5511-brdr-tw-00-b.xht
t0805-c5511-brdr-tw-01-b-g.xht
t0805-c5511-brdr-tw-02-b.xht
t0805-c5511-brdr-tw-03-b.xht
t0805-c5512-brdr-rw-00-b.xht
t0805-c5512-brdr-rw-01-b-g.xht
t0805-c5512-brdr-rw-02-b.xht
t0805-c5512-brdr-rw-03-b.xht
t0805-c5513-brdr-bw-00-b.xht
t0805-c5513-brdr-bw-01-b-g.xht
t0805-c5513-brdr-bw-02-b.xht
t0805-c5513-brdr-bw-03-b.xht
t0805-c5514-brdr-lw-00-b.xht
t0805-c5514-brdr-lw-01-b-g.xht
t0805-c5514-brdr-lw-02-b.xht
t0805-c5514-brdr-lw-03-b.xht
'border-top-width'
'border-right-width'
'border-bottom-width'
'border-left-width'
Enhanced MUST
CSSPP-38 4. Properties t0805-c5515-brdr-w-01-b-g.xht
t0805-c5515-brdr-w-02-b.xht
t0805-c5515-ibrdr-00-b.xht
t170602-bdr-conflct-w-20-d.xht
t170602-bdr-conflct-w-90-d.xht
'border-width' Enhanced MUST
CSSPP-39 4. Properties 'bottom' Enhanced MUST
CSSPP-40 4. Properties t170401-caption-side-00-b.htm 'caption-side' Enhanced MUST
CSSPP-41 4. Properties t0905-c5526-flthw-00-c-g-j.htm
t09-c5526c-display-00-e.xht
'clear' Enhanced MUST
CSSPP-42 4. Properties 'clip' Enhanced MUST
CSSPP-43 4. Properties t1401-c531-color-00-a.xht
t040306-syntax-01-f.xht
'color' MUST
CSSPP-44 4. Properties t0601-counter-01-b.htm'content'inherit | [<string> | counter (pages)]+
CSSPP-45 4. Properties t0601-counter-01-b.htm
t0305-cntreset-01-b.htm
'counter-increment'"pages"
CSSPP-46 4. Properties t0305-cntreset-01-b.htm 'counter-reset' MUST
CSSPP-47 4. Properties t09-c5526c-display-00-e.xht
t1205-c561-list-displ-00-b.htm
'display' Enhanced: inline | block | list-item | none |inherit
CSSPP-48 4. Properties  'fit'Enhanced: MUST
CSSPP-49 4. Properties   'fit-position' Enhanced: MUST
CSSPP-50 4. Properties t0905-c414-flt-00-d.xht
t0905-c414-flt-01-d-g-j.htm
t0905-c414-flt-02-c-p.htm
t0905-c414-flt-03-c-p.htm
t0905-c414-flt-04-c-p.htm
t0905-c414-flt-fit-00-d.xht
t0905-c414-flt-fit-01-d-g-j.htm
t0905-c414-flt-wrap-00-e.xht
t0905-c414-flt-wrap-01-d-g-j.htm
t0905-c5525-fltblck-01-d.xht
t0905-c5525-fltcont-00-d-g-j.htm
t0905-c5525-fltmult-00-d-g.xht
t0905-c5525-fltwidth-00-c-g-j.htm
t0905-c5525-fltwidth-01-c-g-j.htm
t0905-c5525-fltwidth-02-c-g-j.htm
t0905-c5525-fltwidth-03-c-g-j.htm
t0905-c5525-fltwrap-00-b.xht
t090501-c414-flt-00-d.xht
t090501-c414-flt-01-b.xht
t090501-c414-flt-02-d-g-j.htm
t090501-c414-flt-03-b-g-j.htm
t090501-c414-flt-ln-00-d.xht
t090501-c414-flt-ln-01-d-g-j.htm
t090501-c414-flt-ln-02-d.xht
t090501-c414-flt-ln-03-d.xht
t090501-c5525-flt-l-00-b-g-j.htm
t090501-c5525-flt-r-00-b-g-j.htm
'float' Enhanced: MUST
CSSPP-51 4. Properties t010403-shand-font-00-b.xht
t010403-shand-font-01-b.xht
t010403-shand-font-02-b.xht
t010403-shand-font-03-b.xht
t1508-c527-font-00-b.xht
t1508-c527-font-01-b.xht
t1508-c527-font-02-b.xht
t1508-c527-font-03-b.xht
t1508-c527-font-04-b.xht
t1508-c527-font-05-b.xht
t1508-c527-font-06-b.xht
t1508-c527-font-07-b.xht
t1508-c527-font-08-b.xht
t1508-c527-font-09-b.xht
t1508-c527-font-10-c.xht
'font'[ [ 'font-style' ||
'font-variant' ||
'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family' ] |
inherit
CSSPP-52 4. Properties t1503-c522-font-family-00-b.xht'font-family' MUST *
CSSPP-53 4. Properties t1507-c526-font-sz-00-b.xht'font-size' MUST
CSSPP-54 4. Properties t1504-c523-font-style-00-b.xht'font-style' MUST
CSSPP-55 4. Properties t1505-c524-font-var-00-b.xht 'font-variant' Enhanced: MUST
CSSPP-56 4. Properties t1506-c525-font-wt-00-b.xht 'font-weight' MUST
CSSPP-57 4. Properties t1004-c5524-width-00-b-g-j.htm
t1005-c5524-width-00-b-g-j.htm
t1005-c5524-width-01-b-g-j.htm
'height' MUST
CSSPP-58 4. Properties t07-img-orient-00-b.htm
t07-img-orient-01-b.htm
'image-orientation' Enhanced: MUST
CSSPP-59 4. Properties 'left' Enhanced: MUST
CSSPP-60 4. Properties 'letter-spacing' Enhanced: MUST
CSSPP-61 4. Properties 'line-height' MUST
CSSPP-62 4. Properties t1205-c566-list-stl-01-c-g-j.htm 'list-style' Enhanced: MUST
CSSPP-63 4. Properties t120501-ls-style-img-00-b.htm 'list-style-image' Enhanced: MUST
CSSPP-64 4. Properties t1205-c565-list-pos-00-b.xht
'list-style-position' MUST
CSSPP-65 4. Properties t1205-c564-list-img-00-b-g-j.htm 'list-style-type'disc, decimal, lower-alpha, upper-alpha, none and inherit
CSSPP-66 4. Properties 'margin' MUST
CSSPP-67 4. Properties t0803-c5502-mrgn-r-03-c.xht
t0803-c5504-mrgn-l-03-c.xht
t080301-c411-vt-mrgn-00-b.xht
'margin-top'
'margin-right'
'margin-bottom'
'margin-left'
MUST
CSSPP-68 4. Properties 'orphans' Enhanced: MUST
CSSPP-69 4. Properties 'overflow' Enhanced: MUST
CSSPP-70 4. Properties t0804-c5510-padn-02-f.xht
'padding' Enhanced: MUST
CSSPP-71 4. Properties t0804-c5507-padn-r-02-f.xht
t0804-c5507-padn-r-03-f.xht
t0804-c5509-padn-l-02-f.xht
t0804-c5509-padn-l-03-f-g-j.htm
'padding-top'
'padding-right'
'padding-bottom'
'padding-left'
Enhanced: MUST
CSSPP-72 4. Properties 'page' MUST
CSSPP-73 4. Properties 'page-break-after'auto | always | inherit
CSSPP-74 4. Properties 'page-break-before'auto | always | inherit
CSSPP-75 4. Properties t130301-pg-brki-00-b.htm 'page-break-inside' MUST
CSSPP-76 4. Properties t1001-abs-pos-cb-01-b.xht
t1001-abs-pos-cb-02-b.xht
t1001-abs-pos-cb-03-b.xht
t1001-abs-pos-cb-04-b.xht
t1001-abs-pos-cb-05-b.xht
t1001-abs-pos-cb-06-b.xht
t1001-abs-pos-cb-07-b.xht
t1001-abs-pos-cb-08-b.xht
t1001-abs-pos-cb-09-b-p.htm
'position' Enhanced: MUST
CSSPP-77 4. Properties 'right' Enhanced: MUST
CSSPP-78 4. Properties 'size'[<length>{1, 2} | letter | legal | ledger | A4 | A5 | A3 | B4 | B5] | auto | portrait | inherit
CSSPP-79 4. Properties 'table-layout' Enhanced: MUST
CSSPP-80 4. Properties t1602-c546-txt-align-00-b.xht 'text-align' left | center | inherit
Enhanced: left | right | center | inherit
CSSPP-81 4. Properties t1504-c543-txt-decor-00-d-g-j.htm 'text-decoration'none, underline, and inherit
CSSPP-82 4. Properties t1601-c547-indent-01-d.xht'text-indent' MUST
CSSPP-83 4. Properties 'text-transform' Enhanced: MUST
CSSPP-84 4. Properties 'top' Enhanced: MUST
CSSPP-85 4. Properties 'vertical-align' Enhanced: MUST
CSSPP-86 4. Properties 'text-transform' Enhanced: MUST
CSSPP-87 4. Properties  'visibility' MUST
CSSPP-88 4. Properties 'white-space' Enhanced: MUST
CSSPP-89 4. Properties 'widows' Enhanced: MUST
CSSPP-90 4. Properties t1002-c5523-width-00-b-g-j.htm
t1002-c5523-width-01-b-g-j.htm
t1002-c5523-width-02-b-g-j.htm
t1004-c5524-width-00-b-g-j.htm
t1005-c5524-width-00-b-g-j.htm
t1005-c5524-width-01-b-g-j.htm
'width' MUST
CSSPP-91 5. CSS Syntax t040105-atrule-00-b.xht
t040105-atrule-01-b.xht
t040105-atrule-02-b.xht
t040105-atrule-03-b.xht
t040102-keywords-00-b.xht
t040102-keywords-01-b.xht
t040103-case-00-b.xht
t040103-case-01-c-j.htm
t040103-escapes-00-b.xht
t040103-escapes-01-b.xht
t040103-escapes-02-d.xht
t040103-escapes-03-b.xht
t040103-escapes-04-b.xht
t040103-escapes-06-b.xht
t040103-escapes-07-b.xht
t040103-escapes-08-b.xht
t040103-ident-00-c.xht
t040103-ident-01-c.xht
t040103-ident-02-c.xht
t040103-ident-03-c.xht
t040103-ident-04-c.xht
t040103-ident-05-c.xht
t040103-ident-06-c.xht
t040103-ident-07-c.xht
t040103-ident-08-c.xht
t040103-ident-09-c.xht
t040103-ident-10-c.xht
t040103-ident-11-c.xht
t040103-ident-12-c.xht
t040103-ident-13-c.xht
t0402-c71-fwd-parsing-00-f.xht
t0402-c71-fwd-parsing-01-f.xht
t0402-c71-fwd-parsing-02-f.xht
t0402-c71-fwd-parsing-03-f.xht
t0402-c71-fwd-parsing-04-f.xht
t0402-syntax-01-f.htm
t0402-syntax-02-f.htm
t0402-syntax-03-f.htm
t0402-syntax-04-f.htm
t0402-syntax-05-f.htm
t0402-syntax-06-f.htm
t040307-syntax-01-b.xht
The CSS Print Profile uses the same syntax as specified in Cascading Style Sheets, Level 2, revision 1 (CSS 2.1).
CSSPP-92 5. CSS Syntax The printer SHALL support integer and real numbers([CSS21], Section4.3.1)
CSSPP-93 5. CSS Syntax t040302-c61-phys-len-00-b.xht
The printer SHALL support the following lengths([CSS21], Section4.3.2):
  • px
  • em
  • ex
  • in
  • cm
  • mm
  • pt
  • pc
CSSPP-94 5. CSS Syntax   The printer SHALL support percentage values([CSS21], Section4.3.3).
CSSPP-95 5. CSS Syntax t040304-c64-uri-00-a-g-j.htm
The printer SHALL support URI values([CSS21], Section4.3.4).
CSSPP-96 5. CSS Syntax The printer SHALL support the "pages" counter value that tracks page numbers([CSS21], Section4.3.5).
CSSPP-97 5. CSS Syntax t040306-syntax-01-f.xht
t040306-color-01-b.htm
The printer SHALL support the following color values ([CSS21], Section4.3.6):
  • The 16 colors defined in HTML4.01[HTML4]
  • A numerical RGB specification([CSS21)
CSSPP-98 5. CSS Syntax t040109-c17-comments-00-b.xht
t040109-c17-comments-01-b.xht
The printer SHALL support comments ([CSS 2.1, Section 4.1.9).

† Only the single identifier "pages" that represents the current page number is REQUIRED .

* It is RECOMMENDED that a printer minimally support "serif, " "sans-serif, " and "monospace" font families.