Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron
authorTobias Schneider <schneider@jancona.com>
Wed, 26 Jul 2017 22:53:46 -0700
changeset 420061 c5acd94ff501fd19aeedcc044f96989da5ac742f
parent 420060 e5cbd17779363c4986f747fe11f5845de3ee9610
child 420062 0d0907bce507ce4d505f6626fefdeea757bb0584
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1382327
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron
gfx/tests/crashtests/1308394.html
gfx/tests/crashtests/665218.html
layout/base/crashtests/363729-1.html
layout/base/crashtests/363729-2.html
layout/base/crashtests/363729-3.html
layout/base/crashtests/399994-1.html
layout/base/crashtests/468645-1.xhtml
layout/base/crashtests/468645-2.xhtml
layout/base/crashtests/468645-3.xhtml
layout/base/crashtests/470851-1.xhtml
layout/base/crashtests/479114-1.html
layout/base/crashtests/675246-1.xhtml
layout/base/crashtests/767593-1.html
layout/base/crashtests/767593-2.html
layout/forms/crashtests/1102791.html
layout/forms/crashtests/1182414.html
layout/forms/crashtests/1279354.html
layout/forms/crashtests/578604-1.html
layout/forms/crashtests/590302-1.xhtml
layout/forms/crashtests/959311.html
layout/forms/crashtests/997709-1.html
layout/generic/crashtests/1137723-1.html
layout/generic/crashtests/1137723-2.html
layout/generic/crashtests/255982-1.html
layout/generic/crashtests/255982-2.html
layout/generic/crashtests/255982-3.html
layout/generic/crashtests/255982-4.html
layout/generic/crashtests/398322-1.html
layout/generic/crashtests/398322-2.html
layout/generic/crashtests/480345-1.html
layout/generic/crashtests/570160.html
layout/generic/crashtests/574958.xhtml
layout/generic/crashtests/585598-1.xhtml
layout/generic/crashtests/595740-1.html
layout/generic/crashtests/790260-1.html
layout/printing/crashtests/509839-1.html
layout/printing/crashtests/509839-2.html
layout/printing/crashtests/576878.xhtml
layout/printing/crashtests/793844.html
layout/reftests/abs-pos/table-caption-5.html
layout/reftests/abs-pos/table-cell-8.html
layout/reftests/abs-pos/table-print-1-ref.html
layout/reftests/backgrounds/table-background-print-ref.html
layout/reftests/backgrounds/table-background-print.html
layout/reftests/bidi/1161752-5-embed-ref.html
layout/reftests/bidi/1161752-5-embed.html
layout/reftests/bugs/200774-1.html
layout/reftests/bugs/231823-1-ref.html
layout/reftests/bugs/231823-1.html
layout/reftests/bugs/243519-3-ref.html
layout/reftests/bugs/243519-3.html
layout/reftests/bugs/243519-6-ref.html
layout/reftests/bugs/243519-6.html
layout/reftests/bugs/325292-1-ref.html
layout/reftests/bugs/325292-1.html
layout/reftests/bugs/379349-3-ref.xhtml
layout/reftests/bugs/379349-3a.xhtml
layout/reftests/bugs/379349-3b.xhtml
layout/reftests/bugs/397428-1-ref.html
layout/reftests/bugs/397428-1.html
layout/reftests/bugs/409084-1-ref.html
layout/reftests/bugs/409084-1a.html
layout/reftests/bugs/409084-1b.html
layout/reftests/bugs/409659-1-ref.html
layout/reftests/bugs/409659-1a.html
layout/reftests/bugs/409659-1b.html
layout/reftests/bugs/409659-1c.html
layout/reftests/bugs/409659-1d.html
layout/reftests/bugs/411585-1-ref.html
layout/reftests/bugs/411585-1.html
layout/reftests/bugs/411585-2-ref.html
layout/reftests/bugs/411585-2.html
layout/reftests/bugs/411585-3-ref.html
layout/reftests/bugs/411585-3.html
layout/reftests/bugs/417676-ref.html
layout/reftests/bugs/417676.html
layout/reftests/bugs/421710-1.html
layout/reftests/bugs/422249-1-ref.html
layout/reftests/bugs/422249-1.html
layout/reftests/bugs/422678-1-ref.html
layout/reftests/bugs/422678-1.html
layout/reftests/bugs/427017-1.xhtml
layout/reftests/bugs/467444-1-ref.html
layout/reftests/bugs/467444-1.html
layout/reftests/bugs/531200-1-ref.html
layout/reftests/bugs/531200-1.html
layout/reftests/bugs/563584-1-ref.html
layout/reftests/bugs/563584-1.html
layout/reftests/bugs/563584-10-ref.html
layout/reftests/bugs/563584-10a.html
layout/reftests/bugs/563584-10b.html
layout/reftests/bugs/563584-11-ref.html
layout/reftests/bugs/563584-11.html
layout/reftests/bugs/563584-2-ref.html
layout/reftests/bugs/563584-2.html
layout/reftests/bugs/563584-3-ref.html
layout/reftests/bugs/563584-3.html
layout/reftests/bugs/563584-4-ref.html
layout/reftests/bugs/563584-4.html
layout/reftests/bugs/563584-5-ref.html
layout/reftests/bugs/563584-5.html
layout/reftests/bugs/563584-6-printing-ref.html
layout/reftests/bugs/563584-6-printing.html
layout/reftests/bugs/563584-7-ref.html
layout/reftests/bugs/563584-7.html
layout/reftests/bugs/563584-8a-ref.html
layout/reftests/bugs/563584-8a.html
layout/reftests/bugs/563584-8b-ref.html
layout/reftests/bugs/563584-8b.html
layout/reftests/bugs/563584-8c-ref.html
layout/reftests/bugs/563584-8c.html
layout/reftests/bugs/563584-8d-ref.html
layout/reftests/bugs/563584-8d.html
layout/reftests/bugs/582037-2-ref.html
layout/reftests/bugs/582037-2a.html
layout/reftests/bugs/582037-2b.html
layout/reftests/bugs/585598-2-ref.xhtml
layout/reftests/bugs/585598-2.xhtml
layout/reftests/bugs/609272-1-ref.html
layout/reftests/bugs/609272-1.html
layout/reftests/bugs/reftest.list
layout/reftests/css-animations/print-no-animations-notref.html
layout/reftests/css-animations/print-no-animations-ref.html
layout/reftests/css-animations/print-no-animations.html
layout/reftests/css-animations/reftest.list
layout/reftests/css-grid/grid-fragmentation-010-ref.html
layout/reftests/css-grid/grid-fragmentation-010.html
layout/reftests/css-grid/grid-fragmentation-011-ref.html
layout/reftests/css-grid/grid-fragmentation-011.html
layout/reftests/css-grid/grid-fragmentation-012-ref.html
layout/reftests/css-grid/grid-fragmentation-012.html
layout/reftests/css-grid/grid-fragmentation-013-ref.html
layout/reftests/css-grid/grid-fragmentation-013.html
layout/reftests/css-grid/grid-fragmentation-014-ref.html
layout/reftests/css-grid/grid-fragmentation-014.html
layout/reftests/css-import/445415-2-ref.xhtml
layout/reftests/css-import/445415-2a.xhtml
layout/reftests/css-import/445415-2b.xhtml
layout/reftests/css-mediaqueries/mq_print-ref.xhtml
layout/reftests/css-mediaqueries/mq_print_aspectratio.xhtml
layout/reftests/css-mediaqueries/mq_print_deviceaspectratio.xhtml
layout/reftests/css-mediaqueries/mq_print_deviceheight.xhtml
layout/reftests/css-mediaqueries/mq_print_devicewidth.xhtml
layout/reftests/css-mediaqueries/mq_print_height.xhtml
layout/reftests/css-mediaqueries/mq_print_maxheight.xhtml
layout/reftests/css-mediaqueries/mq_print_maxheight_updown.xhtml
layout/reftests/css-mediaqueries/mq_print_maxwidth.xhtml
layout/reftests/css-mediaqueries/mq_print_maxwidth_updown.xhtml
layout/reftests/css-mediaqueries/mq_print_minheight.xhtml
layout/reftests/css-mediaqueries/mq_print_minheight_updown.xhtml
layout/reftests/css-mediaqueries/mq_print_minwidth.xhtml
layout/reftests/css-mediaqueries/mq_print_minwidth_updown.xhtml
layout/reftests/css-mediaqueries/mq_print_orientation-ref.xhtml
layout/reftests/css-mediaqueries/mq_print_orientation.xhtml
layout/reftests/css-mediaqueries/mq_print_width.xhtml
layout/reftests/details-summary/details-page-break-after-1.html
layout/reftests/details-summary/details-page-break-after-2.html
layout/reftests/details-summary/details-page-break-before-1.html
layout/reftests/details-summary/details-page-break-before-2.html
layout/reftests/details-summary/details-two-pages.html
layout/reftests/image/image-object-fit-with-background-2-ref.html
layout/reftests/image/image-object-fit-with-background-2.html
layout/reftests/image/image-object-position-with-background-2-ref.html
layout/reftests/image/image-object-position-with-background-2.html
layout/reftests/pagination/abspos-breaking-000.ref.xhtml
layout/reftests/pagination/abspos-breaking-000.xhtml
layout/reftests/pagination/abspos-breaking-001.xhtml
layout/reftests/pagination/abspos-breaking-002.xhtml
layout/reftests/pagination/abspos-breaking-003-ref.html
layout/reftests/pagination/abspos-breaking-003.html
layout/reftests/pagination/abspos-breaking-004-ref.html
layout/reftests/pagination/abspos-breaking-004.html
layout/reftests/pagination/abspos-breaking-005-ref.html
layout/reftests/pagination/abspos-breaking-005.html
layout/reftests/pagination/abspos-breaking-006-ref.html
layout/reftests/pagination/abspos-breaking-006.html
layout/reftests/pagination/abspos-breaking-007-ref.html
layout/reftests/pagination/abspos-breaking-007.html
layout/reftests/pagination/abspos-breaking-008-ref.html
layout/reftests/pagination/abspos-breaking-008.html
layout/reftests/pagination/abspos-breaking-009-ref.html
layout/reftests/pagination/abspos-breaking-009.html
layout/reftests/pagination/abspos-breaking-010-ref.html
layout/reftests/pagination/abspos-breaking-010.html
layout/reftests/pagination/abspos-breaking-011-ref.html
layout/reftests/pagination/abspos-breaking-011.html
layout/reftests/pagination/abspos-overflow-01.ref.xhtml
layout/reftests/pagination/abspos-overflow-01.xhtml
layout/reftests/pagination/blank.html
layout/reftests/pagination/combobox-page-break-inside-ref.html
layout/reftests/pagination/combobox-page-break-inside.html
layout/reftests/pagination/float-clear-000-print.html
layout/reftests/pagination/float-clear-000-print.ref.html
layout/reftests/pagination/float-clear-001-print.html
layout/reftests/pagination/float-clear-002-print.html
layout/reftests/pagination/float-clear-003-print.html
layout/reftests/pagination/row-page-break-after-always-1.html
layout/reftests/pagination/row-page-break-after-always-2.html
layout/reftests/pagination/rowgroup-page-break-after-always-1.html
layout/reftests/pagination/rowgroup-tfoot-page-break-after-always-1.html
layout/reftests/pagination/rowgroup-thead-page-break-after-always-1.html
layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-1.html
layout/reftests/pagination/table-caption-splitaftercaption-10.html
layout/reftests/pagination/table-caption-splitaftercaption-11.html
layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-2.html
layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-3.html
layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-4.html
layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-5.html
layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-6.html
layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-7.html
layout/reftests/pagination/table-caption-splitaftercaption-8.html
layout/reftests/pagination/table-caption-splitaftercaption-9.html
layout/reftests/pagination/table-caption-splitrowgroup-1-ref.html
layout/reftests/pagination/table-caption-splitrowgroup-1.html
layout/reftests/pagination/table-nested-1308876-1-ref.html
layout/reftests/pagination/table-nested-1308876-1.xhtml
layout/reftests/pagination/table-page-break-after-always-1.html
layout/reftests/pagination/table-page-break-after-left-1.html
layout/reftests/pagination/table-page-break-after-right-1.html
layout/reftests/pagination/table-page-break-before-always-1-ref.html
layout/reftests/pagination/table-page-break-before-always-1.html
layout/reftests/pagination/table-page-break-before-auto-1-ref.html
layout/reftests/pagination/table-page-break-before-auto-1.html
layout/reftests/pagination/table-page-break-before-auto-2-ref.html
layout/reftests/pagination/table-page-break-before-auto-2.html
layout/reftests/pagination/table-page-break-before-auto-3-ref.html
layout/reftests/pagination/table-page-break-before-avoid-1.html
layout/reftests/pagination/table-page-break-before-left-1.html
layout/reftests/pagination/table-page-break-before-right-1.html
layout/reftests/pagination/table-tfoot-thead-1-ref.html
layout/reftests/pagination/table-tfoot-thead-1.html
layout/reftests/pagination/table_internal_pagebreak-1.html
layout/reftests/printing/1108104-ref.html
layout/reftests/printing/1108104.html
layout/reftests/printing/115199-1-ref.html
layout/reftests/printing/115199-1.html
layout/reftests/printing/115199-2-ref.html
layout/reftests/printing/115199-2a.html
layout/reftests/printing/115199-2b.html
layout/reftests/printing/1166147-ref.html
layout/reftests/printing/1166147.html
layout/reftests/printing/129941-1-ref.html
layout/reftests/printing/129941-1a.html
layout/reftests/printing/129941-1b.html
layout/reftests/printing/129941-1c.html
layout/reftests/printing/129941-1d.html
layout/reftests/printing/129941-1e.html
layout/reftests/printing/1321803-1-ref.html
layout/reftests/printing/1321803-1a.html
layout/reftests/printing/272830-1-ref.html
layout/reftests/printing/272830-1.html
layout/reftests/printing/318022-1-ref.html
layout/reftests/printing/318022-1.html
layout/reftests/printing/381497-f.html
layout/reftests/printing/381497-n.html
layout/reftests/printing/403669-1-ref.html
layout/reftests/printing/403669-1.html
layout/reftests/printing/577450-1-ref.html
layout/reftests/printing/577450-1.html
layout/reftests/printing/609227-1-ref.html
layout/reftests/printing/609227-1.html
layout/reftests/printing/609227-2-ref.html
layout/reftests/printing/609227-2a.html
layout/reftests/printing/609227-2b.html
layout/reftests/printing/626395-1-ref.html
layout/reftests/printing/626395-1a.html
layout/reftests/printing/626395-1b.html
layout/reftests/printing/626395-2-ref.html
layout/reftests/printing/626395-2a.html
layout/reftests/printing/626395-2b.html
layout/reftests/printing/626395-2c.html
layout/reftests/printing/626395-2d.html
layout/reftests/printing/652178-1-ref.html
layout/reftests/printing/652178-1-ref2.html
layout/reftests/printing/652178-1.html
layout/reftests/printing/745025-1-ref.html
layout/reftests/printing/745025-1.html
layout/reftests/printing/820496-1-ref.html
layout/reftests/printing/820496-1.html
layout/reftests/printing/960822-ref.html
layout/reftests/printing/960822.html
layout/reftests/printing/966419-1-ref.html
layout/reftests/printing/966419-1.html
layout/reftests/printing/966419-2-ref.html
layout/reftests/printing/966419-2.html
layout/reftests/printing/blank.html
layout/reftests/printing/test-async-print.html
layout/reftests/reftest-sanity/page-height-2.1in.html
layout/reftests/reftest-sanity/page-height-2in.html
layout/reftests/reftest-sanity/page-height-forcebreak.html
layout/reftests/reftest-sanity/page-height-nobreak.html
layout/reftests/reftest-sanity/page-width-3.9in.html
layout/reftests/reftest-sanity/page-width-4.1in.html
layout/reftests/reftest-sanity/page-width-4in.html
layout/reftests/reftest-sanity/page-width-auto.html
layout/reftests/table-overflow/963441-ref.html
layout/reftests/table-overflow/963441.html
layout/reftests/table-overflow/table-row-pagination-ref.html
layout/reftests/table-overflow/table-row-pagination.html
layout/reftests/unicode/unicode-media-query-media-type.html
layout/reftests/unicode/unicode-media-query-query.html
layout/reftests/unicode/unicode-ref-print.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-10.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-11.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-12.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-13.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-2.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-3.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-4.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-5.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-6.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-7.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-9.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-3.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-inline-page-break-inside-avoid-1-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-inline-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-row-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-row-page-break-inside-avoid-2.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-2.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-3.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-4-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-4.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-5-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-5.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-6.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-7-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-7.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-8-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-8.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-1.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-2-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-2.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-3-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-3.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-4-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-4.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-5-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-5.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-6-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-6.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-7-ref.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-7.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-8.html
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-table-page-break-inside-avoid-ref.html
layout/reftests/w3c-css/submitted/multicol3/multicol-height-002.xht
layout/reftests/w3c-css/submitted/multicol3/reference/multicol-height-002.xht
layout/tables/crashtests/1027611-1.html
layout/tables/crashtests/347367.html
layout/tables/crashtests/362275.html
layout/tables/crashtests/373400-1.html
layout/tables/crashtests/373400-2.html
layout/tables/crashtests/373400-3.html
layout/tables/crashtests/563009-1.html
layout/tables/crashtests/563009-2.html
layout/tables/crashtests/563009-3.html
layout/tables/crashtests/576890-1.html
layout/tables/crashtests/576890-2.html
layout/tables/crashtests/576890-3.html
layout/tables/crashtests/595758-1.xhtml
layout/tables/crashtests/595758-2.xhtml
layout/tables/crashtests/678447-1.html
layout/tables/crashtests/695430-1.html
layout/tables/crashtests/696640-1.html
layout/tables/crashtests/696640-2.html
layout/tools/reftest/README.txt
layout/tools/reftest/reftest-content.js
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-10.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-11.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-12.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-13.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-14-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-14.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-15-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-15.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-2.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-3.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-4.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-5.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-6.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-7.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-8-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-8.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-9.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-block-page-break-inside-avoid-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-2-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-2.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-3.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-5-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-5.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-6-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-6.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-7-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-7.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-8-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-8.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-9-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-float-page-break-inside-avoid-9.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-inline-page-break-inside-avoid-1-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-inline-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-row-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-row-page-break-inside-avoid-2.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-2.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-3.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-4-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-4.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-5-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-5.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-6.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-7-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-7.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-8-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-rowgroup-page-break-inside-avoid-8.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-1.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-2-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-2.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-3-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-3.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-4-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-4.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-5-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-5.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-6-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-6.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-7-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-7.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-8.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/css21/pagination/moz-css21-table-page-break-inside-avoid-ref.html
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/multicol3/multicol-height-002.xht
testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/multicol3/reference/multicol-height-002.xht
widget/cocoa/nsPrintSettingsX.h
--- a/gfx/tests/crashtests/1308394.html
+++ b/gfx/tests/crashtests/1308394.html
@@ -1,9 +1,9 @@
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
 <svg xmlns="http://www.w3.org/2000/svg" width="90" height="20">
   <linearGradient id="b" x2="0" y2="100%">
     <stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
     <stop offset="1" stop-opacity=".1"/>
   </linearGradient>
   <mask id="a">
     <rect width="90" height="20" rx="3" fill="#fff"/>
   </mask>
--- a/gfx/tests/crashtests/665218.html
+++ b/gfx/tests/crashtests/665218.html
@@ -1,8 +1,8 @@
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
 <style id="e">    @font-face {
       font-family: "aaa";
       src: url("doesnotexist.TTF");
     }
     * { font-family: "aaa"; }</style>
 </head>
 <body>
--- a/layout/base/crashtests/363729-1.html
+++ b/layout/base/crashtests/363729-1.html
@@ -1,3 +1,3 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <b onfocus="event.target.setAttribute('tabindex', Math.floor(Math.random()*5)-9)"display: inline-table;position: fixed;overflow: hidden;float: left;direction: ltr;page-break-before: right;page-break-after: always;page-break-inside: inherit; style="display: inline-table;position: fixed;overflow: hidden;float: left;direction: ltr;page-break-before: right;page-break-after: always;page-break-inside: inherit;"><sup rowspan="12"display: table-caption;position: static;overflow: -moz-hidden-unscrollable;float: auto;direction: ltr;page-break-before: avoid;page-break-after: right;page-break-inside: inherit; style="display: table-caption;position: static;overflow: -moz-hidden-unscrollable;float: auto;direction: ltr;page-break-before: avoid;page-break-after: right;page-break-inside: inherit;"><bdo onfocus="event.target.parentNode.removeChild(event.target)"display: table-footer-group;position: absolute;overflow: hidden;float: left;direction: ltr;page-break-before: right;page-break-after: right;page-break-inside: auto; style="display: table-footer-group;position: absolute;overflow: hidden;float: left;direction: ltr;page-break-before: right;page-break-after: right;page-break-inside: auto;"><dir tabindex="12"display: -moz-grid;position: static;overflow: auto;float: left;direction: ltr;page-break-before: avoid;page-break-after: inherit;page-break-inside: inherit; style="display: -moz-grid;position: static;overflow: auto;float: left;direction: ltr;page-break-before: avoid;page-break-after: inherit;page-break-inside: inherit;"><i rowspan="1"display: -moz-stack;position: fixed;overflow: visible;float: right;direction: rtl;page-break-before: right;page-break-after: always;page-break-inside: avoid; style="display: -moz-stack;position: fixed;overflow: visible;float: right;direction: rtl;page-break-before: right;page-break-after: always;page-break-inside: avoid;"><select colspan="1"display: block;position: absolute;overflow: hidden;float: right;direction: auto;page-break-before: auto;page-break-after: avoid;page-break-inside: auto; style="display: block;position: absolute;overflow: hidden;float: right;direction: auto;page-break-before: auto;page-break-after: avoid;page-break-inside: auto;"></abbr></var></u></base></em></button></optgroup></menu></body>
--- a/layout/base/crashtests/363729-2.html
+++ b/layout/base/crashtests/363729-2.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Testcase Bug 363729  Crash [@ nsIFrame::GetPositionIgnoringScrolling] on print preview that uses position: fixed</title>
 </head>
 <body>
 This page should not crash on print preview
 <span style="position: fixed; page-break-after: always;"></span>
 <dir>
 <span style="display: inline-table; position: fixed; page-break-after: always;">
--- a/layout/base/crashtests/363729-3.html
+++ b/layout/base/crashtests/363729-3.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Testcase Bug 363729  Crash [@ nsIFrame::GetPositionIgnoringScrolling] on print preview that uses position: fixed (Branch version)</title>
 </head>
 <body>
 This page should not crash on print preview
 <span style="page-break-after: always;"></span>
 
 <dir>
--- a/layout/base/crashtests/399994-1.html
+++ b/layout/base/crashtests/399994-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 </head>
 <body>
 
 <div style="display: table; position: fixed;">
   <div style="display: table-row; page-break-after: always;"></div>
   <div style="display: table-row;"></div>
 </div>
--- a/layout/base/crashtests/468645-1.xhtml
+++ b/layout/base/crashtests/468645-1.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 
 <div style="-moz-binding: url(#xbl); display: table-cell;">
 <span style="display: inline-block;">
 <input style="page-break-after: right;"/>
 </span>
 </div>
 
 
--- a/layout/base/crashtests/468645-2.xhtml
+++ b/layout/base/crashtests/468645-2.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 
 <div style="-moz-binding:url(#xbl)"/>
 <input style="page-break-after: left;"/>
 
 <bindings xmlns="http://www.mozilla.org/xbl">
 <binding id="xbl" inheritstyle="false">
      <resources>
       <stylesheet src="data:text/css;charset=utf-8,"/>
--- a/layout/base/crashtests/468645-3.xhtml
+++ b/layout/base/crashtests/468645-3.xhtml
@@ -1,5 +1,5 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <popup xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>
 
 <style>html::before, window::before { content:""; display: table; position: fixed;}</style>
 </html>
--- a/layout/base/crashtests/470851-1.xhtml
+++ b/layout/base/crashtests/470851-1.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <thead>
   <tbody style="top: 10%;position: relative;overflow: scroll;">
     <td>
       <tfoot>
         <tr style="page-break-after: left;"></tr>
         <tbody style="line-height: 999px;">m</tbody>
       </tfoot>
       <thead></thead>
--- a/layout/base/crashtests/479114-1.html
+++ b/layout/base/crashtests/479114-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="display: table-row">
       <span style="display: block; page-break-before: always"></span>
     </div>
     <div style="display: table-row-group">
       <span style="display: block; page-break-before: always"></span>
     </div>
     <div style="display: table">
--- a/layout/base/crashtests/675246-1.xhtml
+++ b/layout/base/crashtests/675246-1.xhtml
@@ -1,8 +1,8 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <style><![CDATA[
  tfoot::after { content: "m"; position: fixed;}
 ]]>
 </style>
 <td></td>
 <tfoot style="page-break-before: always;"></tfoot>
 </html>
--- a/layout/base/crashtests/767593-1.html
+++ b/layout/base/crashtests/767593-1.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div><span style="page-break-after: always;"></span><div style="position: fixed;"><span style="display: none;"></span></div>B</div>
 </body>
 </html>
 
--- a/layout/base/crashtests/767593-2.html
+++ b/layout/base/crashtests/767593-2.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div><span style="page-break-after: always;"></span><div style="position: fixed;"><span style="display: none;"></span><span style="display: none;"></span></div>B</div>
 </body>
 </html>
 
--- a/layout/forms/crashtests/1102791.html
+++ b/layout/forms/crashtests/1102791.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
     <meta charset="utf-8">
     <title>Testcase for bug 1102791</title>
     <style type="text/css">
 
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
 
--- a/layout/forms/crashtests/1182414.html
+++ b/layout/forms/crashtests/1182414.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <meta charset="UTF-8">
 <style type="text/css">
 #menu { position: fixed; left: 0px; top: 0px; }
 </style>
 </head>
 <body>
 	<svg id="canvas" width="2427" height="2295.5" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>
--- a/layout/forms/crashtests/1279354.html
+++ b/layout/forms/crashtests/1279354.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Testcase for bug 1279354</title>
 </head>
 <body>
 
 <div style="position:fixed"><progress></progress></div>
 1
 <br style="page-break-after: always">
--- a/layout/forms/crashtests/578604-1.html
+++ b/layout/forms/crashtests/578604-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
    h2 { page-break-before: always; }
    #reviewer { position: fixed;}
 </style>
 </head>
 
 <body>
--- a/layout/forms/crashtests/590302-1.xhtml
+++ b/layout/forms/crashtests/590302-1.xhtml
@@ -1,4 +1,4 @@
-<html class="reftest-print" xmlns="http://www.w3.org/1999/xhtml" style=" float: left; white-space: pre; ">
+<html class="reftest-paged" xmlns="http://www.w3.org/1999/xhtml" style=" float: left; white-space: pre; ">
 <div style="page-break-before: always;"></div>
 <textarea style="position: fixed;"></textarea>
 </html>
--- a/layout/forms/crashtests/959311.html
+++ b/layout/forms/crashtests/959311.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <meta charset="utf-8">
 <style type="text/css">
 @page { size:5in 3in; margin:0in; }
 div { height: 2.5in; }
 select { height: 0.5in; display:block; padding:20px; page-break-inside:initial; }
 </style>
 </head>
--- a/layout/forms/crashtests/997709-1.html
+++ b/layout/forms/crashtests/997709-1.html
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html class="reftest-print"><body><div style="position: fixed;">
+<html class="reftest-paged"><body><div style="position: fixed;">
 <div style="page-break-after: always"></div>
 <select style="display:flex; position: fixed;"><option>A</select>
 </div></body></html>
--- a/layout/generic/crashtests/1137723-1.html
+++ b/layout/generic/crashtests/1137723-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head> 
 	<meta charset="utf-8">
 <title>Testcase bug 1137723</title>
 
 <style>
  .grid-comment{position:fixed;top:100%;}
  a[href]:after{content:" (" attr(href) ")";}
  </style>
--- a/layout/generic/crashtests/1137723-2.html
+++ b/layout/generic/crashtests/1137723-2.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head> 
 	<meta charset="utf-8">
 <title>Testcase bug 1137723</title>
 
 <style>
  .grid-comment{position:fixed;top:100%;}
  a[href]:after{content:" (" attr(href) ")";}
  </style>
--- a/layout/generic/crashtests/255982-1.html
+++ b/layout/generic/crashtests/255982-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 </style>
 <div style="width: 60%; float: left; height: 1.6in; ">a float</div>
 <div style="width: 60%; float: left; height: 1.6in; border:1px solid black; ">overlaps page break</div>
 <br />
 <div style="width: 60%; float: left;">3rd float</div>
--- a/layout/generic/crashtests/255982-2.html
+++ b/layout/generic/crashtests/255982-2.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="width: 60%; float: left; height: 1.6in; ">a float</div>
 <div style="width: 60%; float: left; height: 1.6in; border:1px solid black; ">overlaps page break</div>
 Some text
 <div style="width: 60%; float: left;">3rd float</div>
 <div style="width: 60%; float: left;">4th float</div>
 </body>
 </html>
--- a/layout/generic/crashtests/255982-3.html
+++ b/layout/generic/crashtests/255982-3.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="width: 60%; float: left; height: 1.6in; ">a float</div>
 <div style="width: 60%; float: left; height: 1.6in; border:1px solid black;">overlaps page break</div>
 Some text
 <div style="width: 60%; float: left;">3rd float</div>
 <div style="width: 60%; float: left;">4th float</div>
 </body>
 </html>
--- a/layout/generic/crashtests/255982-4.html
+++ b/layout/generic/crashtests/255982-4.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 </style>
 <div style="width: 60%; float: left; height: 1.6in; ">a float</div>
 <div style="width: 60%; float: left; height: 1.6in; border:1px solid black; ">overlaps page break</div>
 This is enough text to trigger a line break.
 <div style="width: 60%; float: left;">3rd float</div>
--- a/layout/generic/crashtests/398322-1.html
+++ b/layout/generic/crashtests/398322-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Testcase bug - Crash [@ nsFrameList::InsertFrame] on print preview with positioned elements and page-break-before</title>
 </head>
 
 <body>
 <div style="position: relative; page-break-before: always;">
   <div style="display: list-item;"></div>
   <div style="position: absolute;">
--- a/layout/generic/crashtests/398322-2.html
+++ b/layout/generic/crashtests/398322-2.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 q::after { content:"anonymous text"; text-transform: uppercase;}
 </style>
 </head>
 <body>
 <div style="position: absolute; width: 50px; -moz-column-count: 2;">
   <div style="position: absolute;"> <q> </q> </div>
--- a/layout/generic/crashtests/480345-1.html
+++ b/layout/generic/crashtests/480345-1.html
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="background:url(solidblue.png); position:absolute; height:40in;">
 </body>
 </html>
--- a/layout/generic/crashtests/570160.html
+++ b/layout/generic/crashtests/570160.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <title>Testcase for bug 570160</title>
 <!-- distilled from  href="http://www.musicalcriticism.com/concerts/usherhall-rsno-clein-0510.shtml" -->
 
 <style type="text/css">
 
 .manuscript {
--- a/layout/generic/crashtests/574958.xhtml
+++ b/layout/generic/crashtests/574958.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <style>
 tbody::first-letter {float: right; }
 tbody::before { content:"before textbefore textbefore textbefore textbefore textbefore text"; float:right;}>
 </style>
 <th style="direction: rtl;">
 m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m 
 <span style="position: absolute;">
 <tbody style="float: right; page-break-before: right;">m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m </tbody>
--- a/layout/generic/crashtests/585598-1.xhtml
+++ b/layout/generic/crashtests/585598-1.xhtml
@@ -1,7 +1,7 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <span style="float: left;page-break-before: right;">
 <select style="float: left;">
 </select>
 </span>
 
 </html>
--- a/layout/generic/crashtests/595740-1.html
+++ b/layout/generic/crashtests/595740-1.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Testcase bug 595740 (crash on print-preview)</title>
 <style type="text/css">
 body { margin:0; font: 0.2in/0.2in serif; }
 </style>
 <div style="height: 1.75in"></div>
 y<br><span style="float: right; width: 1in; height: 2in"></span>z
--- a/layout/generic/crashtests/790260-1.html
+++ b/layout/generic/crashtests/790260-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="float:left">
   <div>
     <img src="about:blank" height="2000">
   </div>
   <div style="float:left">XYZ</div>
 </div>
 <div style="clear:both"></div>
--- a/layout/printing/crashtests/509839-1.html
+++ b/layout/printing/crashtests/509839-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
 <title>Crash [@ nsViewManager::CreateView][@ nsCSSFrameConstructor::AddFrameConstructionItemsInternal] on closing print preview with -moz-transform, position: fixed table displays</title>
 </head><body>
 <div style="position: fixed;">
 <div style="display: table-header-group; -moz-transform: rotate(1deg);">
 <div style="position: relative;"></div>
 <div style="display: table-row;page-break-before: always;"></div>
 </div>
 </body>
--- a/layout/printing/crashtests/509839-2.html
+++ b/layout/printing/crashtests/509839-2.html
@@ -1,8 +1,8 @@
-<html style="position: fixed; -moz-transform: scale(0.000001);"  class="reftest-print">
+<html style="position: fixed; -moz-transform: scale(0.000001);"  class="reftest-paged">
 <head>
 </head>
 <body>
 <div style="display: table-row;"></div>
 <div style="display: table-row; page-break-before: right;"></div>
 </body>
 </html>
--- a/layout/printing/crashtests/576878.xhtml
+++ b/layout/printing/crashtests/576878.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:mathml="http://www.w3.org/1998/Math/MathML"  class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:mathml="http://www.w3.org/1998/Math/MathML"  class="reftest-paged">
 
 <mathml:mfenced style="position: fixed;">
 <span style="position: inherit; float: right;"><span style="position:fixed;">b</span></span>
 </mathml:mfenced>
 <div style="page-break-before: always; "/>
 
 m
 </html>
--- a/layout/printing/crashtests/793844.html
+++ b/layout/printing/crashtests/793844.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>crash in nsContentList::nsContentList on print preview</title>
 </head><body>
 
 <iframe  onload="window.location.reload()" src="data:text/html,">
 </iframe>
 
 
--- a/layout/reftests/abs-pos/table-caption-5.html
+++ b/layout/reftests/abs-pos/table-caption-5.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <style>
       @page { size:5in 3in; margin:0.5in; }
       #rel {
         position: relative;
         margin: 2px;
         padding: 0;
       }
--- a/layout/reftests/abs-pos/table-cell-8.html
+++ b/layout/reftests/abs-pos/table-cell-8.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <style>
       @page { size:5in 3in; margin:0.5in; }
       #rel {
         position: relative;
         margin: 2px;
         padding: 0;
       }
--- a/layout/reftests/abs-pos/table-print-1-ref.html
+++ b/layout/reftests/abs-pos/table-print-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <style>
       #rel {
         position: relative;
         margin: 2px;
         padding: 0;
       }
       .abs {
--- a/layout/reftests/backgrounds/table-background-print-ref.html
+++ b/layout/reftests/backgrounds/table-background-print-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <table style="background-image: url('aqua-yellow-32x32.png')">
   <thead style="background-image: url('blue-16x20-green-16x20.png')">
     <tr>
       <td>
         Foo
       </td>
       <td style="background-image: url('yellow-32x32.png')">
--- a/layout/reftests/backgrounds/table-background-print.html
+++ b/layout/reftests/backgrounds/table-background-print.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <table background="aqua-yellow-32x32.png">
   <thead background="blue-16x20-green-16x20.png">
     <tr>
       <td>
         Foo
       </td>
       <td background="yellow-32x32.png">
--- a/layout/reftests/bidi/1161752-5-embed-ref.html
+++ b/layout/reftests/bidi/1161752-5-embed-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>Testcase for bug 1161752</title>
 <style>
   body,html { margin:0; padding:0; }
   div
     {
       height: 56px;
       width: 100px;
--- a/layout/reftests/bidi/1161752-5-embed.html
+++ b/layout/reftests/bidi/1161752-5-embed.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <meta charset="utf-8">
   <title></title>
 
   <style type="text/css">
 
   html { direction: rtl; }
 
--- a/layout/reftests/bugs/200774-1.html
+++ b/layout/reftests/bugs/200774-1.html
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" class="reftest-paged">
 
 <head>
 <title>Fixed DIV, Multipe Page Testcase</title>
 <style type="text/css">
 div.header { position: fixed;
 	width: 100%;
 	height: 1.5em;
 	top: 0;
--- a/layout/reftests/bugs/231823-1-ref.html
+++ b/layout/reftests/bugs/231823-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="height:1087px;">
 <div>Location:  </div>
 
 <p>
 We are located at 333 West San Carlos Street, Suite 1650, San Jose.
 Our building has a parking garage, and we will validate your parking.
 After you park, as you are walking out of the parking garage, you will
--- a/layout/reftests/bugs/231823-1.html
+++ b/layout/reftests/bugs/231823-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <table cellspacing="0" cellpadding="0">
 	<tr>
 		<td rowspan="2" valign="top">
 <div>Location:  </div>
 
 <p>
 We are located at 333 West San Carlos Street, Suite 1650, San Jose.
--- a/layout/reftests/bugs/243519-3-ref.html
+++ b/layout/reftests/bugs/243519-3-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 body { margin:0; }
 .pos { position:absolute; width:100px; height:100px; }
 </style>
 </head>
 <body>
 <div class="pos" style="top:0; left:60px; border:10px solid yellow;"></div>
--- a/layout/reftests/bugs/243519-3.html
+++ b/layout/reftests/bugs/243519-3.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 html { margin:10px; border:20px solid black; padding:30px; }
 body { margin:0; }
 div { position:absolute; width:100px; height:100px; }
 </style>
 </head>
 <body>
--- a/layout/reftests/bugs/243519-6-ref.html
+++ b/layout/reftests/bugs/243519-6-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 div { margin:10px; border:20px solid black; padding:30px; height:4in; position:absolute; }
 body { margin:0; }
 </style>
 </head>
 <body>
 <div></div>
--- a/layout/reftests/bugs/243519-6.html
+++ b/layout/reftests/bugs/243519-6.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 html { margin:10px; border:20px solid black; padding:30px; height:4in; position:absolute; }
 body { margin:0; }
 </style>
 </head>
 <body>
 </body>
--- a/layout/reftests/bugs/325292-1-ref.html
+++ b/layout/reftests/bugs/325292-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style>
 #second {border-bottom:green 5px solid}
 col {width:100px}
 </style>
 <body>
 <title>visibility collapse + columns + pagination</title>
 
 <table cellspacing="0" style="page-break-after:always" id="first">
--- a/layout/reftests/bugs/325292-1.html
+++ b/layout/reftests/bugs/325292-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>visibility collapse + columns + pagination</title>
 <style>
 table {border-bottom:green 5px solid}
 col {width:100px}
 </style>
 <body>
 <table cellspacing="0">
 <col><col style="visibility:collapse"><col>
--- a/layout/reftests/bugs/379349-3-ref.xhtml
+++ b/layout/reftests/bugs/379349-3-ref.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>CSS 2.1 Test Suite: Overflow Pagination (Multiple)</title>
   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"/>
   <style type="text/css">
     .overflow {
       border: solid 2pt silver;
--- a/layout/reftests/bugs/379349-3a.xhtml
+++ b/layout/reftests/bugs/379349-3a.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>CSS 2.1 Test Suite: Overflow Pagination (Multiple)</title>
   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"/>
   <style type="text/css">
     .container {
       height: 24pt;
--- a/layout/reftests/bugs/379349-3b.xhtml
+++ b/layout/reftests/bugs/379349-3b.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>CSS 2.1 Test Suite: Overflow Pagination (Multiple)</title>
   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"/>
   <style type="text/css">
     .container {
       height: 24pt;
--- a/layout/reftests/bugs/397428-1-ref.html
+++ b/layout/reftests/bugs/397428-1-ref.html
@@ -1,6 +1,6 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
   <div style="page-break-after:always;"></div>
     <br><br>
     Head
 </body></html>
--- a/layout/reftests/bugs/397428-1.html
+++ b/layout/reftests/bugs/397428-1.html
@@ -1,8 +1,8 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
   <div style="page-break-after:always;"></div>
   <table cellspacing="0" border="0" cellpadding="0"><tbody><tr><td>
     <table cellspacing="0" border="0" cellpadding="0"><tbody><tr><td><br><br></td></tr></tbody></table>
     Head
   </td></tr></tbody></table>
 </body></html>
--- a/layout/reftests/bugs/409084-1-ref.html
+++ b/layout/reftests/bugs/409084-1-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><style>
     td { vertical-align: top; }
     .break { page-break-before: always; height: 1in }
 </style></head>
 <body>
   <table cellspacing="0" cellpadding="0">
     <tbody>
       <tr><td rowspan="2">line 1<br/>line 2<br/>line 3</td></tr>
--- a/layout/reftests/bugs/409084-1a.html
+++ b/layout/reftests/bugs/409084-1a.html
@@ -1,13 +1,13 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><style>
     td { vertical-align: top; }
     .tall {
-      height: 4in; /* just longer than a reftest-print page. */
+      height: 4in; /* just longer than a reftest-paged page. */
       width:  1in;
       float:  left;
       border: 0px;
     }
 </style></head>
 <body>
   <table cellspacing="0" cellpadding="0">
     <tbody>
--- a/layout/reftests/bugs/409084-1b.html
+++ b/layout/reftests/bugs/409084-1b.html
@@ -1,13 +1,13 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><style>
     td { vertical-align: top; }
     .tall {
-      height: 4in; /* just longer than a reftest-print page. */
+      height: 4in; /* just longer than a reftest-paged page. */
       width:  1in;
       float:  left;
       border: 0px;
     }
 </style></head>
 <body>
   <table cellspacing="0" cellpadding="0">
     <tbody></tbody>
--- a/layout/reftests/bugs/409659-1-ref.html
+++ b/layout/reftests/bugs/409659-1-ref.html
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <img src="solidblue.png" style="height: 4in; width: 100px; display: block">
   </body>
 </html>
--- a/layout/reftests/bugs/409659-1a.html
+++ b/layout/reftests/bugs/409659-1a.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <input type="image" src="solidblue.png"
            style="height: 4in; width: 100px; display: block">
   </body>
 </html>
--- a/layout/reftests/bugs/409659-1b.html
+++ b/layout/reftests/bugs/409659-1b.html
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <img src="solidblue.png" style="height: 2in; width: 100px; display: block">
   </body>
 </html>
--- a/layout/reftests/bugs/409659-1c.html
+++ b/layout/reftests/bugs/409659-1c.html
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <img src="solidblue.png" style="height: 30in; width: 100px; display: block">
   </body>
 </html>
--- a/layout/reftests/bugs/409659-1d.html
+++ b/layout/reftests/bugs/409659-1d.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <img src="solidblue.png" style="height: 1in; width: 100px; display: block">
     <img src="solidblue.png" style="height: 1in; width: 100px; display: block">
     <img src="solidblue.png" style="height: 1in; width: 100px; display: block">
     <img src="solidblue.png" style="height: 1in; width: 100px; display: block">
   </body>
 </html>
--- a/layout/reftests/bugs/411585-1-ref.html
+++ b/layout/reftests/bugs/411585-1-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="position:absolute; top:0; left:0;">This text should be visible in print preview</div>
 <div style="height:800px;"></div>
 </body>
 </html>
--- a/layout/reftests/bugs/411585-1.html
+++ b/layout/reftests/bugs/411585-1.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="height:800px;"></div>
 <div style="position:absolute; top:0; left:0;">This text should be visible in print preview</div>
 </body>
 </html>
--- a/layout/reftests/bugs/411585-2-ref.html
+++ b/layout/reftests/bugs/411585-2-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="position:absolute; top:0; left:0; width:100px; height:100px; background:black; opacity:0.5;">Hi</div>
 <div style="height:800px;"></div>
 </body>
 </html>
--- a/layout/reftests/bugs/411585-2.html
+++ b/layout/reftests/bugs/411585-2.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <div style="height:800px;"></div>
 <div style="opacity:0.5;">
   <div style="position:absolute; top:0; left:0; width:100px; height:100px; background:black;">Hi</div>
 </div>
 </body>
 </html>
--- a/layout/reftests/bugs/411585-3-ref.html
+++ b/layout/reftests/bugs/411585-3-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0">
 <div style="position:absolute; top:0; left:0; width:100px; height:100px; background:black;">Hi</div>
 <div style="height:800px;"></div>
 </body>
 </html>
--- a/layout/reftests/bugs/411585-3.html
+++ b/layout/reftests/bugs/411585-3.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0">
 <div style="height:800px;"></div>
 <div style="position:absolute; clip:rect(-800px 200px 100px 0px);">
   <div style="position:absolute; top:-800px; left:0; width:100px; height:100px; background:black;">Hi</div>
 </div>
 </body>
 </html>
--- a/layout/reftests/bugs/417676-ref.html
+++ b/layout/reftests/bugs/417676-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Fixed Positioning Test</title>
 <style type="text/css">
   html, body { margin: 0; padding: 0; }
 </style>
 
 <div style="width: 3in; border: solid; font-size: 16px;">
 This box must be repeated at this same position on the first, second, and third pages.
 </div>
--- a/layout/reftests/bugs/417676.html
+++ b/layout/reftests/bugs/417676.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Fixed Positioning Test</title>
 
 <div style="position: fixed; left: 0; top: 0; width: 3in; border: solid; font-size: 16px;">
 This box must be repeated at this same position on the first, second, and third pages.
 </div>
 
 <p style="width: 0; height: 5in;">
\ No newline at end of file
--- a/layout/reftests/bugs/421710-1.html
+++ b/layout/reftests/bugs/421710-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <style>
 #spContainer {
 clear: both;
 float: left !important;
 margin:0 !important;
 padding: 0 0 0 22px !important;
 min-width: 980px;
--- a/layout/reftests/bugs/422249-1-ref.html
+++ b/layout/reftests/bugs/422249-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><style>
  .tall { 
    border: 1px solid black;
    line-height: 20px;
  }
 </style></head>
 <body style="margin:0">
   <table class="tall" cellspacing="0" cellpadding="0"><td valign="top">
--- a/layout/reftests/bugs/422249-1.html
+++ b/layout/reftests/bugs/422249-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><style>
  .tall { 
    border: 1px solid black;
    height: 2002px;
    line-height: 20px;
  }
 </style></head>
 <body style="margin:0">
--- a/layout/reftests/bugs/422678-1-ref.html
+++ b/layout/reftests/bugs/422678-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <table border="1">
   <tbody>
     <tr>
       <td style="background:yellow;"><div style="height:800px;">Hello</div></td>
     </tr>
   </tbody>
 </table> 
--- a/layout/reftests/bugs/422678-1.html
+++ b/layout/reftests/bugs/422678-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
 <table border="1">
   <tbody>
     <tr>
       <td style="background:yellow; height:800px;" valign="top">Hello</td>
     </tr>
   </tbody>
 </table> 
--- a/layout/reftests/bugs/427017-1.xhtml
+++ b/layout/reftests/bugs/427017-1.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <body>
 <div style="position: absolute; border: 5px solid black;">
   <div style="position: fixed; page-break-before: left;"/>
   <div style="display: table-header-group; page-break-after: right;">
     <div style="position: absolute;">
       <div style="position: fixed;"/>
     </div>
   </div>
--- a/layout/reftests/bugs/467444-1-ref.html
+++ b/layout/reftests/bugs/467444-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print"><head>
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged"><head>
 <style>
 div.spacer {
   height: 5px;
   width:  10px;
 }
 img, td.spacer {
   height: 140px;
   width:  30px;
--- a/layout/reftests/bugs/467444-1.html
+++ b/layout/reftests/bugs/467444-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print"><head>
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged"><head>
 <style>
 div.spacer {
   height: 5px;
   width:  10px;
 }
 img, td.spacer {
   height: 140px;
   width:  30px;
--- a/layout/reftests/bugs/531200-1-ref.html
+++ b/layout/reftests/bugs/531200-1-ref.html
@@ -1,9 +1,9 @@
-<html  class="reftest-print">
+<html  class="reftest-paged">
 <head>
 <title>push rowspan on to next page if it can't be splitted</title>
 <style>
 img {
   width: 10px;
   height: 30px;
 }
 </style>
--- a/layout/reftests/bugs/531200-1.html
+++ b/layout/reftests/bugs/531200-1.html
@@ -1,9 +1,9 @@
-<html  class="reftest-print">
+<html  class="reftest-paged">
 <head>
 <title>push rowspan on to next page if it can't be splitted</title>
 <style>
 img {
   width: 10px;
   height: 30px;
 }
 </style>
--- a/layout/reftests/bugs/563584-1-ref.html
+++ b/layout/reftests/bugs/563584-1-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, reftest-print version of original testcase</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-1.html
+++ b/layout/reftests/bugs/563584-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, reftest-print version of original testcase</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-10-ref.html
+++ b/layout/reftests/bugs/563584-10-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test that nsFloatManager::ClearFloats calls ClearContinues</title>
 <body style="margin: 0">
 <div style="background: aqua; height: 1in; width: 1in"></div>
 <div style="page-break-before: always; background: fuchsia; height: 1.5in; width: 1in"></div>
 <div style="height: 0.25in; background: yellow; width: 1in"></div>
--- a/layout/reftests/bugs/563584-10a.html
+++ b/layout/reftests/bugs/563584-10a.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test that nsFloatManager::ClearFloats calls ClearContinues</title>
 <body style="margin: 0">
 <div style="float: left;">
   <div>
     <div style="display:inline-block; vertical-align: top; background: aqua; height: 1in; width: 1in"></div>
   </div>
   <div>
     <div style="display:inline-block; vertical-align: top; background: fuchsia; height: 1.5in; width: 1in"></div>
--- a/layout/reftests/bugs/563584-10b.html
+++ b/layout/reftests/bugs/563584-10b.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test that nsFloatManager::ClearFloats calls ClearContinues</title>
 <body style="margin: 0">
 <div style="float: left;">
   <div>
     <div style="display:inline-block; vertical-align: top; background: aqua; height: 1in; width: 1in"></div>
   </div>
   <div>
     <div style="display:inline-block; vertical-align: top; background: fuchsia; height: 1.5in; width: 1in"></div>
--- a/layout/reftests/bugs/563584-11-ref.html
+++ b/layout/reftests/bugs/563584-11-ref.html
@@ -1,6 +1,6 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test that mIsTopOfPage is not set when clearing</title>
 <body style="margin: 0">
 <div style="background: aqua; height: 1in; width: 1in"></div>
 <div style="background: fuchsia; height: 1.5in; width: 1in; page-break-before: always"></div>
--- a/layout/reftests/bugs/563584-11.html
+++ b/layout/reftests/bugs/563584-11.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test that mIsTopOfPage is not set when clearing</title>
 <body style="margin: 0">
 <div style="float: left; background: aqua; height: 1in; width: 1in"></div>
 <div style="clear: left">
   <div style="display:inline-block; vertical-align: top; background: fuchsia; height: 1.5in; width: 1in"></div>
 </div>
--- a/layout/reftests/bugs/563584-2-ref.html
+++ b/layout/reftests/bugs/563584-2-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, reftest-print version of original testcase, with anchor points</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-2.html
+++ b/layout/reftests/bugs/563584-2.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, reftest-print version of original testcase, with anchor points</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-3-ref.html
+++ b/layout/reftests/bugs/563584-3-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, variant split over three pages</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-3.html
+++ b/layout/reftests/bugs/563584-3.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, variant split over three pages</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-4-ref.html
+++ b/layout/reftests/bugs/563584-4-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, variant split over three pages, with anchor points</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-4.html
+++ b/layout/reftests/bugs/563584-4.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <title>Bug 563584, variant split over three pages, with anchor points</title>
 <style type="text/css">
 
  div{
    border: 1px solid green; 
  }
 
--- a/layout/reftests/bugs/563584-5-ref.html
+++ b/layout/reftests/bugs/563584-5-ref.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for handling of float that is reflowed and then entirely pushed</title>
 <body style="margin: 0">
 <div style="background: blue; height: 1.75in"></div>
 <div style="page-break-before: always; background: yellow; padding-top: 1in; width: 3in">
   <div>hello</div>
 </div>
--- a/layout/reftests/bugs/563584-5.html
+++ b/layout/reftests/bugs/563584-5.html
@@ -1,9 +1,9 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for handling of float that is reflowed and then entirely pushed</title>
 <body style="margin: 0">
 <div style="background: blue; height: 1.75in"></div>
 <div style="float: left; background: yellow; width: 3in">
   <span style="display:inline-block; height: 1in; width: 1in; vertical-align: top"></span>
   <div>hello</div>
 </div>
--- a/layout/reftests/bugs/563584-6-printing-ref.html
+++ b/layout/reftests/bugs/563584-6-printing-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Testcase for float breaking (reference)</title>
 <body style="margin: 0">
 <div style="width: 3.5in; height: 0.5in; background: blue"></div>
 <div>
   <div style="display: inline-block; vertical-align: top; height: 1in; width: 1in; background: aqua"></div
   ><div style="display: inline-block; vertical-align: top; height: 1in; width: 2in; background: fuchsia"></div>
 </div>
 <div>
--- a/layout/reftests/bugs/563584-6-printing.html
+++ b/layout/reftests/bugs/563584-6-printing.html
@@ -1,9 +1,9 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Testcase for float breaking</title>
 <body style="margin: 0">
 <div style="float: left; width: 3.5in; height: 0.5in; background: blue"></div>
 <div style="float: left; width: 1in; height: 1in; background: aqua"></div>
 <!-- test to see where this float goes -->
 <div style="float: left; width: 2in; height: 1.75in; background: fuchsia"></div>
 
--- a/layout/reftests/bugs/563584-7-ref.html
+++ b/layout/reftests/bugs/563584-7-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin: 0">
 <div>
   <div style="display: inline-block; background: yellow; width: 1in; height: 1in; vertical-align: top"></div
   ><div style="display: inline-block; background: aqua; width: 2in; height: 1in; vertical-align: top"></div>
 </div>
 <div>
   <div style="display: inline-block; width: 1in; height: 1in; vertical-align: top"></div
   ><div style="display: inline-block; background: aqua; width: 2in; height: 1in; vertical-align: top"></div>
--- a/layout/reftests/bugs/563584-7.html
+++ b/layout/reftests/bugs/563584-7.html
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin: 0">
 <div style="float: left; background: yellow; width: 1in; height: 1in"></div>
 <div style="float: left; background: aqua; width: 2in; height: 4in"></div>
--- a/layout/reftests/bugs/563584-8a-ref.html
+++ b/layout/reftests/bugs/563584-8a-ref.html
@@ -1,6 +1,6 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="height: 2in; width: 1in; background: aqua"></div>
 <div style="height: 1in; width: 1in; background: yellow; page-break-before: always"></div>
--- a/layout/reftests/bugs/563584-8a.html
+++ b/layout/reftests/bugs/563584-8a.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="float: left">
   <div><div style="display:inline-block; vertical-align: top; height: 3in; width: 1in; background: aqua"></div></div>
   <div><div style="display:inline-block; vertical-align: top; height: 1in; width: 1in; background: yellow"></div></div>
 </div>
--- a/layout/reftests/bugs/563584-8b-ref.html
+++ b/layout/reftests/bugs/563584-8b-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div>
   <div style="display:inline-block; vertical-align: top; height: 1in; width: 1in; background: fuchsia"></div
   ><div style="display:inline-block; vertical-align: top; height: 2in; width: 1in; background: aqua"></div>
 </div>
 <div style="page-break-before:always">
   <!-- FIXME: uncomment this when bug 511551 is fixed
--- a/layout/reftests/bugs/563584-8b.html
+++ b/layout/reftests/bugs/563584-8b.html
@@ -1,9 +1,9 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="float: left; height: 1in; width: 1in; background: fuchsia"></div>
 <div style="float: left">
   <div><div style="display:inline-block; vertical-align: top; height: 3in; width: 1in; background: aqua"></div></div>
   <div><div style="display:inline-block; vertical-align: top; height: 1in; width: 1in; background: yellow"></div></div>
 </div>
--- a/layout/reftests/bugs/563584-8c-ref.html
+++ b/layout/reftests/bugs/563584-8c-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="height: 2in"></div>
 <div style="height: 2in; width: 1in; background: aqua; page-break-before: always"></div>
 <div style="height: 1in; width: 1in; background: yellow; page-break-before: always"></div>
--- a/layout/reftests/bugs/563584-8c.html
+++ b/layout/reftests/bugs/563584-8c.html
@@ -1,9 +1,9 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="height: 1in"></div>
 <div style="float: left">
   <div><div style="display:inline-block; vertical-align: top; height: 3in; width: 1in; background: aqua"></div></div>
   <div><div style="display:inline-block; vertical-align: top; height: 1in; width: 1in; background: yellow"></div></div>
 </div>
--- a/layout/reftests/bugs/563584-8d-ref.html
+++ b/layout/reftests/bugs/563584-8d-ref.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="height: 1in"></div>
 <div style="height: 1in; width: 1in; background: fuchsia"></div>
 <div style="height: 2in; width: 1in; background: aqua; page-break-before: always"></div>
 <div style="height: 1in; width: 1in; background: yellow; page-break-before: always"></div>
--- a/layout/reftests/bugs/563584-8d.html
+++ b/layout/reftests/bugs/563584-8d.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Test for setting and handling of mIsTopOfPage on floats</title>
 <body style="margin: 0">
 <div style="height: 1in"></div>
 <div style="float: left; height: 1in; width: 1in; background: fuchsia"></div>
 <div style="float: left">
   <div><div style="display:inline-block; vertical-align: top; height: 3in; width: 1in; background: aqua"></div></div>
   <div><div style="display:inline-block; vertical-align: top; height: 1in; width: 1in; background: yellow"></div></div>
 </div>
--- a/layout/reftests/bugs/582037-2-ref.html
+++ b/layout/reftests/bugs/582037-2-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0; border: none">
+<html class="reftest-paged" style="margin: 0; padding: 0; border: none">
   <body style="margin: 0; padding: 0; border: none">
     <div style="width: 2in; height: 2in; background: green;">
     </div>
   </body>
 </html>
--- a/layout/reftests/bugs/582037-2a.html
+++ b/layout/reftests/bugs/582037-2a.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <!-- This test assumes that the document is 2in tall by 4in wide. -->
 <html style="margin: 0; padding: 0; border: none; overflow: hidden"
-      class="reftest-print">
+      class="reftest-paged">
   <body style="margin: 0; padding: 0; border: none">
     <div style="position: fixed; height: 100%; background: green">
       <img src="solidblue.png" style="height: 100%; visibility: hidden;">
     </div>
   </body>
 </html>
 
--- a/layout/reftests/bugs/582037-2b.html
+++ b/layout/reftests/bugs/582037-2b.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <!-- This test assumes that the document is 2in tall by 4in wide. -->
 <html style="margin: 0; padding: 0; border: none; height: 100%; overflow: hidden"
-      class="reftest-print">
+      class="reftest-paged">
   <body style="margin: 0; padding: 0; border: none; height: 100%">
     <div style="float: left; height: 100%; background: green">
       <img src="solidblue.png" style="height: 100%; visibility: hidden;">
     </div>
   </body>
 </html>
 
--- a/layout/reftests/bugs/585598-2-ref.xhtml
+++ b/layout/reftests/bugs/585598-2-ref.xhtml
@@ -1,6 +1,6 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <div style="page-break-before: always;">
 <select style="display:block">
 </select>
 </div>
 </html>
--- a/layout/reftests/bugs/585598-2.xhtml
+++ b/layout/reftests/bugs/585598-2.xhtml
@@ -1,6 +1,6 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <span style="float: left;page-break-before: always;">
 <select style="float: left;">
 </select>
 </span>
 </html>
--- a/layout/reftests/bugs/609272-1-ref.html
+++ b/layout/reftests/bugs/609272-1-ref.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   This text should show up
 </html>
--- a/layout/reftests/bugs/609272-1.html
+++ b/layout/reftests/bugs/609272-1.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="height: 0; overflow: hidden">
+<html class="reftest-paged" style="height: 0; overflow: hidden">
   This text should show up
 </html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1042,17 +1042,17 @@ random-if(gtkWidget) == 424074-1-ref2.xu
 == 424465-1.html 424465-1-ref.html
 == 424631-1.html 424631-1-ref.html
 == 424710-1.html 424710-1-ref.html
 fuzzy-if(skiaContent,1,160000) == 424766-1.html 424766-1-ref.html
 == 425972-1.html 425972-1-ref.html
 == 425972-2.html 425972-2-ref.html
 != 425972-1.html 425972-2.html
 == 426629-1.html 426629-1-ref.html
-asserts(3) asserts-if(styloVsGecko,6) != 427017-1.xhtml about:blank # crash test (needs reftest-print). existing assertions are bug 457400.
+asserts(3) asserts-if(styloVsGecko,6) != 427017-1.xhtml about:blank # crash test (needs reftest-paged). existing assertions are bug 457400.
 == 427129-scrollframe.html 427129-ref.html
 == 427129-table.html 427129-ref.html
 == 427129-image.html 427129-ref.html
 == 427129-table-caption.html 427129-table-caption-ref.html
 fuzzy-if(skiaContent,1,60) == 427370-1.html 427370-1-ref.html
 == 427730-1.html 427730-1-ref.html
 == 428278.html 428278-ref.html
 == 428423-1a.html 428423-1-ref.html
--- a/layout/reftests/css-animations/print-no-animations-notref.html
+++ b/layout/reftests/css-animations/print-no-animations-notref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Static CSS animation</title>
 <style>
 
 p {
   color: blue;
 }
 
 </style>
--- a/layout/reftests/css-animations/print-no-animations-ref.html
+++ b/layout/reftests/css-animations/print-no-animations-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Static CSS animation</title>
 <style>
 
 p {
   color: olive;
 }
 
 </style>
--- a/layout/reftests/css-animations/print-no-animations.html
+++ b/layout/reftests/css-animations/print-no-animations.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Static CSS animation</title>
 <style>
 
 @keyframes a {
   from, to { color: blue }
 }
 
 p {
--- a/layout/reftests/css-animations/reftest.list
+++ b/layout/reftests/css-animations/reftest.list
@@ -1,12 +1,12 @@
 == screen-animations.html screen-animations-ref.html
 != screen-animations.html screen-animations-notref.html
-skip-if(stylo||styloVsGecko) fails-if(!stylo&&!styloVsGecko) == print-no-animations.html print-no-animations-ref.html # reftest harness doesn't actually make pres context non-dynamic for reftest-print tests. Bug 1374154 for stylo
-skip-if(stylo||styloVsGecko) fails-if(!stylo&&!styloVsGecko) != print-no-animations.html print-no-animations-notref.html # reftest harness doesn't actually make pres context non-dynamic for reftest-print tests. Bug 1374154 for stylo
+skip-if(stylo||styloVsGecko) fails-if(!stylo&&!styloVsGecko) == print-no-animations.html print-no-animations-ref.html # reftest harness doesn't actually make pres context non-dynamic for reftest-paged tests. Bug 1374154 for stylo
+skip-if(stylo||styloVsGecko) fails-if(!stylo&&!styloVsGecko) != print-no-animations.html print-no-animations-notref.html # reftest harness doesn't actually make pres context non-dynamic for reftest-paged tests. Bug 1374154 for stylo
 == animate-opacity.html animate-opacity-ref.html
 == animate-preserves3d.html animate-preserves3d-ref.html
 == in-visibility-hidden-animation.html in-visibility-hidden-animation-ref.html
 == in-visibility-hidden-animation-pseudo-element.html in-visibility-hidden-animation-pseudo-element-ref.html
 == partially-out-of-view-animation.html partially-out-of-view-animation-ref.html
 == animate-display-table-opacity.html animate-display-table-opacity-ref.html
 # We need to run 100% opacity test case when OMTA is disabled to check that the animation creates a stacking context even if the animation is not running on the compositor
 test-pref(layers.offmainthreadcomposition.async-animations,false) == stacking-context-opacity-1-animation.html stacking-context-animation-ref.html
--- a/layout/reftests/css-grid/grid-fragmentation-010-ref.html
+++ b/layout/reftests/css-grid/grid-fragmentation-010-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Reference: Fragmentation in print context of height:auto grid, not top-of-page</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
--- a/layout/reftests/css-grid/grid-fragmentation-010.html
+++ b/layout/reftests/css-grid/grid-fragmentation-010.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>CSS Grid Test: Fragmentation in print context of height:auto grid, not top-of-page</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
   <link rel="match" href="grid-fragmentation-010-ref.html">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/css-grid/grid-fragmentation-011-ref.html
+++ b/layout/reftests/css-grid/grid-fragmentation-011-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Reference: Fragmentation in print context of height:auto grid with first grid row at top-of-page</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
--- a/layout/reftests/css-grid/grid-fragmentation-011.html
+++ b/layout/reftests/css-grid/grid-fragmentation-011.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>CSS Grid Test: Fragmentation in print context of height:auto grid with first grid row at top-of-page</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
   <link rel="match" href="grid-fragmentation-011-ref.html">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/css-grid/grid-fragmentation-012-ref.html
+++ b/layout/reftests/css-grid/grid-fragmentation-012-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Reference: Fragmentation in print context of height:auto grid, not top-of-page, forced breaks</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
--- a/layout/reftests/css-grid/grid-fragmentation-012.html
+++ b/layout/reftests/css-grid/grid-fragmentation-012.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>CSS Grid Test: Fragmentation in print context of height:auto grid, not top-of-page, forced breaks</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
   <link rel="match" href="grid-fragmentation-012-ref.html">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/css-grid/grid-fragmentation-013-ref.html
+++ b/layout/reftests/css-grid/grid-fragmentation-013-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Reference: Fragmentation in print context of height:auto grid, item break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
--- a/layout/reftests/css-grid/grid-fragmentation-013.html
+++ b/layout/reftests/css-grid/grid-fragmentation-013.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>CSS Grid Test: Fragmentation in print context of height:auto grid, item break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
   <link rel="match" href="grid-fragmentation-013-ref.html">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/css-grid/grid-fragmentation-014-ref.html
+++ b/layout/reftests/css-grid/grid-fragmentation-014-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>Reference: Fragmentation in print context of height:auto grid, item break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0;
 }
--- a/layout/reftests/css-grid/grid-fragmentation-014.html
+++ b/layout/reftests/css-grid/grid-fragmentation-014.html
@@ -1,14 +1,14 @@
 <!DOCTYPE HTML>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html lang="en-US" class="reftest-print"><head>
+<html lang="en-US" class="reftest-paged"><head>
   <meta charset="utf-8">
   <title>CSS Grid Test: Fragmentation in print context of height:auto grid, item break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
   <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
   <link rel="match" href="grid-fragmentation-014-ref.html">
   <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/css-import/445415-2-ref.xhtml
+++ b/layout/reftests/css-import/445415-2-ref.xhtml
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 
 <body>
 <div style="color: cyan">cyan</div>
 <div style="color: blue">blue</div>
 <div style="color: yellow">yellow</div>
 </body>
 
 </html>
--- a/layout/reftests/css-import/445415-2a.xhtml
+++ b/layout/reftests/css-import/445415-2a.xhtml
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 
 <head>
     <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
           media="print" />
     <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
           media="screen" />
 </head>
 
--- a/layout/reftests/css-import/445415-2b.xhtml
+++ b/layout/reftests/css-import/445415-2b.xhtml
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 
 <head>
     <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
           media="screen" />
     <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
           media="print" />
 </head>
 
--- a/layout/reftests/css-mediaqueries/mq_print-ref.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print-ref.xhtml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
 
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - print mode test - Reference</title>
   <style><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     p.y { color: aqua; }
     p.n { color: yellow; }
   ]]></style>
 </head>
--- a/layout/reftests/css-mediaqueries/mq_print_aspectratio.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_aspectratio.xhtml
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - aspect-ratio</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
     /* not sure if the 3/5 will work as aspect ratio is width/height */
--- a/layout/reftests/css-mediaqueries/mq_print_deviceaspectratio.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_deviceaspectratio.xhtml
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - Device-aspect-ratio</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
     /* not sure if the 3/5 will work as aspect ratio is width/height */
--- a/layout/reftests/css-mediaqueries/mq_print_deviceheight.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_deviceheight.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - device-height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3inches/216pt/76mm in the reftest-print class*/
+    /* we set the height to 3inches/216pt/76mm in the reftest-paged class*/
     @media (device-height: 3in) { .c { color: aqua; } }    /* y */
     @media (device-height: 216pt) { .d { color: aqua; } }  /* y */
     @media (device-height: 76.2mm) { .e { color: aqua; } }  /* y */
 
     @media print and (device-height: 3in) { .f {color: aqua; } }  /* y */
     @media print and (device-height: 216pt) { .g {color: aqua; } }/* y */
     @media print and (device-height: 76.2mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_devicewidth.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_devicewidth.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - device-width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     @media (device-width: 5in) { .c { color: aqua; } }    /* y */
     @media (device-width: 360pt) { .d { color: aqua; } }  /* y */
     @media (device-width: 127mm) { .e { color: aqua; } }  /* y */
 
     @media print and (device-width: 5in) { .f {color: aqua; } }  /* y */
     @media print and (device-width: 360pt) { .g {color: aqua; } }/* y */
     @media print and (device-width: 127mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_height.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_height.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3 inches/216pt/76mm in the reftest-print class*/
+    /* we set the height to 3 inches/216pt/76mm in the reftest-paged class*/
     @media (height: 3in) { .c { color: aqua; } }    /* y */
     @media (height: 216pt) { .d { color: aqua; } }  /* y */
     @media (height: 76.2mm) { .e { color: aqua; } }  /* y */
 
     @media print and (height: 3in) { .f {color: aqua; } }  /* y */
     @media print and (height: 216pt) { .g {color: aqua; } }/* y */
     @media print and (height: 76.2mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_maxheight.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_maxheight.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - max-height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3 inches/216pt/76mm in the reftest-print class*/
+    /* we set the height to 3 inches/216pt/76mm in the reftest-paged class*/
     @media (max-height: 3in) { .c { color: aqua; } }    /* y */
     @media (max-height: 216pt) { .d { color: aqua; } }  /* y */ 
     @media (max-height: 76.2mm) { .e { color: aqua; } }  /* y */
 
     @media print and (max-height: 3in) { .f {color: aqua; } }  /* y */ 
     @media print and (max-height: 216pt) { .g {color: aqua; } }/* y */
     @media print and (max-height: 76.2mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_maxheight_updown.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_maxheight_updown.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - max-height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3 inches/216pt/76mm in the reftest-print class*/
+    /* we set the height to 3 inches/216pt/76mm in the reftest-paged class*/
     /* test values greater than */
     @media (max-height: 11in) { .c { color: aqua; } }    /* y */
     @media (max-height: 1100pt) { .d { color: aqua; } }  /* y */ 
     @media (max-height: 110mm) { .e { color: aqua; } }  /* y */
 
     @media print and (max-height: 11in) { .f {color: aqua; } }  /* y */ 
     @media print and (max-height: 1100pt) { .g {color: aqua; } }/* y */
     @media print and (max-height: 110mm) { .h {color: aqua; } }/* y */
--- a/layout/reftests/css-mediaqueries/mq_print_maxwidth.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_maxwidth.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - max-width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     @media (max-width: 5in) { .c { color: aqua; } }    /* y */
     @media (max-width: 360pt) { .d { color: aqua; } }  /* y */ 
     @media (max-width: 127mm) { .e { color: aqua; } }  /* y */
 
     @media print and (max-width: 5in) { .f {color: aqua; } }  /* y */ 
     @media print and (max-width: 360pt) { .g {color: aqua; } }/* y */
     @media print and (max-width: 127mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_maxwidth_updown.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_maxwidth_updown.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - max-width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     /* test values great than */
     @media (max-width: 31in) { .c { color: aqua; } }    /* y */
     @media (max-width: 3141pt) { .d { color: aqua; } }  /* y */ 
     @media (max-width: 314mm) { .e { color: aqua; } }  /* y */
 
     @media print and (max-width: 31in) { .f {color: aqua; } }  /* y */ 
     @media print and (max-width: 3141pt) { .g {color: aqua; } }/* y */
     @media print and (max-width: 314mm) { .h {color: aqua; } }/* y */
--- a/layout/reftests/css-mediaqueries/mq_print_minheight.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_minheight.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - min-height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3 inches/216pt/76.2mm in the reftest-print class*/
+    /* we set the height to 3 inches/216pt/76.2mm in the reftest-paged class*/
     @media (min-height: 3in) { .c { color: aqua; } }    /* y */
     @media (min-height: 216pt) { .d { color: aqua; } }  /* y */ 
     @media (min-height: 76.2mm) { .e { color: aqua; } }  /* y */
 
     @media print and (min-height: 3in) { .f {color: aqua; } }  /* y */ 
     @media print and (min-height: 216pt) { .g {color: aqua; } }/* y */
     @media print and (min-height: 76.2mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_minheight_updown.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_minheight_updown.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - min-height</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the height to 3 inches/216pt/76.2mm in the reftest-print class*/
+    /* we set the height to 3 inches/216pt/76.2mm in the reftest-paged class*/
     /* test less than set value */
     @media (min-height: 1.57in) { .c { color: aqua; } }    /* y */
     @media (min-height: 157pt) { .d { color: aqua; } }  /* y */ 
     @media (min-height: 31.4mm) { .e { color: aqua; } }  /* y */
 
     @media print and (min-height: 1.57in) { .f {color: aqua; } }  /* y */ 
     @media print and (min-height: 157pt) { .g {color: aqua; } }/* y */
     @media print and (min-height: 31.4mm) { .h {color: aqua; } }/* y */
--- a/layout/reftests/css-mediaqueries/mq_print_minwidth.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_minwidth.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - min-width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     @media (min-width: 5in) { .c { color: aqua; } }    /* y */
     @media (min-width: 360pt) { .d { color: aqua; } }  /* y */ 
     @media (min-width: 127mm) { .e { color: aqua; } }  /* y */
 
     @media print and (min-width: 5in) { .f {color: aqua; } }  /* y */ 
     @media print and (min-width: 360pt) { .g {color: aqua; } }/* y */
     @media print and (min-width: 127mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/css-mediaqueries/mq_print_minwidth_updown.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_minwidth_updown.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - min-width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     /* test values less than set */
     @media (min-width: 3.14in) { .c { color: aqua; } }    /* y */
     @media (min-width: 314pt) { .d { color: aqua; } }  /* y */ 
     @media (min-width: 31.4mm) { .e { color: aqua; } }  /* y */
 
     @media print and (min-width: 3.14in) { .f {color: aqua; } }  /* y */ 
     @media print and (min-width: 314pt) { .g {color: aqua; } }/* y */
     @media print and (min-width: 31.4mm) { .h {color: aqua; } }/* y */
--- a/layout/reftests/css-mediaqueries/mq_print_orientation-ref.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_orientation-ref.xhtml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
 
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - print mode test - orientation</title>
   <style><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     p.y { color: aqua; }
     p.n { color: yellow; }
   ]]></style>
 </head>
--- a/layout/reftests/css-mediaqueries/mq_print_orientation.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_orientation.xhtml
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - orientation</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
     /* Print reftests are 5/3, which is landscape. */
--- a/layout/reftests/css-mediaqueries/mq_print_width.xhtml
+++ b/layout/reftests/css-mediaqueries/mq_print_width.xhtml
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <head>
   <title>Media Query - Print mode test - Width</title>
   <style type="text/css"><![CDATA[
     p {height: 10px; width: 100px; color: yellow; }
     @media print { .a { color: aqua; } }
     @media screen { .b { color: aqua; } }
 
-    /* we set the width to 5 inches/360pt/127mm in the reftest-print class*/
+    /* we set the width to 5 inches/360pt/127mm in the reftest-paged class*/
     @media (width: 5in) { .c { color: aqua; } }    /* y */
     @media (width: 360pt) { .d { color: aqua; } }  /* y */
     @media (width: 127mm) { .e { color: aqua; } }  /* y */
 
     @media print and (width: 5in) { .f {color: aqua; } }  /* y */
     @media print and (width: 360pt) { .g {color: aqua; } }/* y */
     @media print and (width: 127mm) { .h {color: aqua; } }/* y */
 
--- a/layout/reftests/details-summary/details-page-break-after-1.html
+++ b/layout/reftests/details-summary/details-page-break-after-1.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!-- Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/ -->
 
-<html class="reftest-print">
+<html class="reftest-paged">
   <style>
   summary::-moz-list-bullet {
     /* Hide the triangle for comparing with div in reftest. */
     list-style-type: none;
   }
   </style>
   <body>
     <details open>
--- a/layout/reftests/details-summary/details-page-break-after-2.html
+++ b/layout/reftests/details-summary/details-page-break-after-2.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!-- Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/ -->
 
-<html class="reftest-print">
+<html class="reftest-paged">
   <style>
   summary::-moz-list-bullet {
     /* Hide the triangle for comparing with div in reftest. */
     list-style-type: none;
   }
   </style>
   <body>
     <details open>
--- a/layout/reftests/details-summary/details-page-break-before-1.html
+++ b/layout/reftests/details-summary/details-page-break-before-1.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!-- Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/ -->
 
-<html class="reftest-print">
+<html class="reftest-paged">
   <style>
   summary::-moz-list-bullet {
     /* Hide the triangle for comparing with div in reftest. */
     list-style-type: none;
   }
   </style>
   <body>
     <details open>
--- a/layout/reftests/details-summary/details-page-break-before-2.html
+++ b/layout/reftests/details-summary/details-page-break-before-2.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!-- Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/ -->
 
-<html class="reftest-print">
+<html class="reftest-paged">
   <style>
   summary::-moz-list-bullet {
     /* Hide the triangle for comparing with div in reftest. */
     list-style-type: none;
   }
   </style>
   <body>
     <details open>
--- a/layout/reftests/details-summary/details-two-pages.html
+++ b/layout/reftests/details-summary/details-two-pages.html
@@ -1,12 +1,12 @@
 <!DOCTYPE html>
 <!-- Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/ -->
 
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div>
       <div style="page-break-after: always;">Summary</div>
       <p>This is the details.</p>
     </div>
   </body>
 </html>
--- a/layout/reftests/image/image-object-fit-with-background-2-ref.html
+++ b/layout/reftests/image/image-object-fit-with-background-2-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <meta charset="utf-8">
     <style type="text/css">
       .fakeBackground {
         background: salmon;
         height: 3in;
         width: 32px;
       }
--- a/layout/reftests/image/image-object-fit-with-background-2.html
+++ b/layout/reftests/image/image-object-fit-with-background-2.html
@@ -7,27 +7,27 @@
      This testcase ensures that we paint the background around an opaque image,
      when the image is kept from filling the container via 'object-fit' (and
      the img element is fragmented). This is an interesting case because, by
      default, images fill their container, which means we can often optimize
      away the background completely. BUT, if "object-fit" prevents the image
      from filling its container, we can't optimize away the background; it need
      to be painted in the uncovered area.
 -->
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <meta charset="utf-8">
     <style type="text/css">
       img.test {
         background: salmon;
         object-fit: none;
         width: 32px;
         /* We make the height 6in larger than the image's intrinsic height,
          * which gives us the following happy results:
-         *  (1) the <img> will split over several 3in tall reftest-print cards
+         *  (1) the <img> will split over several 3in tall reftest-paged cards
          *      (so, we get to test fragmentation).
          *  (2) the image pixels end up on the second fragment (not the first),
          *      so we get to test image-data painting on later fragments.
          *  (3) the reference case can easily match us using a simple img
          *      with 3in-tall divs before & after it.
          */
         height: calc(32px + 6in);
         display: block; /* Required for fragmentation */
--- a/layout/reftests/image/image-object-position-with-background-2-ref.html
+++ b/layout/reftests/image/image-object-position-with-background-2-ref.html
@@ -1,14 +1,14 @@
 <!DOCTYPE html>
 <!--
      Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/
 -->
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <meta charset="utf-8">
     <style type="text/css">
       img.test {
         background: salmon;
         padding-left: 10px;
         padding-top: 20px;
         width: 22px;
--- a/layout/reftests/image/image-object-position-with-background-2.html
+++ b/layout/reftests/image/image-object-position-with-background-2.html
@@ -7,17 +7,17 @@
      This testcase ensures that we paint the background around an opaque image,
      when the image is offset from the container via 'object-position' (and
      the img element is fragmented). This is an interesting case because, by
      default, images fill their container, which means we can often optimize
      away the background completely. BUT, if "object-position" offsets the
      image from its container's content-box, we can't optimize away the
      background; it need to be painted in the uncovered area.
 -->
-<html class="reftest-print">
+<html class="reftest-paged">
   <head>
     <meta charset="utf-8">
     <style type="text/css">
       img.test {
         background: salmon;
         object-position: 10px 20px;
         width: 32px;
         height: 5in;
--- a/layout/reftests/pagination/abspos-breaking-000.ref.xhtml
+++ b/layout/reftests/pagination/abspos-breaking-000.ref.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>AbsPos Pagination</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       padding-top: 1in;
       line-height: 1;
       font-size: 0.25in;
--- a/layout/reftests/pagination/abspos-breaking-000.xhtml
+++ b/layout/reftests/pagination/abspos-breaking-000.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>AbsPos Pagination</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       top: 1in;
       line-height: 1;
--- a/layout/reftests/pagination/abspos-breaking-001.xhtml
+++ b/layout/reftests/pagination/abspos-breaking-001.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>AbsPos Pagination</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       margin-top: 0.5in;
       padding-top: 0.5in;
--- a/layout/reftests/pagination/abspos-breaking-002.xhtml
+++ b/layout/reftests/pagination/abspos-breaking-002.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>AbsPos Pagination</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       margin-top: 0.3in;
       padding-top: 0.3in;
--- a/layout/reftests/pagination/abspos-breaking-003-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-003-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 50%;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-003.html
+++ b/layout/reftests/pagination/abspos-breaking-003.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       top: 50%;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-004-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-004-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 120px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-004.html
+++ b/layout/reftests/pagination/abspos-breaking-004.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 120px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-005-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-005-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 100px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-005.html
+++ b/layout/reftests/pagination/abspos-breaking-005.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       top: 100px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-006-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-006-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 50%;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-006.html
+++ b/layout/reftests/pagination/abspos-breaking-006.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect()</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       position: absolute;
       top: 50%;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-007-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-007-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     #test {
       box-decoration-break:clone;
     }
     div {
--- a/layout/reftests/pagination/abspos-breaking-007.html
+++ b/layout/reftests/pagination/abspos-breaking-007.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       box-decoration-break: clone;
       position: absolute;
       top: 120px;
--- a/layout/reftests/pagination/abspos-breaking-008-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-008-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 120px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-008.html
+++ b/layout/reftests/pagination/abspos-breaking-008.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body { margin: 0; padding: 0; }
     div {
       box-decoration-break: clone;
       position: absolute;
       top: 120px;
--- a/layout/reftests/pagination/abspos-breaking-009-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-009-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     div {
       position: absolute;
       top: 100px;
       border: 10px solid blue;
--- a/layout/reftests/pagination/abspos-breaking-009.html
+++ b/layout/reftests/pagination/abspos-breaking-009.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       box-decoration-break: clone;
       position: absolute;
       top: 100px;
--- a/layout/reftests/pagination/abspos-breaking-010-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-010-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     .b {
       page-break-before: always;
     }
     div {
--- a/layout/reftests/pagination/abspos-breaking-010.html
+++ b/layout/reftests/pagination/abspos-breaking-010.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
  <head>
   <title>AbsPos Pagination, with clip:rect() and box-decoration-break:clone</title>
   <style type="text/css">
     html, body, pre { margin: 0; padding: 0; }
     pre {
       box-decoration-break: clone;
       position: absolute;
       top: 50%;
--- a/layout/reftests/pagination/abspos-breaking-011-ref.html
+++ b/layout/reftests/pagination/abspos-breaking-011-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0">
 <div style="position:absolute; top:0; left:0; width:100px; height:100px; background:black;">Hi</div>
 <div style="height:1in;"></div>
 </body>
 </html>
--- a/layout/reftests/pagination/abspos-breaking-011.html
+++ b/layout/reftests/pagination/abspos-breaking-011.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0">
 <div style="height:1in;"></div>
 <div style="position:absolute; clip:rect(-1in 200px 100px 0px);">
   <div style="position:absolute; top:-1in; left:0; width:100px; height:100px; background:black;">Hi</div>
 </div>
 </body>
 </html>
--- a/layout/reftests/pagination/abspos-overflow-01.ref.xhtml
+++ b/layout/reftests/pagination/abspos-overflow-01.ref.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>Multi-column Layout: AbsPos Pagination (Interlaced)</title>
   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"/>
   <style type="text/css">
     /* If the reftest print size change, this needs to change too. */
     html, body, p {
--- a/layout/reftests/pagination/abspos-overflow-01.xhtml
+++ b/layout/reftests/pagination/abspos-overflow-01.xhtml
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
  <head>
   <title>Multi-column Layout: AbsPos Pagination (Interlaced)</title>
   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"/>
   <style type="text/css">
     /* If the reftest print size change, this needs to change too. */
     html, body {
--- a/layout/reftests/pagination/blank.html
+++ b/layout/reftests/pagination/blank.html
@@ -1,1 +1,1 @@
-<!DOCTYPE html><html class="reftest-print"><style>html{font-size:12pt}</style>
+<!DOCTYPE html><html class="reftest-paged"><style>html{font-size:12pt}</style>
--- a/layout/reftests/pagination/combobox-page-break-inside-ref.html
+++ b/layout/reftests/pagination/combobox-page-break-inside-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <meta charset="utf-8">
 <style type="text/css">
 @page { size:5in 3in; margin:0in; }
 div { height: 0in; }
 select { height: 0.5in; display:block; padding:20px; page-break-before:always; }
 </style>
 </head>
--- a/layout/reftests/pagination/combobox-page-break-inside.html
+++ b/layout/reftests/pagination/combobox-page-break-inside.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 <meta charset="utf-8">
 <style type="text/css">
 @page { size:5in 3in; margin:0in; }
 div { height: 2.5in; }
 select { height: 0.5in; display:block; padding:20px; page-break-inside:avoid; }
 </style>
 </head>
--- a/layout/reftests/pagination/float-clear-000-print.html
+++ b/layout/reftests/pagination/float-clear-000-print.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style type="text/css">
 html, body {
   margin: 0;
   padding: 0;
   height: 100%;
 }
 
 .float {
--- a/layout/reftests/pagination/float-clear-000-print.ref.html
+++ b/layout/reftests/pagination/float-clear-000-print.ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style type="text/css">
 html, body {
   margin: 0;
   padding: 0;
   height: 100%;
 }
 
 .container {
--- a/layout/reftests/pagination/float-clear-001-print.html
+++ b/layout/reftests/pagination/float-clear-001-print.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style type="text/css">
 html, body {
   margin: 0;
   padding: 0;
   height: 100%;
 }
 
 .float {
--- a/layout/reftests/pagination/float-clear-002-print.html
+++ b/layout/reftests/pagination/float-clear-002-print.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style type="text/css">
 html, body {
   margin: 0;
   padding: 0;
   height: 100%;
 }
 
 .float {
--- a/layout/reftests/pagination/float-clear-003-print.html
+++ b/layout/reftests/pagination/float-clear-003-print.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <style type="text/css">
 html, body {
   margin: 0;
   padding: 0;
   height: 100%;
 }
 
 .step {
--- a/layout/reftests/pagination/row-page-break-after-always-1.html
+++ b/layout/reftests/pagination/row-page-break-after-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table >
 <tbody>
--- a/layout/reftests/pagination/row-page-break-after-always-2.html
+++ b/layout/reftests/pagination/row-page-break-after-always-2.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table >
 <tbody>
--- a/layout/reftests/pagination/rowgroup-page-break-after-always-1.html
+++ b/layout/reftests/pagination/rowgroup-page-break-after-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody style="page-break-after:always">
--- a/layout/reftests/pagination/rowgroup-tfoot-page-break-after-always-1.html
+++ b/layout/reftests/pagination/rowgroup-tfoot-page-break-after-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tfoot><tr><td><div class="spacer"></div></td></tr></tfoot>
--- a/layout/reftests/pagination/rowgroup-thead-page-break-after-always-1.html
+++ b/layout/reftests/pagination/rowgroup-thead-page-break-after-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <thead><tr><td><div class="spacer"></div></td></tr></thead>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 1in; width: 0.5in; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-1.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 1in; width: 0.5in; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-10.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-10.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 caption {margin-top: 5px; margin-bottom:5px; caption-side:top-outside}
 table {margin-top: 5px; margin-bottom:5px}
 </style>
 </head>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-11.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-11.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 caption {margin-top: 5px; margin-bottom:5px; caption-side:bottom-outside}
 table {margin-top: 5px; margin-bottom:5px}
 </style>
 </head>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 0.5in; width: 0.5in; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-2.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-2.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 0.5in; width: 0.5in; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.2in}
 </style>
 </head>
 <body>
 
--- a/layout/reftests/pagination/table-caption-splitaftercaption-3.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-3.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.2in}
 </style>
 </head>
 <body>
 
--- a/layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.15in; margin-bottom:0.15in}
 table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-4.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-4.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.15in; margin-bottom:0.15in}
 table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.15in; margin-bottom:0.15in; caption-side:bottom}
 table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-5.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-5.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.15in; margin-bottom:0.15in; caption-side:bottom}
 table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:top-outside}
 table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-6.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-6.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:top-outside}
 table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:bottom-outside}
 table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-7.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-7.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:bottom-outside}
 table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-8.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-8.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 tfoot div {border-color:orange;}
 caption {margin-top: 5px; margin-bottom:5px; caption-side:top}
 table {margin-top: 5px; margin-bottom:5px}
 </style>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-9.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-9.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 caption {margin-top: 5px; margin-bottom:5px; caption-side:bottom}
 table {margin-top: 5px; margin-bottom:5px}
 tfoot div.spacer {border-color:orange;}
 tbody div.spacer{border-width: 4px}	
--- a/layout/reftests/pagination/table-caption-splitrowgroup-1-ref.html
+++ b/layout/reftests/pagination/table-caption-splitrowgroup-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 80px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-caption-splitrowgroup-1.html
+++ b/layout/reftests/pagination/table-caption-splitrowgroup-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height: 80px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
--- a/layout/reftests/pagination/table-nested-1308876-1-ref.html
+++ b/layout/reftests/pagination/table-nested-1308876-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
+<html class="reftest-paged">
 <!--
 This reference matches our current rendering, which isn't necessarily
 correct, but I'd at least like to know about it if it changes, given how
 little test coverage of this we currently have.
 -->
 <style>
 html, body { margin: 0; padding: 0; }
 </style>
--- a/layout/reftests/pagination/table-nested-1308876-1.xhtml
+++ b/layout/reftests/pagination/table-nested-1308876-1.xhtml
@@ -1,9 +1,9 @@
-<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-paged">
 <!--
 Reduced from layout/base/crashtests/470851-1.xhtml and turned into a reftest.
 -->
 <table style="background: black">
 <tbody>
 <tr>
 <td style="background: yellow">
   <table>
--- a/layout/reftests/pagination/table-page-break-after-always-1.html
+++ b/layout/reftests/pagination/table-page-break-after-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table style="page-break-after:always">
 <tbody>
--- a/layout/reftests/pagination/table-page-break-after-left-1.html
+++ b/layout/reftests/pagination/table-page-break-after-left-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table style="page-break-after:right">
 <tbody>
--- a/layout/reftests/pagination/table-page-break-after-right-1.html
+++ b/layout/reftests/pagination/table-page-break-after-right-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table style="page-break-after:right">
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-always-1-ref.html
+++ b/layout/reftests/pagination/table-page-break-before-always-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-always-1.html
+++ b/layout/reftests/pagination/table-page-break-before-always-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-auto-1-ref.html
+++ b/layout/reftests/pagination/table-page-break-before-auto-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-auto-1.html
+++ b/layout/reftests/pagination/table-page-break-before-auto-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-auto-2-ref.html
+++ b/layout/reftests/pagination/table-page-break-before-auto-2-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-auto-2.html
+++ b/layout/reftests/pagination/table-page-break-before-auto-2.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-auto-3-ref.html
+++ b/layout/reftests/pagination/table-page-break-before-auto-3-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <thead><tr><td><div class="spacer"></div></td></tr></thead>
--- a/layout/reftests/pagination/table-page-break-before-avoid-1.html
+++ b/layout/reftests/pagination/table-page-break-before-avoid-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-left-1.html
+++ b/layout/reftests/pagination/table-page-break-before-left-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-page-break-before-right-1.html
+++ b/layout/reftests/pagination/table-page-break-before-right-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table>
 <tbody>
--- a/layout/reftests/pagination/table-tfoot-thead-1-ref.html
+++ b/layout/reftests/pagination/table-tfoot-thead-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 5px;border:thin solid green;}
 tfoot div.spacer {border-color:orange;
 height: 10px}
 tbody div.spacer{border-width: 4px}
 thead div.spacer{height: 140px}
--- a/layout/reftests/pagination/table-tfoot-thead-1.html
+++ b/layout/reftests/pagination/table-tfoot-thead-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.filler {height:5px; width: 50px; border:thin solid blue;}
 div.spacer { height: 0px; width: 0px; padding: 5px;border:thin solid green;}
 tfoot div.spacer {border-color:orange;
 height: 10px}
 tbody div.spacer{border-width: 4px}
 thead div.spacer{height: 140px}
--- a/layout/reftests/pagination/table_internal_pagebreak-1.html
+++ b/layout/reftests/pagination/table_internal_pagebreak-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
 <style type="text/css">
 div.spacer { height: 50px; width: 50px; border:thin solid green;}
 </style>
 </head>
 <body>
 <table><tr><td>
 <table>
--- a/layout/reftests/printing/1108104-ref.html
+++ b/layout/reftests/printing/1108104-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <meta charset="utf-8">
   <style type="text/css" media="all">
 @font-face {
   font-family: 'dvsm';
   font-style: normal;
   font-weight: 200;
   src: url(../fonts/DejaVuSansMono.woff) format('truetype');
--- a/layout/reftests/printing/1108104.html
+++ b/layout/reftests/printing/1108104.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <meta charset="utf-8">
   <style type="text/css" media="all">
 @font-face {
   font-family: 'dvsm';
   font-style: normal;
   font-weight: 200;
   src: url(../fonts/DejaVuSansMono.woff) format('truetype');
--- a/layout/reftests/printing/115199-1-ref.html
+++ b/layout/reftests/printing/115199-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <style>
     * {
       margin: 0;
       padding: 0;
     }
     body {
       margin: 0.1in 0.1in;
--- a/layout/reftests/printing/115199-1.html
+++ b/layout/reftests/printing/115199-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <style>
     @page {
       /*
        * Default page margins are .5in and the reference file adds .1inch margin
        * to the body hence we do .6in to match this.
        */
       margin: 0.6in;
--- a/layout/reftests/printing/115199-2-ref.html
+++ b/layout/reftests/printing/115199-2-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <style>
     * {
       margin: 0;
       padding: 0;
     }
     div {
       width: 100%;
--- a/layout/reftests/printing/115199-2a.html
+++ b/layout/reftests/printing/115199-2a.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <style>
     @page {
       /*
        * Test a margin that causes the page to have zero width.
        */
       margin: 0 2.5in;
     }
--- a/layout/reftests/printing/115199-2b.html
+++ b/layout/reftests/printing/115199-2b.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <style>
     @page {
       /*
        * Test huge margins, they should be reset back the default margin size.
        */
       margin: 10in;
     }
--- a/layout/reftests/printing/1166147-ref.html
+++ b/layout/reftests/printing/1166147-ref.html
@@ -22,14 +22,14 @@ 3. Considering a margin of 0.5in on each
 
 Similarly, the size for the test case printable area is calculated, only
 considering a vertical-rl writing mode.
 
 It is important to note here that when printing this test outside of the test
 harness, the background color will not show since we omit printing and
 previewing of background colors by default via the browser printing path.
 -->
-<html class="reftest-print">
+<html class="reftest-paged">
   <body style="margin:0;">
     <div style="background: teal; width:4in; height:6in;">
     </div>
   </body>
 </html>
\ No newline at end of file
--- a/layout/reftests/printing/1166147.html
+++ b/layout/reftests/printing/1166147.html
@@ -23,14 +23,14 @@ 3. Considering a margin of 0.5in on each
 
 Similarly, the size for the reference printable area is calculated, only
 considering a horizontal-tb writing mode.
 
 It is important to note here that when printing this test outside of the test
 harness, the background color will not show since we omit printing and
 previewing of background colors by default via the browser printing path.
 -->
-<html class="reftest-print" style="writing-mode: vertical-rl;">
+<html class="reftest-paged" style="writing-mode: vertical-rl;">
   <body style="margin:0;">
     <div style="background: teal; width:12in; height:2in;">
     </div>
   </body>
 </html>
\ No newline at end of file
--- a/layout/reftests/printing/129941-1-ref.html
+++ b/layout/reftests/printing/129941-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0">
+<html class="reftest-paged" style="margin: 0; padding: 0">
   <body style="margin: 0; padding: 0">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green; border-bottom: none"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/129941-1a.html
+++ b/layout/reftests/printing/129941-1a.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0;">
+<html class="reftest-paged" style="margin: 0; padding: 0;">
   <body style="margin: 0; padding: 0;">
     <div style="overflow: scroll; height: 5in;">
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/129941-1b.html
+++ b/layout/reftests/printing/129941-1b.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0;">
+<html class="reftest-paged" style="margin: 0; padding: 0;">
   <body style="margin: 0; padding: 0;">
     <div style="overflow: -moz-hidden-unscrollable; height: 5in;">
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/129941-1c.html
+++ b/layout/reftests/printing/129941-1c.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0; overflow: hidden">
+<html class="reftest-paged" style="margin: 0; padding: 0; overflow: hidden">
   <body style="margin: 0; padding: 0; overflow: scroll; height: 5in">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/129941-1d.html
+++ b/layout/reftests/printing/129941-1d.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0; overflow: hidden">
+<html class="reftest-paged" style="margin: 0; padding: 0; overflow: hidden">
   <body style="margin: 0; padding: 0; overflow: -moz-hidden-unscrollable; height: 5in;">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/129941-1e.html
+++ b/layout/reftests/printing/129941-1e.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0;">
+<html class="reftest-paged" style="margin: 0; padding: 0;">
   <body style="margin: 0; padding: 0; overflow: -moz-hidden-unscrollable; height: 5in;">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/1321803-1-ref.html
+++ b/layout/reftests/printing/1321803-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0">
+<html class="reftest-paged" style="margin: 0; padding: 0">
   <body style="margin: 0; padding: 0">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green;"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/1321803-1a.html
+++ b/layout/reftests/printing/1321803-1a.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print" style="margin: 0; padding: 0;">
+<html class="reftest-paged" style="margin: 0; padding: 0;">
   <body style="margin: 0; padding: 0; overflow: scroll; height: 5in">
     <div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
       <div style="height: 1.25in; border: 0.25in solid green"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/272830-1-ref.html
+++ b/layout/reftests/printing/272830-1-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html><html class="reftest-print"><style>html{font-size:12pt}</style>
+<!DOCTYPE html><html class="reftest-paged"><style>html{font-size:12pt}</style>
 <table>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
  <tr><td>xxxxxxxxxxxxxxxxxxx</td></tr>
--- a/layout/reftests/printing/272830-1.html
+++ b/layout/reftests/printing/272830-1.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html><html class="reftest-print"><style>html{font-size:12pt}</style>
+<!DOCTYPE html><html class="reftest-paged"><style>html{font-size:12pt}</style>
 <table>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
--- a/layout/reftests/printing/318022-1-ref.html
+++ b/layout/reftests/printing/318022-1-ref.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html><html class="reftest-print">
+<!DOCTYPE html><html class="reftest-paged">
 <head>
 <style type="text/css" media="all">
 html{font-size:12pt}
 #c {page-break-before:always;}
 </style>
 </head>
 <body>
 <div>Line 1</div>
--- a/layout/reftests/printing/318022-1.html
+++ b/layout/reftests/printing/318022-1.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html><html class="reftest-print">
+<!DOCTYPE html><html class="reftest-paged">
 <head>
 <style type="text/css" media="all">
 html{font-size:12pt}
 #a {float:left;}
 #b {clear:both;}
 #c {page-break-before:always;}
 </style>
 </head>
--- a/layout/reftests/printing/381497-f.html
+++ b/layout/reftests/printing/381497-f.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Height test</title>
 
 <div style="top: 0; left: 0; right: 0; position: fixed; height: 100%; border-left: 2em blue solid;">
 The left border of this box must span the entire page content area.
 This box must be repeated on the second page.
 </div>
 
 <p style="page-break-before: always;">...
--- a/layout/reftests/printing/381497-n.html
+++ b/layout/reftests/printing/381497-n.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html class="reftest-print">
+<html class="reftest-paged">
 <title>Height test</title>
 <style type="text/css">
   html, body { height: 100%; margin: 0; padding: 0;}
 </style>
 
 
 <div style="height: 100%; border-left: 2em blue solid;">
 The left border of this box must span the entire page content area.
--- a/layout/reftests/printing/403669-1-ref.html
+++ b/layout/reftests/printing/403669-1-ref.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
  <table cellspacing="0" cellpadding="0"
         width="1px">
   <tr><td>
    a a a a a a a a a a a a a a
    a a a a a a a a a a a a a a
   </td></tr>
  </table>
--- a/layout/reftests/printing/403669-1.html
+++ b/layout/reftests/printing/403669-1.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
  <table cellspacing="0" cellpadding="0"
         height="100px" 
         width="1px">
   <tr><td>
    a a a a a a a a a a a a a a
    a a a a a a a a a a a a a a
   </td></tr>
--- a/layout/reftests/printing/577450-1-ref.html
+++ b/layout/reftests/printing/577450-1-ref.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="position: fixed; color: green; font-size: 2em">Big green text</div>
     <!-- force two pages -->
     <div style="height: 3in; width: 2in"></div>
   </body>
 </html>
--- a/layout/reftests/printing/577450-1.html
+++ b/layout/reftests/printing/577450-1.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body style="color: green; font-size: 2em">
     <div style="position: fixed">Big green text</div>
     <!-- force two pages -->
     <div style="height: 3in; width: 2in"></div>
   </body>
 </html>
--- a/layout/reftests/printing/609227-1-ref.html
+++ b/layout/reftests/printing/609227-1-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <html style="overflow: hidden; height: 100%; margin: 0; padding:0"
-      class="reftest-print">
+      class="reftest-paged">
   <body style="overflow: hidden; height: 100%; margin: 0; padding:0">
     <!-- Hidden overflow on the inline-block to put its baseline at its bottom
          edge, as in the original issue in bug 609227 -->
     <div style="height: 100%; display: inline-block; overflow: hidden">
       Some text
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/609227-1.html
+++ b/layout/reftests/printing/609227-1.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <html style="overflow: hidden; height: 100%; margin: 0; padding: 0"
-      class="reftest-print">
+      class="reftest-paged">
   <body style="overflow: hidden; height: 100%; margin: 0; padding:0">
     <div></div>
     <!-- Hidden overflow on the inline-block to put its baseline at its bottom
          edge, as in the original issue in bug 609227 -->
     <div style="height: 100%; display: inline-block; overflow: hidden">
       Some text
     </div>
   </body>
--- a/layout/reftests/printing/609227-2-ref.html
+++ b/layout/reftests/printing/609227-2-ref.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="page-break-before: always">
       <div style="display: inline-block; width: 1in; height: 1in">
         Should be on second page
       </div>
     </div>
 </html>
--- a/layout/reftests/printing/609227-2a.html
+++ b/layout/reftests/printing/609227-2a.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div>
       <div style="float: left; width: 3.5in; height: 1.5in;"></div>
     </div>
     <div>
       <div style="display: inline-block; width: 1in; height: 1in">
         Should be on second page
       </div>
--- a/layout/reftests/printing/609227-2b.html
+++ b/layout/reftests/printing/609227-2b.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <!-- Key: no whitespace between float and inline-block -->
     <div>
       <div style="float: left; width: 3.5in;
                   height: 1.5in;"></div></div><div><div
              style="display: inline-block; width: 1in; height: 1in">
         Should be on second page
       </div>
--- a/layout/reftests/printing/626395-1-ref.html
+++ b/layout/reftests/printing/626395-1-ref.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: hidden; height: 3in">
     </div>
     Some text
   </body>
 </html>
--- a/layout/reftests/printing/626395-1a.html
+++ b/layout/reftests/printing/626395-1a.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: hidden; height: 3in;">
       <div style="height: 10in;"></div>
     </div>
     Some text
   </body>
 </html>
--- a/layout/reftests/printing/626395-1b.html
+++ b/layout/reftests/printing/626395-1b.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: -moz-hidden-unscrollable; height: 3in;">
       <div style="height: 10in;"></div>
     </div>
     Some text
   </body>
 </html>
--- a/layout/reftests/printing/626395-2-ref.html
+++ b/layout/reftests/printing/626395-2-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: hidden; height: 3in">
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/626395-2a.html
+++ b/layout/reftests/printing/626395-2a.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: hidden; height: 3in;
                 padding-bottom: 0.5in; margin-bottom: 5in">
       <div style="height: 10in;"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/626395-2b.html
+++ b/layout/reftests/printing/626395-2b.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: -moz-hidden-unscrollable; height: 3in;
                 padding-bottom: 0.5in; margin-bottom: 5in">
       <div style="height: 10in;"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/626395-2c.html
+++ b/layout/reftests/printing/626395-2c.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: hidden; height: 1in;
                 padding-bottom: 1in; border-bottom: 1in solid transparent">
       <div style="height: 10in;"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/626395-2d.html
+++ b/layout/reftests/printing/626395-2d.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
   <body>
     <div style="overflow: -moz-hidden-unscrollable; height: 1in;
                 padding-bottom: 1in; border-bottom: 1in solid transparent">
       <div style="height: 10in;"></div>
     </div>
   </body>
 </html>
--- a/layout/reftests/printing/652178-1-ref.html
+++ b/layout/reftests/printing/652178-1-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
   Something
   <div>
     <div style="width: 60%; float: left; border: 5px solid green;">
       This should print on page 1
     </div>
 
     <!-- This just needs to be taller than a page -->
--- a/layout/reftests/printing/652178-1-ref2.html
+++ b/layout/reftests/printing/652178-1-ref2.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
   Something
   <div style="height: 0">
     <div style="width: 60%; border: 5px solid green;">
       This should print on page 1
     </div>
   </div>
 
--- a/layout/reftests/printing/652178-1.html
+++ b/layout/reftests/printing/652178-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body>
   Something
   <div>
     <div style="width: 60%; float: left; border: 5px solid green;">
       This should print on page 1
     </div>
 
     <!-- This just needs to be taller than a page -->
--- a/layout/reftests/printing/745025-1-ref.html
+++ b/layout/reftests/printing/745025-1-ref.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
 
 </head>
 <body>
 <!-- A 10x10 red image --><img style="-moz-transform: perspective(1px)" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVQYlWP4z8DwnxjMMKqQvgoBksPHOVp9kXEAAAAASUVORK5CYII=">
 </body>
 </html>
--- a/layout/reftests/printing/745025-1.html
+++ b/layout/reftests/printing/745025-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-wait reftest-print">
+<html class="reftest-wait reftest-paged">
 <body>
 <canvas id="canvas" width="10" height="10"></canvas>
 <script>
 var canvas = document.getElementById('canvas');
 canvas.mozPrintCallback = function(obj) {
   setTimeout(function() {
     var ctx = obj.context;
     ctx.fillStyle = 'rgb(255, 0, 0)';
--- a/layout/reftests/printing/820496-1-ref.html
+++ b/layout/reftests/printing/820496-1-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0">
   <div style="height:10000px; background:blue;">
   <div style="height:5000px; width:50%; background:yellow;">
 </body>
 </html>
--- a/layout/reftests/printing/820496-1.html
+++ b/layout/reftests/printing/820496-1.html
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <body style="margin:0; height:10000px; background:blue;">
   <div style="height:5000px; width:50%; background:yellow;">
 </body>
 </html>
--- a/layout/reftests/printing/960822-ref.html
+++ b/layout/reftests/printing/960822-ref.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:100in; border:solid blue;">line</div>
 </body>
 </html>
--- a/layout/reftests/printing/960822.html
+++ b/layout/reftests/printing/960822.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:30in; border:solid blue;">line</div>
 </body>
 </html>
--- a/layout/reftests/printing/966419-1-ref.html
+++ b/layout/reftests/printing/966419-1-ref.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:8in; border:solid blue">line</div>
 <div style="page-break-before:always"></div>
 <div style="width:1in;height:1em"></div>
 </body>
 </html>
--- a/layout/reftests/printing/966419-1.html
+++ b/layout/reftests/printing/966419-1.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:8in; border:solid blue">line</div>
 <div style="page-break-before:always"></div>
 <div style="width:6in;height:1em"></div>
 </body>
 </html>
--- a/layout/reftests/printing/966419-2-ref.html
+++ b/layout/reftests/printing/966419-2-ref.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:1in;height:1em"></div>
 <div style="page-break-before:always"></div>
 <div style="width:8in; border:solid blue">line</div>
 </body>
 </html>
--- a/layout/reftests/printing/966419-2.html
+++ b/layout/reftests/printing/966419-2.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
 <div style="width:6in;height:1em"></div>
 <div style="page-break-before:always"></div>
 <div style="width:8in; border:solid blue">line</div>
 </body>
 </html>
--- a/layout/reftests/printing/blank.html
+++ b/layout/reftests/printing/blank.html
@@ -1,1 +1,1 @@
-<!DOCTYPE html><html class="reftest-print"><style>html{font-size:12pt}</style>
+<!DOCTYPE html><html class="reftest-paged"><style>html{font-size:12pt}</style>
--- a/layout/reftests/printing/test-async-print.html
+++ b/layout/reftests/printing/test-async-print.html
@@ -1,15 +1,15 @@
-<!DOCTYPE html><html class="reftest-wait reftest-print"><style>html{font-size:12pt}</style>
+<!DOCTYPE html><html class="reftest-wait reftest-paged"><style>html{font-size:12pt}</style>
 <head>
   <script type="text/javascript">
 
     window.onload = function (){ 
                       setTimeout(function() {
-                                   document.documentElement.className = "reftest-print";},
+                                   document.documentElement.className = "reftest-paged";},
                                  1000);
                     }
   </script>
 </head>
 <body>
 <table>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
  <tbody><tr><td>xxxxxxxxxxxxxxxxxxx</td></tr></tbody>
--- a/layout/reftests/reftest-sanity/page-height-2.1in.html
+++ b/layout/reftests/reftest-sanity/page-height-2.1in.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content height is 2 inches (3 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { height: 2.1in; }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-height-2in.html
+++ b/layout/reftests/reftest-sanity/page-height-2in.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content height is 2 inches (3 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { height: 2in; }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-height-forcebreak.html
+++ b/layout/reftests/reftest-sanity/page-height-forcebreak.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content height is 2 inches (3 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 </style>
 <div>hello</div>
 <div style="page-break-before: always">&nbsp;</div>
--- a/layout/reftests/reftest-sanity/page-height-nobreak.html
+++ b/layout/reftests/reftest-sanity/page-height-nobreak.html
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content height is 2 inches (3 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-width-3.9in.html
+++ b/layout/reftests/reftest-sanity/page-width-3.9in.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content width is 4 inches (5 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { background: blue; color: white; width: 3.9in; }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-width-4.1in.html
+++ b/layout/reftests/reftest-sanity/page-width-4.1in.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content width is 4 inches (5 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { background: blue; color: white; width: 4.1in; }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-width-4in.html
+++ b/layout/reftests/reftest-sanity/page-width-4in.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content width is 4 inches (5 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { background: blue; color: white; width: 4in; }
 </style>
 <div>hello</div>
--- a/layout/reftests/reftest-sanity/page-width-auto.html
+++ b/layout/reftests/reftest-sanity/page-width-auto.html
@@ -1,8 +1,8 @@
 <!DOCTYPE HTML>
-<html class="reftest-print">
-<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
+<html class="reftest-paged">
+<title>Test that reftest-paged page content width is 4 inches (5 inch page, half inch margins)</title>
 <style>
 body { margin: 0 }
 div { background: blue; color: white; }
 </style>
 <div>hello</div>
--- a/layout/reftests/table-overflow/963441-ref.html
+++ b/layout/reftests/table-overflow/963441-ref.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
   <div style="height:3in">Tall div. (Scroll to end.)</div>
   <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div>
   <div>[clear:left]</div>
 </body>
 </html>
--- a/layout/reftests/table-overflow/963441.html
+++ b/layout/reftests/table-overflow/963441.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html class="reftest-print">
+<html class="reftest-paged">
 <head><meta charset="utf-8"></head>
 <body>
   <div style="float: left">
     <table cellpadding=0 cellspacing=0>
       <tr>
         <td>
           <div style="height:3in">Tall div. (Scroll to end.)</div>
           <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div>
--- a/layout/reftests/table-overflow/table-row-pagination-ref.html
+++ b/layout/reftests/table-overflow/table-row-pagination-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
     <meta charset="utf-8">
     <title>Testing row split</title>
     <style type="text/css">
 
         html,body {
             color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
         }
 	
--- a/layout/reftests/table-overflow/table-row-pagination.html
+++ b/layout/reftests/table-overflow/table-row-pagination.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html class="reftest-print"><head>
+<html class="reftest-paged"><head>
     <meta charset="utf-8">
     <title>Testing row split</title>
     <style type="text/css">
 
         html,body {
             color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
         }
 	
--- a/layout/reftests/unicode/unicode-media-query-media-type.html
+++ b/layout/reftests/unicode/unicode-media-query-media-type.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Unicode tests - media query - media type selector</title>
   <style>
     @media prİnt {
     p { color: red }
     }
   </style>
--- a/layout/reftests/unicode/unicode-media-query-query.html
+++ b/layout/reftests/unicode/unicode-media-query-query.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Unicode tests - media query - media query text</title>
   <style>
     @media print and (mİn-wİdth: 5in) { p {color: red; } }
   </style>
 </head>
 
--- a/layout/reftests/unicode/unicode-ref-print.html
+++ b/layout/reftests/unicode/unicode-ref-print.html
@@ -1,9 +1,9 @@
-<html class="reftest-print">
+<html class="reftest-paged">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <title>Unicode tests - media query - reference</title>
 </head>
 
 <body>
   <div><p lang="hi">स्टार</p></div>
 </body>
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-1.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-10.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-10.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-11.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-11.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-12.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-12.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-13.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-13.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-8-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 p { height: 1in; width: 1in; margin:0; background-color:blue; }
 .test { page-break-before:always; height:1.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-14.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-14-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 p { height: 1in; width: 1in; margin:0; background-color:blue; }
 .test { page-break-before:always; height:2.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-15.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-15-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-2.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-2.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-3.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-3.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-4.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-4.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-5.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-5.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-6.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-6.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-7.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-7.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 p { height: 1in; width: 1in; margin:0; background-color:blue; }
 
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-8.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-8-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-9.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-9.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-block-page-break-inside-avoid-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 p { height: 1in; width: 1in; margin:0; background-color:blue; }
 .test { page-break-after:always; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-1.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-1.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-table-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 p { height: 1in; width: 1in; margin:0; background-color:blue; }
 .test { float:left; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-2.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-2-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-3.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-3.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-block-page-break-inside-avoid-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
         html,body {
             color:black; background-color:white; font-size:16px; padding:0; margin:0;
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-5.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-5-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-6.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-6-ref.html">
   <meta name="flags" content="paged">
 <style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
 }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-7.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-7-ref.html">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
 }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-8.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-8-ref.html">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9-ref.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
     color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%;
 }
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-9.html
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
-<html lang="en-US" class="reftest-print">
+<html lang="en-US" class="reftest-paged">
 <head>
   <title>CSS Test: CSS 2.1 page-break-inside:avoid</title>
   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
   <link rel="match" href="moz-css21-float-page-break-inside-avoid-9-ref.html">
   <meta name="flags" content="paged"><style type="text/css">
 @page { size:5in 3in; margin:0.5in; }
 html,body {
--- a/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-inline-page-break-inside-avoid-1-ref.html
+++ b/layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-inline-page-break-inside-avoid-1-ref.html