Bug 1295261 - Added importing of multicol tests from CSSWG with py script and checking in these new tests + script r?dbaron draft
authorNeerja Pancholi <npancholi@mozilla.com>
Mon, 15 Aug 2016 15:55:20 -0700
changeset 420261 490358358afcbec0c0404f02e01061829c8d8a9f
parent 420017 955840bfd3c20eb24dd5a01be27bdc55c489a285
child 420262 6064da51c51668a705128eb2177245a9687befd1
push id31152
push userbmo:npancholi@mozilla.com
push dateMon, 03 Oct 2016 21:26:14 +0000
reviewersdbaron
bugs1295261
milestone52.0a1
Bug 1295261 - Added importing of multicol tests from CSSWG with py script and checking in these new tests + script r?dbaron MozReview-Commit-ID: FVb6n0sa761
layout/reftests/w3c-css/import-tests.py
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-001.html
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-002.html
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-003.html
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-004.html
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-ref.html
layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-br-inside-avoidcolumn-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-br-inside-avoidcolumn-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-break-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-break-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-break-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-break-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-collapsing-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-collapsing-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-004.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-005.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-006.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-007.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-toolong-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-003-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-004-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-004.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-005.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-2-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-2-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-negative-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-negative-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-003-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-balance-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-balance-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-fraction-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-fraction-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-negative-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-height-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-height-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-height-block-child-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-height-block-child-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-004.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-3-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-4-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-list-item-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-list-item-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-child-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-child-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-005-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-005.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-column-rule-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-column-rule-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-003-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-004-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-004.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-005.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-overflow-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-overflow-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-overflowing-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-overflowing-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-red.png
layout/reftests/w3c-css/received/css-multicol-1/multicol-reduce-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-reduce-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-003-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-004-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-004.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dashed-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dashed-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dotted-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dotted-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-double-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-double-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-3-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-groove-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-groove-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-hidden-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-hidden-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-inset-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-large-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-large-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-none-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-outset-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-percent-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-px-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ridge-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ridge-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-samelength-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-samelength-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-shorthand-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-solid-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-solid-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-stacking-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-stacking-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-groove-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-groove-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-inset-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-outset-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-ridge-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-ridge-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-shorthand-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-000-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-000.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-block-sibling-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-block-sibling-3-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-bottom-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-bottom-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-3-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-firstchild-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-firstchild-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-float-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-float-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-none-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-span-none-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-vertical-align-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-vertical-align-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-002-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-003.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-count-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-count-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-ems-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-ems-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-invalid-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-invalid-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-large-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-large-002.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-negative-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-small-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-width-small-001.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-zero-height-001-ref.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-zero-height-001.xht
layout/reftests/w3c-css/received/css-multicol-1/ref-filled-green-100px-square.xht
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-green.png
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-lime.png
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-maroon.png
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-navy.png
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-red.png
layout/reftests/w3c-css/received/css-multicol-1/support/1x1-white.png
layout/reftests/w3c-css/received/css-multicol-1/support/60x60-gg-rr.png
layout/reftests/w3c-css/received/css-multicol-1/support/60x60-green.png
layout/reftests/w3c-css/received/css-multicol-1/support/60x60-red.png
layout/reftests/w3c-css/received/css-multicol-1/support/a-green.css
layout/reftests/w3c-css/received/css-multicol-1/support/b-green.css
layout/reftests/w3c-css/received/css-multicol-1/support/black20x20.png
layout/reftests/w3c-css/received/css-multicol-1/support/c-red.css
layout/reftests/w3c-css/received/css-multicol-1/support/cat.png
layout/reftests/w3c-css/received/css-multicol-1/support/import-green.css
layout/reftests/w3c-css/received/css-multicol-1/support/import-red.css
layout/reftests/w3c-css/received/css-multicol-1/support/pattern-grg-rgr-grg.png
layout/reftests/w3c-css/received/css-multicol-1/support/pattern-grg-rrg-rgg.png
layout/reftests/w3c-css/received/css-multicol-1/support/pattern-rgr-grg-rgr.png
layout/reftests/w3c-css/received/css-multicol-1/support/pattern-tr.png
layout/reftests/w3c-css/received/css-multicol-1/support/red20x20.png
layout/reftests/w3c-css/received/css-multicol-1/support/square-purple.png
layout/reftests/w3c-css/received/css-multicol-1/support/square-teal.png
layout/reftests/w3c-css/received/css-multicol-1/support/square-white.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-blue.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-gray.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-green.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-lime.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-navy.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-orange.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-pink.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-purple.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-red.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-white.png
layout/reftests/w3c-css/received/css-multicol-1/support/swatch-yellow.png
layout/reftests/w3c-css/received/css-multicol-1/support/test-bl.png
layout/reftests/w3c-css/received/css-multicol-1/support/test-br.png
layout/reftests/w3c-css/received/css-multicol-1/support/test-outer.png
layout/reftests/w3c-css/received/css-multicol-1/support/test-tl.png
layout/reftests/w3c-css/received/css-multicol-1/support/test-tr.png
layout/reftests/w3c-css/received/import.log
layout/reftests/w3c-css/received/reftest.list
--- a/layout/reftests/w3c-css/import-tests.py
+++ b/layout/reftests/w3c-css/import-tests.py
@@ -29,16 +29,17 @@ import re
 # test only once, even if it covers more than one spec.)
 
 # But for now, let's just import a few sets of tests.
 
 gSubtrees = [
     os.path.join("css-namespaces-3"),
     os.path.join("css-conditional-3"),
     os.path.join("css-values-3"),
+    os.path.join("css-multicol-1"),
     os.path.join("selectors-4"),
 ]
 
 gPrefixedProperties = [
     "column-count",
     "column-fill",
     "column-gap",
     "column-rule",
@@ -160,63 +161,74 @@ def map_file(fn, spec):
     filemap[fn] = destname
     load_flags_for(fn, spec)
     copy_file(destname, fn, destname, False)
     copy_support_files(destname, os.path.dirname(fn), spec)
     return destname
 
 def load_flags_for(fn, spec):
     global gTestFlags
-    document = get_document_for(fn)
     destname = os.path.join(spec, os.path.basename(fn))
     gTestFlags[destname] = []
 
+    if not (is_html(fn) or is_xml(fn)):
+        return
+    document = get_document_for(fn)
     for meta in document.getElementsByTagName("meta"):
         name = meta.getAttribute("name")
         if name == "flags":
             gTestFlags[destname] = meta.getAttribute("content").split()
 
 def is_html(fn):
     return fn.endswith(".htm") or fn.endswith(".html")
 
+def is_xml(fn):
+    return fn.endswith(".xht") or fn.endswith(".xml") or fn.endswith(".xhtml") or fn.endswith(".svg")
+
 def get_document_for(fn):
     document = None # an xml.dom.minidom document
     if is_html(fn):
         # An HTML file
         f = open(fn, "rb")
         parser = html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("dom"))
         document = parser.parse(f)
         f.close()
     else:
         # An XML file
         document = xml.dom.minidom.parse(fn)
     return document
 
 def add_test_items(fn, spec):
+    if spec is None:
+        for subtree in gSubtrees:
+            if fn.startswith(subtree):
+                spec = os.path.basename(subtree)
+                break
+        else:
+            raise StandardError("Could not associate test " + fn + " with specification")
+    if not (is_html(fn) or is_xml(fn)):
+        map_file(fn, spec)
+        return None
     document = get_document_for(fn)
     refs = []
     notrefs = []
     for link in document.getElementsByTagName("link"):
         rel = link.getAttribute("rel")
         if rel == "match":
             arr = refs
         elif rel == "mismatch":
             arr = notrefs
         else:
             continue
-        arr.append(os.path.join(os.path.dirname(fn), str(link.getAttribute("href"))))
+        if str(link.getAttribute("href")) != "":
+            arr.append(os.path.join(os.path.dirname(fn), str(link.getAttribute("href"))))
+        else:
+            gLog.write("Warning: href attribute found empty in " + fn + "\n")
     if len(refs) > 1:
         raise StandardError("Need to add code to specify which reference we want to match.")
-    if spec is None:
-        for subtree in gSubtrees:
-            if fn.startswith(subtree):
-                spec = os.path.basename(subtree)
-                break
-        else:
-            raise StandardError("Could not associate test " + fn + " with specification")
     for ref in refs:
         tests.append(["==", map_file(fn, spec), map_file(ref, spec)])
     for notref in notrefs:
         tests.append(["!=", map_file(fn, spec), map_file(notref, spec)])
     # Add chained references too
     for ref in refs:
         add_test_items(ref, spec=spec)
     for notref in notrefs:
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-001.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+	<meta charset="utf-8">
+	<title>CSS Test: Multi-column element via -moz-columns: [integer]</title>
+	<link rel="author" title="Anselm Hannemann" href="mailto:info@anselm-hannemann.com"/>
+	<link rel="author" title="HÃ¥kon Wium Lie" href="mailto:howcome@opera.com"/>
+	<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-columns"/>
+	<link rel="match" href="reference/multicol-basic-ref.html"/>
+	<meta name="flags" content="ahem"/>
+	<link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact">
+
+<style type="text/css">
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+</style>
+	<style type="text/css">
+		.multicol-wrapper>*{
+			font-family: Ahem;
+		}
+
+		div.multicol-wrapper{
+			border: thin solid black;
+			display: inline-block;
+			margin: 1em auto;
+			width: 360px;
+		}
+
+		.multicol-basic-ref{
+			background: yellow;
+			width: 360px;
+			-moz-columns: 3;
+			-moz-column-gap: 0;
+			-moz-column-rule: none;
+		}
+
+		.multicol-basic-ref-item{
+			background: #000;
+		}
+
+		.item-1{
+			background: purple;
+			color: purple;
+		}
+
+		.item-2{
+			background: orange;
+			color: orange;
+		}
+
+		.item-3{
+			background: blue;
+			color: blue;
+		}
+	</style>
+</head>
+<body>
+<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
+<div class="multicol-wrapper">
+	<div class="multicol-basic-ref">
+		<span class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-002.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+	<meta charset="utf-8">
+	<title>CSS Test: Multi-column element via -moz-column-count: [integer]</title>
+	<link rel="author" title="Anselm Hannemann" href="mailto:info@anselm-hannemann.com"/>
+	<link rel="author" title="HÃ¥kon Wium Lie" href="mailto:howcome@opera.com"/>
+	<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-columns"/>
+	<link rel="match" href="reference/multicol-basic-ref.html"/>
+	<meta name="flags" content="ahem"/>
+	<link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact">
+
+<style type="text/css">
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+</style>
+	<style type="text/css">
+		.multicol-wrapper>*{
+			font-family: Ahem;
+		}
+
+		div.multicol-wrapper{
+			border: thin solid black;
+			display: inline-block;
+			margin: 1em auto;
+			width: 360px;
+		}
+
+		.multicol-basic-ref{
+			background: yellow;
+			width: 360px;
+			-moz-column-count: 3;
+			-moz-column-gap: 0;
+			-moz-column-rule: none;
+		}
+
+		.multicol-basic-ref-item{
+			background: #000;
+		}
+
+		.item-1{
+			background: purple;
+			color: purple;
+		}
+
+		.item-2{
+			background: orange;
+			color: orange;
+		}
+
+		.item-3{
+			background: blue;
+			color: blue;
+		}
+	</style>
+</head>
+<body>
+<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
+<div class="multicol-wrapper">
+	<div class="multicol-basic-ref">
+		<span class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-003.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+	<meta charset="utf-8">
+	<title>CSS Test: Multi-column element via -moz-columns: [width]</title>
+	<link rel="author" title="Anselm Hannemann" href="mailto:info@anselm-hannemann.com"/>
+	<link rel="author" title="HÃ¥kon Wium Lie" href="mailto:howcome@opera.com"/>
+	<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-columns"/>
+	<link rel="match" href="reference/multicol-basic-ref.html"/>
+	<meta name="flags" content="ahem"/>
+	<link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact">
+
+<style type="text/css">
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+</style>
+	<style type="text/css">
+		.multicol-wrapper>*{
+			font-family: Ahem;
+		}
+
+		div.multicol-wrapper{
+			border: thin solid black;
+			display: inline-block;
+			margin: 1em auto;
+			width: 360px;
+		}
+
+		.multicol-basic-ref{
+			background: yellow;
+			width: 360px;
+			-moz-columns: 120px;
+			-moz-column-gap: 0;
+			-moz-column-rule: none;
+		}
+
+		.multicol-basic-ref-item{
+			background: #000;
+		}
+
+		.item-1{
+			background: purple;
+			color: purple;
+		}
+
+		.item-2{
+			background: orange;
+			color: orange;
+		}
+
+		.item-3{
+			background: blue;
+			color: blue;
+		}
+	</style>
+</head>
+<body>
+<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
+<div class="multicol-wrapper">
+	<div class="multicol-basic-ref">
+		<span class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-004.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+	<meta charset="utf-8">
+	<title>CSS Test: Multi-column element via -moz-column-width: [width]</title>
+	<link rel="author" title="Anselm Hannemann" href="mailto:info@anselm-hannemann.com"/>
+	<link rel="author" title="HÃ¥kon Wium Lie" href="mailto:howcome@opera.com"/>
+	<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-columns"/>
+	<link rel="match" href="reference/multicol-basic-ref.html"/>
+	<meta name="flags" content="ahem"/>
+	<link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact">
+
+<style type="text/css">
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+</style>
+	<style type="text/css">
+		.multicol-wrapper>*{
+			font-family: Ahem;
+		}
+
+		div.multicol-wrapper{
+			border: thin solid black;
+			display: inline-block;
+			margin: 1em auto;
+			width: 360px;
+		}
+
+		.multicol-basic-ref{
+			background: yellow;
+			width: 360px;
+			-moz-column-width: 120px;
+			-moz-column-gap: 0;
+			-moz-column-rule: none;
+		}
+
+		.multicol-basic-ref-item{
+			background: #000;
+		}
+
+		.item-1{
+			background: purple;
+			color: purple;
+		}
+
+		.item-2{
+			background: orange;
+			color: orange;
+		}
+
+		.item-3{
+			background: blue;
+			color: blue;
+		}
+	</style>
+</head>
+<body>
+<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
+<div class="multicol-wrapper">
+	<div class="multicol-basic-ref">
+		<span class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+		<span class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-ref.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+	<title>CSS Test reference</title>
+	<link rel="author" title="Anselm Hannemann" href="mailto:info@anselm-hannemann.com"/>
+	<link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact">
+	<meta name="flags" content="ahem"/>
+
+<style type="text/css">
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+</style>
+	<style type="text/css">
+		.multicol-wrapper>*{
+			font-family: Ahem;
+		}
+
+		div.multicol-wrapper{
+			border: thin solid black;
+			display: inline-block;
+			margin: 1em auto;
+			width: 360px;
+		}
+
+		.multicol-basic-ref{
+			background: yellow;
+			width: 360px;
+			border-spacing: 0;
+			border-collapse: collapse;
+			padding: 0;
+		}
+
+		.multicol-basic-ref td{
+			padding: 0;
+		}
+		.multicol-basic-ref-item{
+			padding: 0;
+			width: 120px;
+			background: #000;
+			border-spacing: 0;
+			border-collapse: collapse;
+			display: inline;
+			border: none;
+		}
+
+		.item-1{
+			background: purple;
+			color: purple;
+		}
+
+		.item-2{
+			background: orange;
+			color: orange;
+		}
+
+		.item-3{
+			background: blue;
+			color: blue;
+		}
+	</style>
+</head>
+<body>
+<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
+<div class="multicol-wrapper">
+	<table class="multicol-basic-ref">
+		<tr>
+			<td><div class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</div></td>
+			<td><div class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</div></td>
+			<td><div class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</div></td>
+		</tr>
+	</table>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-001-ref.xht
@@ -0,0 +1,33 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td
+  {
+  padding: 0;
+  width: 3em;
+  }
+
+  td + td {width: 8em;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/swatch-blue.png" width="40" height="80" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="50" height="20" alt="Image download support must be enabled" /></td><td><img src="support/swatch-orange.png" width="40" height="80" alt="Image download support must be enabled" /></td>
+    </tr></table>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-001.xht
@@ -0,0 +1,55 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: Overflowed content inside multicol element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />
+  <link rel="match" href="multicol-block-clip-001-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content in the normal flow that extends into column gaps is clipped in the middle of the column gap." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  }
+
+  h4
+  {
+  background: black;
+  color: black;
+  font: inherit;
+  margin: 0;
+  width: 11em;
+  }
+
+  #first-column {color: blue;}
+
+  #second-column {color: orange;}
+
+  #third-column, #fourth-column {color: white;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+    <span id="first-column"> ab cd ef gh </span>
+    <h4> 1234567890123 </h4>
+    <span id="second-column"> ij kl mn oq </span>
+    <span id="third-column"> ab cd ef gh </span>
+    <span id="fourth-column"> rs tu vw xy </span>
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-002-ref.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  font: 1.25em/1 serif;
+  border: 1em solid gray;
+  width: 11em;
+  height: 6em;
+  position: relative;
+  }
+
+  img {position: absolute;}
+
+  img#black {top: 4em;}
+
+  img#first-orange {top: 5em;}
+
+  img#second-orange {left: 4em;}
+
+  img#first-pink
+  {
+  left: 4em;
+  top: 3em;
+  }
+
+  img#second-pink {left: 8em;}
+
+  img#yellow
+  {
+  left: 8em;
+  top: 1em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<img id="blue" src="support/swatch-blue.png" width="40" height="80" alt="Image download support must be enabled" />
+	<img id="black" src="support/black20x20.png" width="70" height="20" alt="Image download support must be enabled" />
+	<img id="first-orange" src="support/swatch-orange.png" width="40" height="20" alt="Image download support must be enabled" />
+	<img id="second-orange" src="support/swatch-orange.png" width="40" height="60" alt="Image download support must be enabled" />
+	<img id="first-pink" src="support/swatch-pink.png" width="40" height="60" alt="Image download support must be enabled" />
+	<img id="second-pink" src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" />
+	<img id="yellow" src="support/swatch-yellow.png" width="40" height="80" alt="Image download support must be enabled" />
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-block-clip-002.xht
@@ -0,0 +1,57 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: Overflowed content inside and outside multicol element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />
+  <link rel="match" href="multicol-block-clip-002-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content in the normal flow that extends into column gaps is clipped in the middle of the column gap." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  h4
+  {
+  background: black;
+  color: black;
+  font: inherit;
+  margin: 0;
+  width: 11em;
+  }
+
+  #first-column {color: blue;}
+
+  #second-column {color: orange;}
+
+  #third-column {color: pink;}
+
+  #fourth-column {color: yellow;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+    <span id="first-column"> ab cd ef gh </span>
+    <h4> 1234567890123 </h4>
+    <span id="second-column"> ij kl mn oq </span>
+    <span id="third-column"> ab cd ef gh </span>
+    <span id="fourth-column"> rs tu vw xy </span>
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-br-inside-avoidcolumn-001.xht
@@ -0,0 +1,51 @@
+<!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">
+<head>
+<title>multicol | break-inside: avoid-column</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-breaks"/>
+<link rel="match" href="multicol-br-inside-avoidcolumn-ref.xht"/>
+<meta name="flags" content=""/>
+<style type="text/css"><![CDATA[
+html {
+	width: 800px;
+	background: white;
+}
+body {
+	background: black;
+	-moz-column-count: 3;
+	-moz-column-gap: 0;
+	-moz-column-fill: auto;
+	height: 300px;
+}
+h1 {
+	-moz-column-span: all;
+	color: white;
+}
+div { background: red;
+	height: 150px;
+	break-inside: avoid-column;
+}
+span {
+	float: left;
+}
+]]></style>
+</head>
+<body>
+<h1>You should not see the word FAIL</h1>
+
+<div>
+	<span>FAIL</span>
+</div>
+
+<div>
+	<span>FAIL</span>
+</div>
+
+<div>
+	<span>FAIL</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-br-inside-avoidcolumn-ref.xht
@@ -0,0 +1,30 @@
+<!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">
+<head>
+<title>multicol | break-inside: avoid-column</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+html {
+	width: 800px;
+	background: white;
+}
+h1 {
+	color: white;
+	margin-top: 0;
+	padding-top: 0.66em;
+}
+div {
+	height: 450px;
+	background: black;
+	height: 300px;
+}
+]]></style>
+</head>
+<body>
+<div>
+	<h1>You should not see the word FAIL</h1>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-break-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem image" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  margin-bottom: 0.5em;
+  font: 1.25em/1 Ahem;
+  height: 3em;
+  width: 10em;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div><img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-break-000.xht
@@ -0,0 +1,60 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: break-after: column (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#break-before-break-after-break-inside" title="5.1. 'break-before', 'break-after', 'break-inside'" />
+  <link rel="match" href="multicol-break-000-ref.xht" />
+  <meta name="flags" content="ahem image" />
+  <meta name="assert" content="This test checks that basic support of 'break-after: column'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test, div#reference
+  {
+  background-color: yellow;
+  margin-bottom: 0.5em;
+  font: 1.25em/1 Ahem;
+  height: 3em;
+  width: 10em;
+  }
+
+  div#test
+  {
+  -moz-column-fill: auto;
+  -moz-column-gap: 0;
+  -moz-column-width: 2em;
+
+  /*
+
+  N == 5;
+
+  W == 2em;
+
+  */
+  }
+
+  div#test > div {break-after: column;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div id="test">
+      <div>A</div>
+      <div>B</div>
+      <div>C</div>
+  </div>
+
+  <div id="reference"><img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-break-001-ref.xht
@@ -0,0 +1,35 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-14 -->
+  <meta name="flags" content="ahem image" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  margin-bottom: 0.5em;
+  font: 1.25em/1 Ahem;
+  height: 3em;
+  width: 10em;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div>&nbsp; <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+  <div>&nbsp; <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-break-001.xht
@@ -0,0 +1,59 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: break-before: column (basic)</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#break-before-break-after-break-inside" title="5.1. 'break-before', 'break-after', 'break-inside'" />
+  <link rel="match" href="multicol-break-001-ref.xht" />
+  <meta name="flags" content="ahem image" />
+  <meta name="assert" content="This test checks that basic support of 'break-before: column'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test, div#reference
+  {
+  background-color: yellow;
+  margin-bottom: 0.5em;
+  font: 1.25em/1 Ahem;
+  height: 3em;
+  width: 10em;
+  }
+
+  div#test
+  {
+  -moz-column-fill: auto;
+  -moz-column-gap: 0;
+  -moz-column-width: 2em;
+
+  /*
+
+  N == 5;
+
+  W == 2em;
+
+  */
+  }
+
+  div#test > div {break-before: column;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div id="test">
+      <div>A</div>
+      <div>B</div>
+      <div>C</div>
+  </div>
+
+  <div id="reference">&nbsp; <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-001-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 11em;
+  }
+
+  img
+  {
+  position: relative;
+  vertical-align: top;
+  }
+
+  img + img {left: 3em;}
+
+  img + img + img {left: 6em;}
+  ]]></style>
+ </head>
+ <body>
+  <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" />
+    </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-001.xht
@@ -0,0 +1,50 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: overflowed content inside and outside multicol element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />
+  <link rel="match" href="multicol-clip-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content in the normal flow can extend into column gap before it reaches its middle. In this test, the 'l' and 'c' glyphs are painted into the left half of the column gap; the 'l' and 'e' glyphs extend outside the last column box at the edge of the multi-column and are therefore rendered thanks to the default 'overflow: visible' declaration." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: white;
+  border: gray solid 1em;
+  color: blue;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 4em;
+  }
+
+  span {color: black;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <span>
+    bl ac
+    bl ac
+    </span>
+
+    <span>
+    bl ac
+    </span>
+    bl ue
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-002-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 11em;
+  }
+
+  img
+  {
+  position: relative;
+  vertical-align: top;
+  }
+
+  img + img {left: 3em;}
+
+  img + img + img {left: 6em;}
+  ]]></style>
+ </head>
+ <body>
+  <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" />
+    </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-clip-002.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: overflowed content inside and outside multicol element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />
+  <link rel="match" href="multicol-clip-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content in the normal flow can extend into column gap before it reaches its middle. In this test, the 'l' and 'c' glyphs are painted into the left half of the column gap; the 'l' and 'e' glyphs extend outside the last column box at the edges of the multi-column and are therefore hidden thanks to the 'overflow: hidden' declaration." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: white;
+  border: gray solid 1em;
+  color: blue;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  overflow: hidden;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 4em;
+  }
+
+  span {color: black;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <span>
+	bl ac
+	bl ac
+    </span>
+
+    <span>
+	bl ac
+    </span>
+	bl ue
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-collapsing-001-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  border: black solid 1px;
+  font: 1.25em/1 serif;
+  padding: 1em;
+  width: 8em;
+  }
+
+  img
+  {
+  position: relative;
+  vertical-align: top;
+  }
+
+  img + img + img {left: 2em;}
+  ]]></style>
+ </head>
+ <body>
+  <div><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" />
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-collapsing-001.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: no margin collapsing with its first child block box</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-collapsing-001-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that the top margin of the first child block box of a multicol element does not collapse with the margin top of such multicol element." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  background-color: black;
+  border: black solid 1px;
+  font: 1.25em/1 Ahem;
+  width: 10em;
+  }
+
+  div > div
+  {
+  background-color: yellow;
+  color: black;
+  margin: 1em;
+  width: 8em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  h4
+  {
+  font: inherit;
+  margin: 1em 0 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+    <div>
+	  <h4>ab cd</h4>
+      ef gh
+      ij kl
+      mn oq
+    </div>
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-001-ref.xht
@@ -0,0 +1,30 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>d da d da d da d da d da d da dam&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; dame dame dame dame dame dame damerdamerdamerdamerdamerdamer<br />d da d da d da d da d da&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; dam&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dame dame dame dame dame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; damerdamerdamerdamerdamer &nbsp;&nbsp;&nbsp;&nbsp;</div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-001.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: 100px 6' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: 100px 6;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-002.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: 6 100px' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: 6 100px;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-003.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: 100px auto' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: 100px auto;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-004.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: auto 100px' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: auto 100px;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-005.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: 6' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties. '-moz-columns: 6' is equivalent to '-moz-column-width: auto' and '-moz-column-count: 6'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: 6;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-006.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: 6 auto' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: 6 auto;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-007.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-columns shorthand (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-columns: auto 6' shorthand correctly set '-moz-column-width' and '-moz-column-count' properties." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-columns: auto 6;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-001-ref.xht
@@ -0,0 +1,32 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-26 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 1em 0 0;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-001.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: invalid -moz-columns shorthand</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-26 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that '-moz-columns: 8 normal' is invalid (generating a parsing error) and therefore will be ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  -moz-columns: 8 normal;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-invalid-002.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+
+  <!--
+  Original, initial filename of this test was
+  multicol--moz-columns-toolong-002.xht
+  and it should be filename-renamed
+  multicol--moz-columns-invalid-002.xht
+  -->
+
+  <title>CSS Multi-column Layout Test: invalid -moz-columns shorthand</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-26 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that '-moz-columns: 8 auto 6em' is invalid (generating a parsing error) and therefore will be ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  -moz-columns: 8 auto 6em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-columns-toolong-001.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: narrower inline content inside wider colum box</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-26 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks the rendering of inline content (2em) inside wider (3em) column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-001-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 2em 0 0;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-001.xht
@@ -0,0 +1,55 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: a column box can not act as containing block for elements with 'position: absolute'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-containing-001-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a column box does not establish containing block for elements with 'position: absolute'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 0;
+  }
+
+  span
+  {
+  color: red;
+  position: absolute;
+  top: -1em;
+  }
+
+  /*
+  In this test, the initial containing block establishes containing block
+  for such red span. Therefore, the 2 short red stripes should be
+  positioned out of view, just outside the top edge of viewport.
+  */
+
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+  <span>re dd</span>
+  bl ac
+  bl ac
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-002-ref.xht
@@ -0,0 +1,37 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#inline-block
+  {
+  color: green;
+  display: inline-block;
+  font: 1.25em/1 Ahem;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="inline-block">
+
+      <div>4444 4444 4444 4444</div>
+      <div>1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;</div>
+      <div>1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;</div>
+      <div>4444 4444 4444 4444</div>
+      <div>1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1</div>
+      <div>1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1</div>
+      <div>1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 4444 4444</div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-containing-002.xht
@@ -0,0 +1,44 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: a multi-column can act as containing block for elements with 'position: absolute'</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-containing-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a multi-column element can establish containing block for elements with 'position: absolute'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: white;
+  color: green;
+  font: 1.25em/1 Ahem;
+  position: relative;
+  width: 19em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  }
+
+  span {color: red;}
+
+  img#white-overlapping
+  {
+  left: 11em;
+  position: absolute;
+  top: 1em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 4444 1&nbsp;&nbsp; 1&nbsp;&nbsp; 1&nbsp;&nbsp; 4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 4444 1&nbsp;&nbsp;1  1&nbsp;&nbsp;1  1&nbsp;&nbsp;1 4444 1<span>RED</span> 1<span>RED</span> 4444 &nbsp;&nbsp;&nbsp;1  &nbsp;&nbsp;&nbsp;1 4444 4444 1&nbsp;&nbsp; 1&nbsp;&nbsp; 4444 &nbsp;&nbsp;&nbsp;1  &nbsp;&nbsp;&nbsp;1 4444 <img id="white-overlapping" src="support/swatch-white.png" width="60" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-001.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cc" title="3.2 '-moz-column-count'" />
+  <link rel="match" href="multicol--moz-columns-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that setting '-moz-column-count' should accordingly create 6 column boxes. In this test, each column box should be exactly 100px wide." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {width: 600px;}
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 6;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-002-ref.xht
@@ -0,0 +1,40 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  font: 1.25em/1 Ahem;
+  width: 21em;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+ <div><img src="support/black20x20.png" width="420" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="support/black20x20.png" width="20" height="20" alt="Image download support must be enabled" />
+
+ <img src="support/black20x20.png" width="420" height="20" alt="Image download support must be enabled" />
+ </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-002.xht
@@ -0,0 +1,42 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cc" title="3.2 '-moz-column-count'" />
+  <link rel="match" href="multicol-count-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that setting '-moz-column-count' should accordingly create 4 column boxes. In this test, each column box should be exactly 5em wide." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  html {background-color: white;}
+
+  body
+  {
+  background-color: black;
+  font: 1.25em/1 Ahem;
+  padding-right: 1em;
+  width: 20em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1 333 55555 55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1 22&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-001.xht
@@ -0,0 +1,56 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-count-computed-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	widows: 1;
+	orphans: 1;
+
+	-moz-column-count: 3;
+	-moz-column-gap: 6em;
+	-moz--moz-column-rule-color: blue;
+	-moz--moz-column-rule-width: 1.5em;
+	-moz--moz-column-rule-style: solid;
+}
+#pink {color: pink;}
+#orange {color: orange;}
+#purple {color: purple;}
+#grey {color: grey;}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span id="pink">xxxx</span>
+	<span id="orange">xxxx</span>
+	<span id="purple">xxxx</span>
+	<span id="grey">xxxx</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-002.xht
@@ -0,0 +1,56 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-count-computed-2-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	widows: 1;
+	orphans: 1;
+
+	-moz-column-count: 3;
+	-moz-column-gap: 7em;
+	-moz--moz-column-rule-color: red;
+	-moz--moz-column-rule-width: 1.5em;
+	-moz--moz-column-rule-style: solid;
+}
+#pink {color: pink;}
+#orange {color: orange;}
+#purple {color: purple;}
+#grey {color: grey;}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span id="pink">xxxx</span>
+	<span id="orange">xxxx</span>
+	<span id="purple">xxxx</span>
+	<span id="grey">xxxx</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-003-ref.xht
@@ -0,0 +1,25 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-29 -->
+  <meta name="flags" content="image" />
+
+  <style type="text/css"><![CDATA[
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div><img src="support/swatch-gray.png" width="300" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="70" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="15" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="35" height="20" alt="Image download support must be enabled" /><img src="support/swatch-purple.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="70" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="15" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="35" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="300" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-003.xht
@@ -0,0 +1,93 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule and overflow inside (complex test)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-29 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-count-computed-003-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that if one of 2 adjacent column boxes (2nd and 3rd colum box in this test) does not have any content, then the column rule separating those should not be drawn. In this test, the 3rd colum box should have no inline content. This test also checks that inline content in the normal flow that extends into a column gap should be clipped in the middle of the column gap. So, in this test, inline content in 1st column box should be partially clipped and overlapped partially by 1st -moz-column-rule." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 13em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 5em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1.5em;
+  }
+
+  /*
+  (11)  if (-moz-column-width = auto) and (-moz-column-count != auto) then
+  (12)    N := -moz-column-count;
+  (13)    W := max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  (14)  exit;
+
+  So, the used -moz-column-count in this test is 3.
+
+  W := max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (13em - ((3 - 1) * 5em)) / 3);
+  W == max(0, (13em - (2 * 5em)) / 3);
+  W == max(0, (13em - (10em)) / 3);
+  W == max(0, (3em) / 3);
+  W == max(0, 1em);
+  W == 1em;
+
+  So, the used -moz-column-width in this test is 1em.
+  */
+
+  #pink {color: pink;}
+  #orange {color: orange;}
+  #purple {color: purple;}
+  #gray {color: gray;}
+
+  /*
+  Since
+  "
+  Content in the normal flow that extends into
+  column gaps (e.g., long words or images) is
+  clipped in the middle of the column gap.
+  "
+  http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements
+  this causes the right-half (0.5em) of the 'K' glyph to
+  be overlapped by the right-half (0.75em) of the 1st blue -moz-column-rule.
+  Same thing should happen to the 'N' glyph of 'ORAN'.
+
+  Because no inline content should be rendered into the
+  3rd column box, this causes the 2nd column rule not
+  been rendered because
+  "
+  Column rules are only drawn between two -moz-columns that
+  both have content.
+  "
+  http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules
+  */
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<span id="pink">PINK</span>
+	<span id="orange">ORAN</span>
+	<span id="purple">PURP</span>
+	<span id="gray">GRAY</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-004-ref.xht
@@ -0,0 +1,25 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-29 -->
+  <meta name="flags" content="image" />
+
+  <style type="text/css"><![CDATA[
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div><img src="support/swatch-gray.png" width="280" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-purple.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="280" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-004.xht
@@ -0,0 +1,52 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: both '-moz-column-width' and '-moz-column-count' are 'auto'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />  <!-- 2013-07-29 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="multicol-count-computed-004-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that if '-moz-column-width' is 'auto' and if '-moz-column-count' is 'auto', then such element will not behave like a multi-column element and -moz-column-gap and -moz-column-rule declarations will be ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: auto;
+  -moz-column-gap: 7em;
+  -moz--moz-column-rule-color: red;
+  -moz--moz-column-rule-width: 1.5em;
+  -moz--moz-column-rule-style: solid;
+  }
+
+  #pink {color: pink;}
+  #orange {color: orange;}
+  #purple {color: purple;}
+  #gray {color: gray;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<span id="pink">Pink</span>
+	<span id="orange">oran</span>
+	<span id="purple">PurP</span>
+	<span id="gray">gray</span>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-005.xht
@@ -0,0 +1,97 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule and overflow inside (complex test)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-03 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-count-computed-003-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that if one of 2 adjacent column boxes (2nd and 3rd colum box in this test) does not have any content, then the column rule separating those should not be drawn. In this test, the 3rd colum box should have no inline content. This test also checks that inline content in the normal flow that extends into a column gap should be clipped in the middle of the column gap. So, in this test, inline content in 1st column box should be partially clipped and overlapped partially by 1st -moz-column-rule." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 13em;
+
+  -moz-column-gap: 5em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1.5em;
+  -moz-column-width: 1em;
+  }
+
+  /*
+  (15)  if (-moz-column-width != auto) and (-moz-column-count = auto) then
+  (16)    N := max(1, floor((available-width + -moz-column-gap) / (-moz-column-width + -moz-column-gap)));
+  (17)    W := ((available-width + -moz-column-gap) / N) - -moz-column-gap;
+  (18)  exit;
+
+  N := max(1, floor((available-width + -moz-column-gap) / (-moz-column-width + -moz-column-gap)));
+  N == max(1, floor((13em + 5em) / (1em + 5em)));
+  N == max(1, floor(18em / 6em));
+  N == max(1, floor(3));
+  N == 3;
+
+  So, the used -moz-column-count in this test is 3.
+
+  W := ((available-width + -moz-column-gap) / N) - -moz-column-gap;
+  W == ((13em + 5em) / 3) - 5em;
+  W == ((18em) / 3) - 5em;
+  W == (6em) - 5em;
+  W == 1em;
+
+  So, the used -moz-column-width in this test is 1em.
+  */
+
+  #pink {color: pink;}
+  #orange {color: orange;}
+  #purple {color: purple;}
+  #gray {color: gray;}
+
+  /*
+  Since
+  "
+  Content in the normal flow that extends into
+  column gaps (e.g., long words or images) is
+  clipped in the middle of the column gap.
+  "
+  http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements
+  this causes the right-half (0.5em) of the 'K' glyph to
+  be overlapped by the right-half (0.75em) of the 1st blue -moz-column-rule.
+  Same thing should happen to the 'N' glyph of 'ORAN'.
+
+  Because no inline content should be rendered into the
+  3rd column box, this causes the 2nd column rule not
+  been rendered because
+  "
+  Column rules are only drawn between two -moz-columns that
+  both have content.
+  "
+  http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules
+  */
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<span id="pink">PINK</span>
+	<span id="orange">ORAN</span>
+	<span id="purple">PURP</span>
+	<span id="gray">GRAY</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-2-ref.xht
@@ -0,0 +1,58 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	height: 2em;
+	position: relative;
+	widows: 1;
+	orphans: 1;
+}
+#pink {color: pink;}
+#orange {color: orange;}
+#purple {color: purple;}
+#grey {color: grey;}
+span {
+	display: block;
+	position: absolute;
+}
+#orange {
+	left: 5em;
+	top: 0;
+}
+#purple {
+	left: 0;
+	top: 1em;
+}
+#grey {
+	left: 5em;
+	top: 1em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span id="purple">xxxx</span>
+	<span id="orange">xxxx</span>
+	<span id="grey">xxxx</span>
+	<span id="pink">xxxx</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-computed-ref.xht
@@ -0,0 +1,69 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	height: 2em;
+	position: relative;
+	widows: 1;
+	orphans: 1;
+
+}
+span {
+	display: block;
+	position: absolute;
+}
+#pink {
+	color: pink;
+}
+#orange {
+	color: orange;
+	left: 0;
+	top: 1em;
+}
+#purple {
+	color: purple;
+	left: 9em;
+	top: 0;
+}
+#grey {
+	color: grey;
+	left: 9em;
+	top: 1em;
+}
+#blue {
+	left: 5.25em;
+	top: 0;
+	width: 1.5em;
+	height: 2em;
+	background: blue;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span id="pink">xxxx</span>
+	<span id="orange">xxxx</span>
+	<span id="purple">xxxx</span>
+	<span id="grey">xxxx</span>
+	<span id="blue"></span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-001.xht
@@ -0,0 +1,48 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-count</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="match" href="multicol-count-large-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: red;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 1000;
+	-moz-column-gap: 0;
+}
+span {
+	color: black;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+	xx xx
+	xx xx
+	<span>xx xx</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-002.xht
@@ -0,0 +1,48 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-count</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="match" href="multicol-count-large-2-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 1000;
+	-moz-column-gap: 0;
+}
+span {
+	color: blue;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+	<span>xx xx</span>
+	xx xx
+	<span>xx xx</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-2-ref.xht
@@ -0,0 +1,40 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-count</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	height: 1em;
+	position: relative;
+	orphans: 1;
+	widows: 1;
+}
+span {
+	color: blue;
+	background: blue;
+	width: 2em;
+	position: absolute;
+	left: 0;
+	top: 0;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span>x</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-large-ref.xht
@@ -0,0 +1,30 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-count</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 12em;
+	height: 1em;
+	orphans: 1;
+	widows: 1;
+
+}
+]]></style>
+</head>
+
+<body>
+
+<div>xx</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-negative-001.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: negative '-moz-column-count' value</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-30 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a specified negative '-moz-column-count' value is invalid and ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-count: -1;
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-negative-002.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: zero '-moz-column-count' value</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-30 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a specified 0 '-moz-column-count' value is invalid and ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-count: 0; /* invalid; must be a greater-than-zero integer */
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-001.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: non-integer '-moz-column-count' value</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#integers" title="4.1. Integers: the '&lt;integer&gt;' type" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a specified real '-moz-column-count' value is invalid and ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-count: 2.1; /* invalid; must be an integer */
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-002.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: non-integer '-moz-column-count' value</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#integers" title="4.1. Integers: the '&lt;integer&gt;' type" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a specified real '-moz-column-count' value is invalid and ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-count: 1.9; /* invalid; must be an integer */
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-count-non-integer-003.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: non-integer '-moz-column-count' value</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#integers" title="4.1. Integers: the '&lt;integer&gt;' type" />
+  <link rel="match" href="multicol--moz-columns-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a specified real '-moz-column-count' value is invalid and ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-count: 4;
+  -moz-column-count: 2.0; /* invalid; must be an integer */
+  -moz-column-gap: 0;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-000-ref.xht
@@ -0,0 +1,58 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0em;
+  color: lime;
+  margin: 1em 0em;
+  font: 1.25em/1 Ahem;
+  table-layout: fixed;
+  width: 18em;
+  }
+
+  td {padding: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 3 horizontal bars are <strong>identical</strong>.</p>
+
+  <table>
+    <tr>
+      <td>G</td>
+      <td>H</td>
+      <td>I</td>
+    </tr>
+  </table>
+
+  <table>
+    <tr>
+      <td>G</td>
+      <td>H</td>
+      <td>I</td>
+    </tr>
+  </table>
+
+  <table>
+    <tr>
+      <td>G</td>
+      <td>H</td>
+      <td>I</td>
+    </tr>
+  </table>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-000.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-fill: balance (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 '-moz-column-fill'" />
+  <link rel="match" href="multicol-fill-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content is balanced into all -moz-columns thanks to '-moz-column-fill: balance'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div.test, table#reference
+  {
+  background-color: yellow;
+  color: lime;
+  margin: 1em 0em;
+  font: 1.25em/1 Ahem;
+  width: 18em;
+  }
+
+  div.test
+  {
+  -moz-columns: 3;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 3;
+
+  W == 6em;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  div.test > p {margin: 0em;}
+
+  table
+  {
+  border-spacing: 0em;
+  table-layout: fixed;
+  }
+
+  td {padding: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 3 horizontal bars are <strong>identical</strong>.</p>
+
+  <div class="test">
+      <p>A</p>
+      <p>B</p>
+      <p>C</p>
+  </div>
+
+  <div class="test">D<br />E<br />F</div>
+
+  <table id="reference">
+    <tr>
+      <td>G</td>
+      <td>H</td>
+      <td>I</td>
+    </tr>
+  </table>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-001-ref.xht
@@ -0,0 +1,53 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0em;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  height: 5em;
+  margin: 1em 0em;
+  table-layout: fixed;
+  width: 20em;
+  }
+
+  td
+  {
+  padding: 0em;
+  vertical-align: top;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 rectangles are <strong>identical</strong>.</p>
+
+  <table>
+    <tr>
+      <td>G<br />H<br />I</td>
+      <td>J<br />K<br />L</td>
+    </tr>
+  </table>
+
+  <table>
+    <tr>
+      <td>G<br />H<br />I</td>
+      <td>J<br />K<br />L</td>
+    </tr>
+  </table>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-001.xht
@@ -0,0 +1,70 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-fill: balance with set height (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 '-moz-column-fill'" />
+  <link rel="match" href="multicol-fill-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that content is balanced into all -moz-columns of a multi-column element with a set height thanks to '-moz-column-fill: balance'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test, table#reference
+  {
+  background-color: yellow;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  height: 5em;
+  margin: 1em 0em;
+  width: 20em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 2;
+
+  W == 10em;
+
+  */
+  }
+
+  table
+  {
+  border-spacing: 0em;
+  table-layout: fixed;
+  }
+
+  td
+  {
+  padding: 0em;
+  vertical-align: top;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 rectangles are <strong>identical</strong>.</p>
+
+  <div id="test">A<br />B<br />C<br />D<br />E<br />F</div>
+
+  <table id="reference">
+    <tr>
+      <td>G<br />H<br />I</td>
+      <td>J<br />K<br />L</td>
+    </tr>
+  </table>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-001-ref.xht
@@ -0,0 +1,45 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-30 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: black;
+  font: 1.25em/1 Ahem;
+  float: left;
+  width: 10em;
+  margin-right: 1em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>1 22 333
+  4444 55555
+  666666
+  7777777
+  999999999
+  1 22 333
+  4444 55555
+  666666
+  7777777
+  999999999</div>
+
+  <div>1 22 333
+  4444 55555
+  666666
+  7777777
+  999999999</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-001.xht
@@ -0,0 +1,39 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-fill: auto' (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-30 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 '-moz-column-fill'" />
+  <link rel="match" href="multicol-fill-auto-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-fill: auto' fills the column boxes of a multi-colum element sequentially with inline content and does not bother about balancing content of column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: black;
+  font: 1.25em/1 Ahem;
+  height: 10em;
+  orphans: 1;
+  widows: 1;
+  width: 32em;
+
+  -moz-column-count: 3;
+  -moz-column-fill: auto;
+  -moz-column-gap: 1em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>1 22 333 4444 55555 666666 7777777 999999999 1 22 333 4444 55555 666666 7777777 999999999 1 22 333 4444 55555 666666 7777777 999999999</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-002-ref.xht
@@ -0,0 +1,49 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-fill-auto</title>
+<link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1.25em;
+	line-height: 1em;
+	color: green;
+	height: 3em;
+	width: 2em;
+	orphans: 1;
+	widows: 1;
+	position: relative;
+	margin: 1em;
+}
+div.col {
+	-moz-column-count: 2;
+	-moz-column-fill: auto;
+	-moz-column-gap: 0;
+}
+div.red {
+	background: red; position: absolute; z-index: -1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div class='ref'>
+oo<br/>t<br/>o
+</div>
+
+<div class='ref'>
+oo<br/>t<br/>o
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-002.xht
@@ -0,0 +1,55 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-fill-auto</title>
+<meta name="assert" content="This test checks that -moz-columns are not balanced when '-moz-column-fill: auto' is set"/>
+<link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling--moz-columns"/>
+<link rel="match" href="multicol-fill-auto-002-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1.25em;
+	line-height: 1em;
+	color: green;
+	height: 3em;
+	width: 2em;
+	orphans: 1;
+	widows: 1;
+	position: relative;
+	margin: 1em;
+}
+div.col {
+	-moz-column-count: 2;
+	-moz-column-fill: auto;
+	-moz-column-gap: 0;
+}
+div.red {
+	background: red; position: absolute; z-index: -1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div class='col'>
+<div class='red' style="top: 0; left: 0; height: 3em; width: 1em;"></div>
+<div class='red' style="top: 0; left: 0; height: 1em; width: 2em;"></div>
+o<br/>t<br/>
+o<br/>t<br/>
+</div>
+
+<div class='ref'>
+oo<br/>t<br/>o
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-003-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-01 -->
+  <meta name="flags" content="ahem image" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div {font: 1.25em/1 Ahem;}
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there is <strong>no red</strong>.</p>
+
+  <div><img src="support/swatch-green.png" width="460" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="220" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="60" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="80" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="60" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="60" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp; <img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="100" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="100" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="60" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="80" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-green.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-green.png" width="460" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-003.xht
@@ -0,0 +1,65 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-fill: auto' (basic)</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-01 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 '-moz-column-fill'" />
+  <link rel="match" href="multicol-fill-auto-003-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks if inline content fills column boxes sequentially when '-moz-column-fill' is set to 'auto'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-image: url("support/red20x20.png");
+  background-repeat: no-repeat;
+  background-position: 2em 4em;
+  border: green solid 1em;
+  color: green;
+  font: 1.25em/1 Ahem;
+  height: 6em;
+  width: 21em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: auto;
+  -moz-column-gap: 1em;
+  -moz-column-rule: yellow solid 1em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there is <strong>no red</strong>.</p>
+
+  <div>1234567890 12 4567 90 123 56 890 123 56789 1 34567 90 12 4567 90
+123 56 890 123 56</div>
+
+  <!--
+
+  Expected result:
+
+  ************  ************
+  |1234567890|  |123 56 890|
+  |12 4567 90|  |123 56    |
+  |123 56 890|  |          |
+  |123 56789 |  |          |
+  |1 34567 90|  |          |
+  |12 4567 90|  |          |
+  ************  ************
+
+  The digits are the green squares, the white squares
+  are the blank white spaces. The yellow vertical stripe
+  represent both the -moz-column-gap and the -moz-column-rule.
+  The "3" glyph at line 5 of 1st column box should be
+  overlapping the red square.
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-001.xht
@@ -0,0 +1,94 @@
+<!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">
+<head>
+<title>multicol | -moz-column-span: all | -moz-column-fill: auto</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling--moz-columns"/>
+<link rel="match" href="multicol-fill-auto-block-children-ref.xht"/>
+<meta name="flags" content=""/>
+<style type="text/css"><![CDATA[
+html {
+	background: white;
+}
+body {
+	background: blue;
+	width: 1200px;
+	height: 492px;
+	-moz-column-count: 3;
+	-moz-column-gap: 2em;
+	-moz-column-fill: auto;
+}
+h1 {
+	-moz-column-span: all;
+	font-size: 2em;
+	height: 70px;
+}
+dl {
+	font-size: 70%;
+	color: blue;
+	padding: 5px 10px 3px;
+	margin: 0 0 15px;
+	border: 2px solid blue;
+	height: 72px;
+}
+dt {
+	font-weight: bold;
+	font-style: normal;
+	width: 47%;
+	height: 100%;
+	float: left;
+}
+dd {
+	line-height: 120%;
+	padding: 0;
+	margin: 0 0 5px 47%;
+	width: 50%;
+}
+]]></style>
+</head>
+
+<body>
+<h1>you should not see the word fail</h1>
+
+<dl>
+	<dt>block1</dt>
+	<dd>block1 block1</dd>
+	<dd>block1 block1</dd>
+	<dd>block1 block1 block1</dd>
+	<dd>damer block1 block1</dd>
+</dl>
+
+<dl>
+	<dt>block2</dt>
+	<dd>block2 block2</dd>
+	<dd>block2 block2</dd>
+	<dd>block2 block2 block2</dd>
+	<dd>damer block2 block2</dd>
+</dl>
+
+<dl>
+	<dt>block3</dt>
+	<dd>block3 block3</dd>
+	<dd>block3 block3</dd>
+	<dd>block3 block3 block3</dd>
+	<dd>damer block3 block3</dd>
+</dl>
+
+<dl>
+	<dt>block4</dt>
+	<dd>block4 block4</dd>
+	<dd>block4 block4</dd>
+	<dd>block4 block4 block4</dd>
+	<dd>damer block4 block4</dd>
+</dl>
+
+<dl>
+	<dt>fail</dt>
+	<dd>fail fail</dd>
+	<dd>fail fail</dd>
+	<dd>fail fail fail</dd>
+	<dd>fail fail fail</dd>
+</dl>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-002-ref.xht
@@ -0,0 +1,79 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  div
+  {
+  background-color: blue;
+  height: 200px;
+  width: 680px;
+  }
+
+  h1
+  {
+  color: white;
+  font-size: 2em;
+  line-height: 1.25; /* or 1.21875 to achieve a 39px tall line box */
+  margin-top: 8px; /* The margin-top of body and h1 will collapse into an 8px gap */
+  margin-bottom: 21px;
+  padding-top: 21px;
+  }
+
+  span#pass
+  {
+  color: blue;
+  font-size: 1.5em;
+  font-weight: bolder;
+  left: 698px;
+
+  /*
+
+  Expected result:
+
+  8px                                           688px
+  v                                              v
+  ************************************************
+  *                                              *
+  *  <h1>Test passes if the word "PASS!" is<br />*  1st line box
+  *  on the right &#8600;</h1>                   *  2nd line box
+  *                                              *
+  ************************************************
+  *                                              *
+  * <h2>nbsp;<h2>  <h2>nbsp;<h2>  <h2>nbsp;<h2>  *  <h2>PASS!</h2>
+  *                                              *
+  ************************************************
+                ^              ^
+               228px          458px
+
+  */
+
+  line-height: 1;
+  position: absolute;
+  top: 130px;
+
+  /*
+    8px : margin-top of body element
+   21px : margin-top of h1 element which must not collapse with body's margin-top
+   80px : content height: 2 line boxes required to render the "Test passes if ..." sentence
+   21px : margin-bottom of h1 element
+ ====================================
+  130px : top position of span#pass in document box
+  */
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <h1>Test passes if "PASS!" is<br />on the right &#8600;</h1>
+    <span id="pass">PASS!</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-002.xht
@@ -0,0 +1,99 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-fill: auto' and '-moz-column-span: all' (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />
+  <link rel="match" href="multicol-fill-auto-block-children-002-ref.xht" />
+
+  <meta name="flags" content="" />
+  <meta name="assert" content="This test checks that if '-moz-column-fill' is set to 'auto' and a multicolumn element content is solely made of block container boxes, then it should fill column boxes sequentially with such content and, in this test, it should overflow outside of it. This test relies on the idea that a '-moz-column-span: all' element will occupy more space in a multi-column element than a '-moz-column-span: none' element, therefore reducing available space for content in column boxes." />
+  <style type="text/css"><![CDATA[
+  html {background-color: white;}
+
+  body
+  {
+  background-color: blue;
+  height: 200px;
+  margin: 8px;
+  width: 680px;
+
+  -moz-column-count: 3;
+  -moz-column-fill: auto;
+  -moz-column-gap: 10px;
+
+  /*
+  So, each column box should be
+  [680px minus (2 mult 10px)] divided by 3 == 220px wide
+  */
+  }
+
+  h1
+  {
+  color: white;
+  -moz-column-span: all;
+  font-size: 2em;
+  line-height: 1.25; /* or 1.21875 to achieve a 39px tall line box */
+  margin: 21px 0em;
+  /*
+   21px : margin-top of h1 element which must not collapse with body's margin-top
+   80px : content height: 2 line boxes required to render the "Test passes if ..." sentence
+   21px : margin-bottom of h1 element
+ ====================================
+  122px : margin box height of h1 element
+  */
+  }
+
+  h2
+  {
+  color: blue;
+  font-size: 1.5em;
+  line-height: 1;
+  margin: 0 0 2.25em;
+  /*
+    0px : margin-top of h2 element
+   24px : content height: 1 line box required to render all the nbsp; and PASS! word
+   54px : margin-bottom of h2 element
+ ====================================
+   78px : margin box height of h2 element
+  */
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <h1>Test passes if "PASS!" is<br />on the right &#8600;</h1>
+
+  <h2>&nbsp;</h2>
+
+  <h2>&nbsp;</h2>
+
+  <h2>&nbsp;</h2>
+
+  <h2>PASS!</h2>
+
+  <!--
+
+  Expected result:
+
+  8px                                           688px
+  v                                              v
+  ************************************************
+  *                                              *
+  *  <h1>Test passes if the word "PASS!" is<br />*  1st line box
+  *  on the right &#8600;</h1>                   *  2nd line box
+  *                                              *
+  ************************************************
+  *                                              *
+  * <h2>nbsp;<h2>  <h2>nbsp;<h2>  <h2>nbsp;<h2>  *  <h2>PASS!</h2>
+  *                                              *
+  ************************************************
+                ^              ^
+               228px          458px
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto-block-children-ref.xht
@@ -0,0 +1,28 @@
+<!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">
+<head>
+<title>multicol | -moz-column-span: all | -moz-column-fill: auto</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+html {
+	background: white;
+}
+body {
+	background: blue;
+	width: 1200px;
+	height: 492px;
+}
+h1 {
+	font-size: 2em;
+	margin: 0;
+	padding-top: 0.66em;
+}
+]]></style>
+</head>
+
+<body>
+<h1>you should not see the word fail</h1>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-auto.xht
@@ -0,0 +1,55 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-fill-auto</title>
+<meta name="assert" content="This test checks that -moz-columns are properly balanced when '-moz-column-fill: auto' is set"/>
+<link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling--moz-columns"/>
+<link rel="match" href="multicol-fill-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1.25em;
+	line-height: 1em;
+	color: green;
+	height: 3em;
+	width: 2em;
+	orphans: 1;
+	widows: 1;
+	position: relative;
+	margin: 1em;
+}
+div.col {
+	-moz-column-count: 2;
+	-moz-column-fill: auto;
+	-moz-column-gap: 0;
+}
+div.red {
+	background: red; position: absolute; z-index: -1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div class='col'>
+<div class='red' style="top: 0; left: 0; height: 3em; width: 1em;"></div>
+<div class='red' style="top: 0; left: 0; height: 1em; width: 2em;"></div>
+o<br/>t<br/>
+o<br/>t<br/>
+</div>
+
+<div class='ref'>
+oo<br/>t<br/>o
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-balance-001-ref.xht
@@ -0,0 +1,49 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-fill</title>
+<link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1.25em;
+	line-height: 1em;
+	color: green;
+	height: 3em;
+	width: 2em;
+	orphans: 1;
+	widows: 1;
+	position: relative;
+	margin: 1em;
+}
+div.col {
+	-moz-column-count: 2;
+	-moz-column-fill: balance;
+	-moz-column-gap: 0;
+}
+div.red {
+	background: red; position: absolute; z-index: -1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div class='ref'>
+oo<br/>tt
+</div>
+
+<div class='ref'>
+oo<br/>tt
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-balance-001.xht
@@ -0,0 +1,54 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-fill</title>
+<meta name="assert" content="This test checks that -moz-columns are properly balanced when '-moz-column-fill: balance' is set"/>
+<link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling--moz-columns"/>
+<link rel="match" href="multicol-fill-balance-001-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1.25em;
+	line-height: 1em;
+	color: green;
+	height: 3em;
+	width: 2em;
+	orphans: 1;
+	widows: 1;
+	position: relative;
+	margin: 1em;
+}
+div.col {
+	-moz-column-count: 2;
+	-moz-column-fill: balance;
+	-moz-column-gap: 0;
+}
+div.red {
+	background: red; position: absolute; z-index: -1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div class='col'>
+<div class='red' style="top: 0; left: 0; height: 2em; width: 2em;"></div>
+o<br/>t<br/>
+o<br/>t<br/>
+</div>
+
+<div class='ref'>
+oo<br/>tt
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-fill-ref.xht
@@ -0,0 +1,21 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-gap</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+div {
+	background: yellow;
+	height: 5em;
+	width: 30em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div></div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-000-ref.xht
@@ -0,0 +1,34 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  font: 1.25em/1 Ahem;
+  margin: 1em 0;
+  width: 30em;
+  }
+
+  span {color: yellow;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div>1234567890<span>1234567890</span>1234567890</div>
+
+  <div>1234567890<span>1234567890</span>1234567890</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-000.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-gap (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1 '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that column gap appears between two -moz-columns." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  font: 1.25em/1 Ahem;
+  margin: 1em 0;
+  width: 30em;
+  }
+
+  div#test
+  {
+  background-color: yellow;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-width: 10em;
+  -moz-column-gap: 10em;
+  }
+
+  span {color: yellow;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div id="test">1234567890<br />1234567890</div>
+
+  <div id="reference">1234567890<span>1234567890</span>1234567890</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-001-ref.xht
@@ -0,0 +1,22 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div {margin: 1.25em;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if the 2 stripes are <strong>identical</strong>.</p>
+
+  <div><img src="support/black20x20.png" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/black20x20.png" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-001.xht
@@ -0,0 +1,44 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-gap: normal'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-001-ref.xht" />
+  <meta name="flags" content="ahem may" />
+  <meta name="assert" content="This test checks that the 'normal' column gap is 1em, which is suggested -- and not prescribed -- by the specification." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font: 1.25em/1 Ahem;
+  margin: 1em;
+  orphans: 1;
+  widows: 1;
+  width: 3em;
+  }
+
+  div.multicol
+  {
+  -moz-column-gap: normal;
+  -moz-column-width: 1em;
+  }
+
+  span {padding-right: 1em;}
+  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if the 2 stripes are <strong>identical</strong>.</p>
+
+  <div class="multicol">x<br />x</div>
+  <div><span>x</span>x</div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-002-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 1em 0 0;}
+
+  img, td {vertical-align: top;}
+
+  td#last-cell {padding-right: 0;}
+  ]]></style>
+ </head>
+ <body>
+ <table>
+   <tr>
+     <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td><td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td><td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td><td id="last-cell"><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-002.xht
@@ -0,0 +1,46 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-gap (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-003.xht
@@ -0,0 +1,46 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-gap: normal'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-002-ref.xht" />
+  <meta name="flags" content="ahem may" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: normal;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-fraction-001-ref.xht
@@ -0,0 +1,73 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  background-color: gray;
+  font: 1.25em/1 Ahem;
+  height: 4em;
+  position: relative;
+  width: 14.5em;
+  }
+
+  p, div > div
+  {
+  background-color: blue;
+  height: 1em;
+  left: 0;
+  margin: 0;
+  position: absolute;
+  top: 0;
+  width: 4em;
+  }
+
+  div > div
+  {
+  background-color: black;
+  height: 4em;
+  }
+
+  p {left: 7.5em;}
+
+  p + p
+  {
+  left: 8.5em;
+  top: 1em;
+  }
+
+  p + p + p
+  {
+  left: 9.5em;
+  top: 2em;
+  }
+
+  p + p + p + p
+  {
+  left: 10.5em;
+  top: 3em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<div></div>
+	<p></p>
+	<p></p>
+	<p></p>
+	<p></p>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-fraction-001.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-gap' with increasing values</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-05 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-fraction-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: gray;
+  font: 1.25em/1 Ahem;
+  width: 14.5em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 0.5em;
+  }
+
+  #two {-moz-column-gap: 2.5em;}
+
+  #three {-moz-column-gap: 4.5em;}
+
+  #four {-moz-column-gap: 6.5em;}
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="one">
+	blac
+	<span>blue</span>
+  </div>
+
+  <div id="two">
+	blac
+	<span>blue</span>
+  </div>
+
+  <div id="three">
+	blac
+	<span>blue</span>
+  </div>
+
+  <div id="four">
+	blac
+	<span>blue</span>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-001-ref.xht
@@ -0,0 +1,21 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+    <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="40"
+alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-001.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-gap' with large value</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1 '-moz-column-gap" />
+  <link rel="match" href="multicol-gap-large-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that when '-moz-column-gap' is large and when used '-moz-column-width' is narrow, then content extends into -moz-column-gap until its middle and content can extend, overflow outside the edges of the multi-colum element if 'overflow' is set to 'visible'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 4em;
+
+  /*
+  N == 4;
+  W == 0em;
+  */
+
+  /*
+  In this test, the content of first 3 column
+  boxes extend into middle of -moz-column-gap and
+  content of the 4th column box extend outside the
+  right edge of multi-column. The gray border-right of
+  multi-column elemen overlaps partially the 3rd
+  -moz-column-gap.
+  */
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+  <span>
+  bl ue
+  </span>
+  <span>
+  bl ue
+  </span>
+  bl ac
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-002-ref.xht
@@ -0,0 +1,24 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div {font: 1.25em/1 serif;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+    <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="110" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="30" height="40" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="110" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="30" height="40" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-large-002.xht
@@ -0,0 +1,51 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-gap' with large value</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1 '-moz-column-gap" />
+  <link rel="match" href="multicol-gap-large-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 4em;
+
+  /*
+  N == 2;
+  W == 3.5em;
+  */
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+  <span>
+  bl ue
+  </span>
+  <span>
+  bl ue
+  </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-gap-negative-001.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-gap with negative value</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-gap-002-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz-column-gap: -1em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	bl ac
+  <span>
+	bl ue
+  </span>
+  <span>
+	bl ue
+  </span>
+	bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-height-001-ref.xht
@@ -0,0 +1,28 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  img
+  {
+  left: 135px;
+  /* 6em + (2em/2) - (10px/2) == 135px */
+  position: relative;
+  vertical-align: top;
+  }
+
+  img + img {left: 285px;}
+  /* 6em + 2em + 6em + (2em/2) - (10px/2) - 10px == 285px */
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there are 2 blue vertical stripes of equal height.</p>
+
+  <div><img src="support/swatch-blue.png" width="10" height="160" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="10" height="160" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-height-001.xht
@@ -0,0 +1,42 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and height</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-06 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gap" title="4.1. '-moz-column-gap'" />
+  <link rel="match" href="multicol-height-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that length of column rules is equal to the length of the -moz-columns and if a nth column box overflows outside the available width of a multi-column element, then an (n-1)th column rule should be drawn. In this test, a 3rd column box is created outside the content edge of the multi-column element: therefore, a 2nd blue column rule should be drawn accordingly." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: white;
+  font: 1.25em/1 Ahem;
+  height: 8em;
+  width: 14em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: auto;
+  -moz-column-gap: 2em;
+  -moz-column-rule: blue solid 10px;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if there are 2 blue vertical stripes of equal height.</p>
+
+  <div>
+  1st col 1st col 1st col
+  1st col 2nd col 2nd col
+  2nd col 2nd col 3rd col
+  3rd col 3rd col 3rd col
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-height-block-child-001-ref.xht
@@ -0,0 +1,55 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: blue;
+  font: 1.25em/1 serif;
+  }
+
+  div#top
+  {
+  height: 5em;
+  width: 22em;
+  }
+
+  div#bottom
+  {
+  height: 3em;
+  width: 14em;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+    <div id="top"><img src="support/black20x20.png" width="60" height="100" alt="Image download support must be enabled" /></div>
+
+  <div id="bottom"><img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled" /></div>
+
+  <!--
+
+  Expected results:
+
+ 0em                        14em            22em
+  v                           v               v
+0 *********************************************
+  * bla                       |               *
+  * bla                       |               *
+  * bla                       |               *
+  * bla                       |               *
+5 * bla                       |               *
+6 * orn                       |****************
+7 * orn                       |
+8 * orn                       |
+  *****************************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-height-block-child-001.xht
@@ -0,0 +1,102 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column element with child block (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0091.html" title="[css3-multicol] Nested multicolumn elements rendering" />
+  <link rel="match" href="multicol-height-block-child-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a nested multi-column element's inline content could be clipped horizontally." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: blue;
+  font: 20px/1 Ahem;
+  height: 8em;
+  width: 14em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 2em;
+
+  /*
+
+  N == 2;
+
+  W == 6em;
+
+  H == 8em;
+
+  */
+  }
+
+  div#outer
+  {
+  color: black;
+  -moz-column-fill: auto;
+  }
+
+  div#inner
+  {
+  color: orange;
+  -moz-column-fill: balance;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="outer">
+  bla bla bla bla bla
+
+    <div id="inner">orn orn orn zzz zzz zzz</div>
+
+  </div>
+
+  <!--
+  Both column boxes of div#inner start in the 1st
+  column box of div#outer multi-column element.
+  The first 3 lines boxes of 1st
+  column box of div#inner will be rendered inside the
+  1st column box of div#outer but not its 2nd.
+  Because 1st column box of div#outer is
+  6em wide while the div#inner multi-column element
+  is 14em wide, this makes the first 3 line boxes
+  (with the 'z' trios) of 2nd column box of div#inner
+  clipped.
+
+  Then, at this point, the div#inner multi-column
+  element should be fragmented in order to continue to
+  render the 5 empty line boxes it has into the
+  2nd column box of div#outer. Since those 5 line
+  boxes are empty, we only see the extension it
+  creates horizontally, which is
+  14em - 6em == 8em horizontally and
+  5 lines boxes == 5em tall
+
+
+  Expected results:
+
+ 0em                        14em            22em
+  v                           v               v
+0 *********************************************
+  * bla                       |               *
+  * bla                       |               *
+  * bla                       |               *
+  * bla                       |               *
+5 * bla                       |               *
+6 * orn                       |****************
+7 * orn                       |
+8 * orn                       |
+  *****************************
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-001-ref.xht
@@ -0,0 +1,35 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  margin: 0em 1em;
+  padding: 0em 1em 1em;
+  width: 30em;
+  }
+
+  img
+  {
+  padding-right: 1em;
+  vertical-align: top;
+  }
+
+  img.-moz-column-gap {margin-right: 2em;}
+
+  img#last {padding-right: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="-moz-column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="-moz-column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png"
+width="40" height="60" alt="Image download support must be enabled" /><img id="last" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-001.xht
@@ -0,0 +1,81 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multicolumn and inheritance</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="multicol-inherit-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 Ahem;
+  width: 34em;
+  }
+
+  body > div
+  {
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+
+  /*
+  N == 3;
+
+    34em : available width
+  -  2em : horizontal margin of external div
+  -  2em : 2 column gaps
+ ==========
+    30em
+
+  So, W == 10em;
+
+    30em
+  -  6em : 3 mult by 2em: horizontal margin of 3 internal divs
+ ==========
+    24em : 8em for each of the 3 column boxes without their horizontal margins
+
+  */
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  margin: 0 1em 1em;
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<div>
+		aa aa
+		aa aa
+		aa aa
+		aa aa
+	</div>
+	<div>
+		mm mm
+		mm mm
+		mm mm
+		mm mm
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-002-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: blue;
+  font: 1.25em/1 serif;
+  margin: 1em;
+  padding: 0em 1em 1em;
+  width: 30em;
+  }
+
+  img {vertical-align: top;}
+
+  img.-moz-column-gap
+  {
+  margin-left: -2em;
+  margin-right: 3em;
+  vertical-align: bottom;
+  }
+
+  img#last
+  {
+  margin-left: -2em;
+  vertical-align: bottom;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img  class="-moz-column-gap" src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img  class="-moz-column-gap" src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img id="last" src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-002.xht
@@ -0,0 +1,88 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-count' and inherit</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-08 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cc" title="3.2 '-moz-column-count'" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#common-keywords" title="3.1.1. CSS-wide keywords: 'initial' and 'inherit'" />
+  <link rel="match" href="multicol-inherit-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-count' can be inherited by setting it with the CSS-wide keyword 'inherit'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  background-color: blue;
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  font: 1.25em/1 Ahem;
+  width: 32em;
+
+  /*
+  N == 3;
+
+    32em
+  -  2em : 2 column gaps
+ ==========
+    30em : available width of the 3 inner multi-column elements
+
+  So, W == 10em;
+
+    30em
+  -  6em : 3 mult by 2em: horizontal margin of 3 inner multi-column elements
+  -  6em : 3 mult by 2em: horizontal -moz-column-gaps of all 3 inner multi-column elements
+ ==========
+    18em : 6em for each of the 3 column boxes without their own horizontal margins
+    So, each column boxes of inner multi-column elements is 2em wide.
+  */
+  }
+
+  div
+  {
+  color: black;
+  margin: 1em;
+  orphans: 1;
+  widows: 1;
+  }
+
+  div > div
+  {
+  background-color: yellow;
+  -moz-column-count: inherit;
+  -moz-column-gap: 1em;
+  }
+
+  div > div:first-child {margin-top: 0;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<div>
+		aa aa
+		aa aa
+		aa aa
+		aa aa
+	</div>
+	<div>
+		mm mm
+		mm mm
+		mm mm
+		mm mm
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-003.xht
@@ -0,0 +1,69 @@
+<!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">
+<head>
+<title>multicolumn | inheritance</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="match" href="multicol-inherit-3-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	width: 75em;
+}
+body>div {
+	height: 2em;
+	-moz-column-width: 8em;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	orphans: 1;
+	widows: 1;
+}
+div>div {
+	margin: 0 1em 1em;
+}
+div+div {
+	color: blue;
+}
+div+div+div {
+	color: pink;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-004.xht
@@ -0,0 +1,61 @@
+<!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">
+<head>
+<title>multicolumn | inheritance</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-inherit-4-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	width: 74em;
+	-moz-column-rule: 1em solid blue;
+}
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: white;
+	background: white;
+	margin: 1em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 3;
+	-moz-column-gap: 7em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-3-ref.xht
@@ -0,0 +1,66 @@
+<!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">
+<head>
+<title>multicolumn | inheritance</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	width: 75em;
+}
+body>div {
+	color: black;
+	background: yellow;
+	height: 2em;
+	position: relative;
+}
+div div {
+	position: absolute;
+	top: 0;
+	left: 0;
+}
+#two {left: 19em;}
+#three {left: 38em;}
+div div div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	width: 2em;
+	height: 2em;
+	color: black;
+	position: absolute;
+	left: 1em;
+}
+.a2 {left: 4em;}
+.a3 {left: 10.5em;}
+.a4 {left: 13.5em;}
+#two div {color: blue;}
+#three div {color: pink;}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		<div>xx xx</div>
+		<div class="a2">xx xx</div>
+		<div class="a3">xx xx</div>
+		<div class="a4">xx xx</div>
+	</div>
+	<div id="two">
+		<div>xx xx</div>
+		<div class="a2">xx xx</div>
+		<div class="a3">xx xx</div>
+		<div class="a4">xx xx</div>
+	</div>
+	<div id="three">
+		<div>xx xx</div>
+		<div class="a2">xx xx</div>
+		<div class="a3">xx xx</div>
+		<div class="a4">xx xx</div>
+	</div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-inherit-4-ref.xht
@@ -0,0 +1,37 @@
+<!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">
+<head>
+<title>multicolumn | inheritance</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body>div {
+	margin: 1em;
+	background: white;
+	width: 74em;
+	height: 5em;
+	position: relative;
+}
+div div {
+	background: blue;
+	height: 5em;
+	width: 1em;
+	position: absolute;
+	top: 0;
+	left: 23em;
+}
+div>div+div {
+	left: 50em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div></div>
+	<div></div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-list-item-001-ref.xht
@@ -0,0 +1,22 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  height: 100px;
+  width: 200px;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-list-item-001.xht
@@ -0,0 +1,58 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column and list-item</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="multicol-list-item-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that an unordered list of list items can be set to display its list-items in column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  ul
+  {
+  background-color: black;
+  font: 1.25em/1 Ahem;
+  margin: 0em;
+  padding: 0em;
+  width: 10em;
+
+  -moz-column-gap: 0em;
+  -moz-column-width: 5em;
+  }
+
+  li, span {font-size: 1em;}
+
+  li
+  {
+  margin-left: 1em;
+  padding: 0em;
+  }
+
+  span {display: block;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <ul>
+	<li>1sli</li>
+	<li>2nli</li>
+	<li>3rli</li>
+	<li>4tli</li>
+	<li>5tli</li>
+	<li><span>6tli</span></li>
+	<li>7tli</li>
+	<li>8tli</li>
+	<li>9tli</li>
+	<li>10tl</li>
+  </ul>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-001.xht
@@ -0,0 +1,76 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column and margin collapsing of first child (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that the margin-top of the first child of a multi-column element (with -moz-column-fill: auto) does not collapse with its parent." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test-multi-column-red
+  {
+  background-color: red;
+  color: white;
+  font: 3.125em/1 Ahem; /* equivalent to 50px/50px Ahem */
+  height: 4em;
+  margin-top: 0em;
+  width: 4em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: auto;
+  -moz-column-gap: 0em;
+  }
+
+  div#first-child {margin-top: 2em;}
+
+  div#reference-overlapping-green
+  {
+  background-color: green;
+  bottom: 200px;
+  height: 100px;
+  position: relative;
+  width: 100px;
+  }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="test-multi-column-red">
+    <div id="first-child">ab cd</div>
+	ef gh ij kl
+  </div>
+
+  <div id="reference-overlapping-green"></div>
+
+  <!--
+
+  Expected result (before the overlapping):
+
+  *********************
+  | margin- |   ef    |
+  | top red |         |
+  | back    |   gh    |
+  | ground  |         |
+  *********************
+  |   ab    |   ij    |
+  |         |         |
+  |   cd    |   kl    |
+  |         |         |
+  *********************
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-002.xht
@@ -0,0 +1,80 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column and margin collapsing of first child (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that the margin-top of the first child (an inline-block) of a multi-column element (with -moz-column-fill: balance) does not collapse with its parent." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test-multi-column-red
+  {
+  background-color: red;
+  color: white;
+  font: 3.125em/1 Ahem; /* equivalent to 50px/50px Ahem */
+  height: 4em;
+  margin-top: 0em;
+  width: 4em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0em;
+  }
+
+  span
+  {
+  display: inline-block;
+  margin-top: 2em;
+  }
+
+  div#reference-overlapping-green
+  {
+  background-color: green;
+  bottom: 200px;
+  height: 100px;
+  position: relative;
+  width: 100px;
+  }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="test-multi-column-red">
+    <span>ab cd</span>
+	ef gh ij kl
+  </div>
+
+  <div id="reference-overlapping-green"></div>
+
+  <!--
+
+  Expected result (before the overlapping):
+
+  *********************
+  | margin- |   ef    |
+  | top red |         |
+  | back    |   gh    |
+  | ground  |         |
+  *********************
+  |   ab    |   ij    |
+  |         |         |
+  |   cd    |   kl    |
+  |         |         |
+  *********************
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-child-001-ref.xht
@@ -0,0 +1,45 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  background-color: blue;
+  border: gray solid 1em;
+  font-size: 1.25em;
+  height: 8em;
+  position: relative;
+  width: 10em;
+  }
+
+  div > div
+  {
+  background-color: yellow;
+  height: 1em;
+  left: 0;
+  position: absolute;
+  top: 3em;
+  width: 5em;
+  }
+
+  #second-stripe {top: 5em;}
+
+  #third-stripe {top: 7em;}
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div>
+	<div></div>
+	<div id="second-stripe"></div>
+	<div id="third-stripe"></div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-margin-child-001.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column and margin collapsing of block children (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-margin-child-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that the margin-bottom of a block child in a multi-column element will collapse with the margin-top of a following block child of that same multi-colum element if those children are vertically adjacent and if no line boxes, no clearance, no padding and no border separate them." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: blue;
+  font: 1.25em/1 Ahem;
+  width: 10em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0em;
+  }
+
+  h4
+  {
+  font: inherit;
+  margin: 1em 0;
+  }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div>
+	1scol 1scol
+	1scol
+  <h4>	h4h41	</h4>
+  <h4>	h4h42	</h4>
+	2ncol 2ncol
+	2ncol 2ncol
+	2ncol 2ncol
+	2ncol 2ncol
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-002-ref.xht
@@ -0,0 +1,106 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body {margin: 0em;}
+
+  div#rel-pos-wrapper
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 4em;
+  position: relative;
+  width: 32em;
+  }
+
+  div > div
+  {
+  font-size: 1em;
+  height: 3em;
+  position: absolute;
+  top: 0;
+  width: 2em;
+  }
+
+  div#black1
+  {
+  background-color: black;
+  left: 1em;
+  }
+
+  div#black2
+  {
+  background-color: black;
+  left: 4em;
+  }
+
+  div#black3
+  {
+  background-color: black;
+  height: 2em;
+  left: 7em;
+  }
+
+  div#blue1
+  {
+  background-color: blue;
+  left: 12em;
+  }
+
+  div#blue2
+  {
+  background-color: blue;
+  left: 15em;
+  }
+
+  div#blue3
+  {
+  background-color: blue;
+  height: 2em;
+  left: 18em;
+  }
+
+  div#pink1
+  {
+  background-color: pink;
+  left: 23em;
+  }
+
+  div#pink2
+  {
+  background-color: pink;
+  left: 26em;
+  }
+
+  div#pink3
+  {
+  background-color: pink;
+  height: 2em;
+  left: 29em;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+
+	<div id="black1"></div>
+	<div id="black2"></div>
+	<div id="black3"></div>
+
+	<div id="blue1"></div>
+	<div id="blue2"></div>
+	<div id="blue3"></div>
+
+	<div id="pink1"></div>
+	<div id="pink2"></div>
+	<div id="pink3"></div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-002.xht
@@ -0,0 +1,86 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multicolumn and margin-bottom collapsing</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-nested-002-ref.xht" />
+  <meta name="assert" content="This test checks that a block container element's margin-bottom can collapse with its multi-column parent's margin-bottom if no line boxes, no clearance, no padding and no border separate them." />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 0em;}
+
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  width: 32em;
+
+  -moz-column-gap: 1em;
+  -moz-column-width: 8em;
+  }
+
+  /*
+
+  N == max(1, floor((available-width + -moz-column-gap) / (-moz-column-width + -moz-column-gap)));
+  N == max(1, floor((32em + 1em) / (8em + 1em)));
+  N == max(1, floor(33em / 9em));
+  N == max(1, floor(3.6));
+  N == max(1, 3);
+  N == 3;
+
+  W == ((available-width + -moz-column-gap) / N) - -moz-column-gap;
+  W == ((32em + 1em) / 3) - 1em;
+  W == (33em / 3) - 1em;
+  W == (11em) - 1em;
+  W == 10em;
+
+  */
+
+  div
+  {
+  background: yellow;
+  color: black;
+  orphans: 1;
+  widows: 1;
+  }
+
+  div > div {margin: 0 1em 1em;}
+
+  div + div {color: blue;}
+
+  div + div + div {color: pink;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-005-ref.xht
@@ -0,0 +1,35 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  margin: 1em;
+  padding: 0em 1em 1em;
+  width: 39em;
+  }
+
+  img
+  {
+  padding-right: 2em;
+  vertical-align: top;
+  }
+
+  img.-moz-column-gap {margin-right: 2em;}
+
+  img#last {padding-right: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="-moz-column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="-moz-column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png"
+width="40" height="60" alt="Image download support must be enabled" /><img id="last" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-005.xht
@@ -0,0 +1,112 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: nested multi--moz-columns and constrained dimensions</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="multicol-nested-005-ref.xht" />
+  <!--
+  The original filename of this test was
+  multicol-inherit-005.xht
+  This test also serves as a conversion of
+  multicol-nested-001.xht
+  -->
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks how the height of column boxes conditions the height of nested column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  -moz-column-gap: 1em;
+  font: 1.25em/1 Ahem;
+  width: 41em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (41em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (41em - (2 * 1em)) / 3);
+  W == max(0, (41em - 2em) / 3);
+  W == max(0, 39em / 3);
+  W == max(0, 13em);
+  W == 13em;
+
+  The height of column rule depends on number of line boxes in
+  each outer column box which depends on number of line boxes
+  in each inner column box. So:
+
+    13em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    11em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (11em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (11em - (2 * 1em)) / 3);
+  W == max(0, (11em - 2em) / 3);
+  W == max(0, 9em / 3);
+  W == max(0, 3em);
+  W == 3em;
+
+  So, each duo of 'a', 'm' and 'x' should fill one and only 1 line
+  box. There are 8 duos; therefore, the first 2 inner
+  column boxes should use 3 line boxes and the 3rd inner
+  column box should be using 2 line boxes.
+
+  So, the height of the 2 blue column rules should be 60px.
+
+  */
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  font-size: 1em;
+  margin: 1em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  }
+
+  div > div:first-child {margin-top: 0;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		aa aa
+		aa aa
+		aa aa
+		aa aa
+	</div>
+	<div>
+		mm mm
+		mm mm
+		mm mm
+		mm mm
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-column-rule-001-ref.xht
@@ -0,0 +1,45 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#rel-pos-wrapper
+  {
+  font: 1.25em/1 serif;
+  position: relative;
+  }
+
+  div#rel-pos-wrapper > div
+  {
+  background-color: blue;
+  font-size: 1em;
+  height: 3em;
+  position: absolute;
+  width: 1em;
+  }
+
+  div#first--moz-column-rule
+  {
+  left: 14em;
+  top: auto;
+  }
+
+  div#second--moz-column-rule
+  {
+  left: 29em;
+  top: auto;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+	<div id="first--moz-column-rule"></div>
+	<div id="second--moz-column-rule"></div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-column-rule-001.xht
@@ -0,0 +1,128 @@
+<!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">
+ <head>
+  <!--
+  This test's original filename was multicol-inherit-004.xht
+  and it has been modified and is now
+  multicol-nested--moz-column-rule-001.xht
+  -->
+  <title>CSS Multi-column Layout Test: nested multi--moz-columns and -moz-column-rule position</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
+  <link rel="match" href="multicol-nested--moz-column-rule-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks how the height of column boxes conditions the height of column rule." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  -moz-column-rule: blue solid 1em;
+  font: 1.25em/1 Ahem;
+  width: 42em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (42em - ((3 - 1) * 3em)) / 3);
+  W == max(0, (42em - (2 * 3em)) / 3);
+  W == max(0, (42em - 6em) / 3);
+  W == max(0, 36em / 3);
+  W == max(0, 12em);
+  W == 12em;
+
+  So, the first -moz-column-rule should be at:
+
+    1.0em : margin-left of outer div
+   12.0em : width of 1st column box
+    1.0em : (3.0em / 2) - (1.0em / 2) : left edge of 1st -moz-column-rule
+  =========
+   14.0em
+
+  The 2nd -moz-column-rule should be at:
+
+    1.0em : margin-left of outer div
+   12.0em : width of 1st column box
+    3.0em : first -moz-column-gap
+   12.0em : width of 2nd column box
+    1.0em : (3.0em / 2) - (1.0em / 2) : left edge of 2nd -moz-column-rule
+  =========
+   29.0em
+
+  The height of column rule depends on number of line boxes in
+  each outer column box which depends on number of line boxes
+  in each inner column box. So:
+
+    12em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    10em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (10em - ((3 - 1) * 3em)) / 3);
+  W == max(0, (10em - (2 * 3em)) / 3);
+  W == max(0, (10em - 6em) / 3);
+  W == max(0, 4em / 3);
+  W == max(0, 1.33333em);
+  W == 1.33333em;
+
+  So, each duo of 'a', 'm' and 'x' should fill one and only 1 line
+  box. There are 8 duos; therefore, the first 2 inner
+  column boxes should use 3 line boxes and the 3rd inner
+  column box should be using 2 line boxes.
+
+  So, the height of the 2 blue column rules should be 60px.
+
+  */
+
+  div
+  {
+  background-color: white;
+  color: white;
+  font-size: 1em;
+  margin: 0em 1em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 3em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		aa aa
+		aa aa
+		aa aa
+		aa aa
+	</div>
+	<div>
+		mm mm
+		mm mm
+		mm mm
+		mm mm
+	</div>
+	<div>
+		xx xx
+		xx xx
+		xx xx
+		xx xx
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-001-ref.xht
@@ -0,0 +1,107 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body {margin: 0em;}
+
+  div#rel-pos-wrapper
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 3em;
+  margin: 1em;
+  position: relative;
+  width: 32em;
+  }
+
+  div > div
+  {
+  font-size: 1em;
+  height: 3em;
+  position: absolute;
+  top: 0em;
+  width: 2em;
+  }
+
+  div#black1
+  {
+  background-color: black;
+  left: 1em;
+  }
+
+  div#black2
+  {
+  background-color: black;
+  left: 4em;
+  }
+
+  div#black3
+  {
+  background-color: black;
+  height: 2em;
+  left: 7em;
+  }
+
+  div#pink1
+  {
+  background-color: pink;
+  left: 12em;
+  }
+
+  div#pink2
+  {
+  background-color: pink;
+  left: 15em;
+  }
+
+  div#pink3
+  {
+  background-color: pink;
+  height: 2em;
+  left: 18em;
+  }
+
+  div#blue1
+  {
+  background-color: blue;
+  left: 23em;
+  }
+
+  div#blue2
+  {
+  background-color: blue;
+  left: 26em;
+  }
+
+  div#blue3
+  {
+  background-color: blue;
+  height: 2em;
+  left: 29em;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+
+	<div id="black1"></div>
+	<div id="black2"></div>
+	<div id="black3"></div>
+
+	<div id="pink1"></div>
+	<div id="pink2"></div>
+	<div id="pink3"></div>
+
+	<div id="blue1"></div>
+	<div id="blue2"></div>
+	<div id="blue3"></div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-001.xht
@@ -0,0 +1,82 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multicolumn and nested margins</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />
+  <link rel="match" href="multicol-nested-margin-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that non-zero vertical margins can be applied on a multi-column element while the vertical margins of its own block containers can be set to zero." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 0em;}
+
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  width: 32em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == ((available-width + -moz-column-gap) / N) - -moz-column-gap;
+  W == ((32em + 1em) / 3) - 1em;
+  W == (33em / 3) - 1em;
+  W == (11em) - 1em;
+  W == 10em;
+
+  */
+
+  div
+  {
+  background: yellow;
+  color: black;
+  margin: 1em;
+  orphans: 1;
+  widows: 1;
+  }
+
+  div > div {margin: 0em 1em;}
+
+  div div:nth-child(2) {color: pink;}
+
+  div div:nth-child(3) {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-002-ref.xht
@@ -0,0 +1,59 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body {margin: 0em;}
+
+  div
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 5em;
+  position: relative;
+  width: 41em;
+  }
+
+  div > div
+  {
+  background-color: blue;
+  font: inherit;
+  height: 3em;
+  position: absolute;
+  top: 0em;
+  width: 2em
+  }
+
+  div#first-blue
+  {
+  background-color: blue;
+  left: 29em;
+  }
+
+  div#second-blue
+  {
+  background-color: blue;
+  left: 33em;
+  }
+
+  div#third-blue
+  {
+  background-color: blue;
+  height: 2em;
+  left: 37em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <div id="first-blue"></div>
+    <div id="second-blue"></div>
+    <div id="third-blue"></div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-002.xht
@@ -0,0 +1,119 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: nested multi-moz-columns and vertical margin (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />  <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-nested-margin-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that when an inner nested multi-column element is preceded by a soft column break (caused by an unforced column-break), then the used margin-top of such inner nested multi-column element is '0'." />
+
+  <!--
+  More info:
+  Re: [css3-multicol] vertical margins rendering in nested multi--moz-columns
+  http://lists.w3.org/Archives/Public/www-style/2013Aug/0146.html
+  -->
+
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 0;}
+
+  body > div
+  {
+  background-color: yellow;
+  font: 1.25em/1 Ahem;
+  width: 41em;
+  /*
+  This test requires a viewport width of 820px
+  */
+  }
+
+  div
+  {
+  color: yellow;
+  font: inherit;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  div div {margin: 0em 1em;}
+
+  div div:last-child
+  {
+  color: blue;
+  margin: 1em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (41em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (41em - (2 * 1em)) / 3);
+  W == max(0, (41em - 2em) / 3);
+  W == max(0, 39em / 3);
+  W == max(0, 13em);
+  W == 13em;
+
+  The height of column rule depends on number of line boxes in
+  each outer column box which depends on number of line boxes
+  in each inner column box. So:
+
+    13em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    11em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (11em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (11em - (2 * 1em)) / 3);
+  W == max(0, (11em - 2em) / 3);
+  W == max(0, 9em / 3);
+  W == max(0, 3em);
+  W == 3em;
+
+  So, each duo of 'a', 'm' and 'x' should fill one and only 1
+  line box. There are 15 'a' duos and 15 'm' duos; therefore,
+  the 3 inner column boxes of each first 2 inner
+  multi-column elements should use 5 line boxes.
+
+  The 1st column box of last inner multi-column
+  (the blue one with 'x' duos) should have 'x1',
+  'x2' and 'x3' duos filling 3 line boxes.
+
+  The 2nd column box of last inner multi-column should
+  have 'x4', 'x5' and 'x6' duos filling 3 line boxes.
+
+  The 3rd column box of the last inner multi-column should
+  have 'x7' and 'x8' duos filling 2 line boxes.
+  */
+
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+
+	<div> a1 a2 a3 a4 a5 a6 a7 a8 a9 a0 a1 a2 a3 a4 a5 </div>
+
+	<div> m1 m2 m3 m4 m5 m6 m7 m8 m9 m0 m1 m2 m3 m4 m5 </div>
+
+	<div> x1 x2 x3 x4 x5 x6	x7 x8 </div>
+
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-003-ref.xht
@@ -0,0 +1,108 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#rel-pos-wrapper
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 4em;
+  margin: 1em;
+  position: relative;
+  width: 41em;
+  }
+
+  div > div
+  {
+  font-size: 1em;
+  height: 3em;
+  position: absolute;
+  top: 0em;
+  width: 2em;
+  }
+
+  div#black1
+  {
+  background-color: black;
+  left: 1em;
+  top: 1em;
+  }
+
+  div#black2
+  {
+  background-color: black;
+  left: 5em;
+  top: 1em;
+  }
+
+  div#black3
+  {
+  background-color: black;
+  height: 2em;
+  left: 9em;
+  top: 1em;
+  }
+
+  div#pink1
+  {
+  background-color: pink;
+  left: 15em;
+  }
+
+  div#pink2
+  {
+  background-color: pink;
+  left: 19em;
+  }
+
+  div#pink3
+  {
+  background-color: pink;
+  height: 2em;
+  left: 23em;
+  }
+
+  div#blue1
+  {
+  background-color: blue;
+  left: 29em;
+  }
+
+  div#blue2
+  {
+  background-color: blue;
+  left: 33em;
+  }
+
+  div#blue3
+  {
+  background-color: blue;
+  height: 2em;
+  left: 37em;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+
+	<div id="black1"></div>
+	<div id="black2"></div>
+	<div id="black3"></div>
+
+	<div id="pink1"></div>
+	<div id="pink2"></div>
+	<div id="pink3"></div>
+
+	<div id="blue1"></div>
+	<div id="blue2"></div>
+	<div id="blue3"></div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-003.xht
@@ -0,0 +1,102 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: nested multicolumn and nested margin-top</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-nested-margin-003-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a top margin set on the first child element of a nested multicol element will not collapse with the margins of the multicol element." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  margin: 1em;
+  width: 41em;
+  /*
+  This test requires a viewport width of 860px
+  */
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  margin: 1em 1em 0;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  /*
+
+  N == 3;
+
+  43em - 2em (horizontal margins) == available-width
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (41em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (41em - (2 * 1em)) / 3);
+  W == max(0, (41em - 2em) / 3);
+  W == max(0, 39em / 3);
+  W == max(0, 13em);
+  W == 13em;
+
+    13em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    11em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (11em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (11em - (2 * 1em)) / 3);
+  W == max(0, (11em - 2em) / 3);
+  W == max(0, 9em / 3);
+  W == max(0, 3em);
+  W == 3em;
+
+  */
+
+  div div:nth-child(2) {color: pink;}
+
+  div div:nth-child(3) {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-004-ref.xht
@@ -0,0 +1,137 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#rel-pos-wrapper
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 4em;
+  margin: 1em;
+  position: relative;
+  width: 41em;
+  }
+
+  div > div
+  {
+  font-size: 1em;
+  height: 3em;
+  position: absolute;
+  top: 0em;
+  width: 2em;
+  }
+
+  div#black1
+  {
+  background-color: black;
+  left: 1em;
+  top: 1em;
+  }
+
+  div#black2
+  {
+  background-color: black;
+  left: 5em;
+  top: 1em;
+  }
+
+  div#black3
+  {
+  background-color: black;
+  height: 2em;
+  left: 9em;
+  top: 1em;
+  }
+
+  div#pink1
+  {
+  background-color: pink;
+  left: 15em;
+  }
+
+  div#blue-bottom1
+  {
+  background-color: blue;
+  height: 1em;
+  left: 15em;
+  top: 3em;
+  }
+
+  div#pink2
+  {
+  background-color: pink;
+  left: 19em;
+  }
+
+  div#blue-bottom2
+  {
+  background-color: blue;
+  height: 1em;
+  left: 19em;
+  top: 3em;
+  }
+
+  div#pink3
+  {
+  background-color: pink;
+  height: 2em;
+  left: 23em;
+  }
+
+  div#blue-bottom3
+  {
+  background-color: blue;
+  height: 1em;
+  left: 23em;
+  top: 3em;
+  }
+
+  div#blue1
+  {
+  background-color: blue;
+  height: 2em;
+  left: 29em;
+  }
+
+  div#blue2
+  {
+  background-color: blue;
+  height: 2em;
+  left: 33em;
+  }
+
+  div#blue3
+  {
+  background-color: blue;
+  height: 1em;
+  left: 37em;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+
+	<div id="black1"></div>
+	<div id="black2"></div>
+	<div id="black3"></div>
+
+	<div id="pink1"></div>
+	<div id="blue-bottom1"></div>
+	<div id="pink2"></div>
+	<div id="blue-bottom2"></div>
+	<div id="pink3"></div>
+	<div id="blue-bottom3"></div>
+
+	<div id="blue1"></div>
+	<div id="blue2"></div>
+	<div id="blue3"></div>
+
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-004.xht
@@ -0,0 +1,106 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: nested multicolumn and nested margin-top</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-nested-margin-004-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that due to a top margin only set on the first child element of a nested multicol element that will not collapse with the margins of the multicol element, then the height of an multi-column element can make its other inner multi-column (with a zero margin-top) element break into its own column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  margin: 1em;
+  width: 41em;
+  /*
+  This test requires a viewport width of 860px
+  */
+  }
+
+  div
+  {
+  background: yellow;
+  color: black;
+  margin: 1em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  div div {margin: 0 1em;}
+
+  div div:first-child {margin: 1em 1em 0;}
+
+  /*
+
+  N == 3;
+
+  43em - 2em (horizontal margins) == available-width
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (41em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (41em - (2 * 1em)) / 3);
+  W == max(0, (41em - 2em) / 3);
+  W == max(0, 39em / 3);
+  W == max(0, 13em);
+  W == 13em;
+
+    13em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    11em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (11em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (11em - (2 * 1em)) / 3);
+  W == max(0, (11em - 2em) / 3);
+  W == max(0, 9em / 3);
+  W == max(0, 3em);
+  W == 3em;
+
+  */
+
+  div div:nth-child(2) {color: pink;}
+
+  div div:nth-child(3) {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-nested-margin-005.xht
@@ -0,0 +1,104 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: nested multicolumn and nested margin-top</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
+  <link rel="match" href="multicol-nested-margin-004-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that due to a top margin only set on the first child element of a nested multicol element that will not collapse with the margins of the multicol element, then the height of an multi-column element can make its other inner multi-column (with a zero margin-top) element break into its own column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  margin: 1em;
+  width: 41em;
+  /*
+  This test requires a viewport width of 860px
+  */
+  }
+
+  div
+  {
+  background: yellow;
+  color: black;
+  margin: 1em 1em 0em;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  }
+
+  div div {margin: 0 1em;}
+
+  div div:first-child {margin: 1em 1em 0;}
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (41em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (41em - (2 * 1em)) / 3);
+  W == max(0, (41em - 2em) / 3);
+  W == max(0, 39em / 3);
+  W == max(0, 13em);
+  W == 13em;
+
+    13em : width of each outer column box
+   -
+     2em : horizontal margin of each div inside
+   =======
+    11em : width of each inner multi-column elements
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (11em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (11em - (2 * 1em)) / 3);
+  W == max(0, (11em - 2em) / 3);
+  W == max(0, 9em / 3);
+  W == max(0, 3em);
+  W == 3em;
+
+  */
+
+  div div:nth-child(2) {color: pink;}
+
+  div div:nth-child(3) {color: blue;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-overflow-000-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-right: lime solid 1em;
+  border-spacing: 0px;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  margin: 1em 0;
+  table-layout: fixed;
+  width: 21em;
+  }
+
+  td {padding: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <table><tr><td>G<br />H</td><td>I<br />J</td></tr></table>
+
+  <table><tr><td>G<br />H</td><td>I<br />J</td></tr></table>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-overflow-000.xht
@@ -0,0 +1,55 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column with set height causing overflow outside (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />
+  <link rel="match" href="multicol-overflow-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that column gap appears between two -moz-columns." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div, table
+  {
+  background-color: yellow;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  margin: 1em 0;
+  }
+
+  div
+  {
+  -moz-columns: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0px;
+  height: 2em;
+  width: 20em;
+  }
+
+  table
+  {
+  border-right: lime solid 1em;
+  border-spacing: 0px;
+  table-layout: fixed;
+  width: 21em;
+  }
+
+  td {padding: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div id="test">A<br />B<br />C<br />D<br />E<br />F</div>
+
+  <table id="reference"><tr><td>G<br />H</td><td>I<br />J</td></tr></table>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-overflowing-001-ref.xht
@@ -0,0 +1,209 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#rel-pos-wrapper
+  {
+  background-color: yellow;
+  font: 1.25em/1 serif;
+  height: 2em;
+  position: relative;
+  width: 32em;
+  }
+
+  div > div
+  {
+  font-size: 1em;
+  height: 2em;
+  position: absolute;
+  top: 0;
+  width: 2em;
+  }
+
+  div#black1
+  {
+  background-color: black;
+  left: 1em;
+  }
+
+  div#black2
+  {
+  background-color: black;
+  left: 4em;
+  }
+
+  div#black3
+  {
+  background-color: black;
+  left: 7em;
+  }
+
+  div#black4
+  {
+  background-color: black;
+  height: 1em;
+  left: 12em;
+  }
+
+  div#black5
+  {
+  background-color: black;
+  height: 1em;
+  left: 15em;
+  }
+
+  div#blue1
+  {
+  background-color: blue;
+  left: 23em;
+  }
+
+  div#blue2
+  {
+  background-color: blue;
+  left: 26em;
+  }
+
+  div#blue3
+  {
+  background-color: blue;
+  left: 29em;
+  }
+
+  div#blue4
+  {
+  background-color: blue;
+  height: 1em;
+  left: 34em;
+  }
+
+  div#yellow1
+  {
+  background-color: yellow;
+  height: 1em;
+  left: 36em;
+  width: 1em;
+  }
+
+  div#blue5
+  {
+  background-color: blue;
+  height: 1em;
+  left: 37em;
+  }
+
+  div#yellow2
+  {
+  background-color: yellow;
+  height: 1em;
+  left: 39em;
+  width: 3em;
+  }
+
+  div#pink1
+  {
+  background-color: pink;
+  left: 45em;
+  }
+
+  div#yellow3
+  {
+  background-color: yellow;
+  left: 47em;
+  width: 1em;
+  }
+
+  div#pink2
+  {
+  background-color: pink;
+  left: 48em;
+  }
+
+  div#yellow4
+  {
+  background-color: yellow;
+  left: 50em;
+  width: 1em;
+  }
+
+  div#pink3
+  {
+  background-color: pink;
+  left: 51em;
+  }
+
+  div#pink4
+  {
+  background-color: pink;
+  height: 1em;
+  left: 56em;
+  }
+
+  div#yellow5
+  {
+  background-color: yellow;
+  height: 1em;
+  left: 58em;
+  width: 1em;
+  }
+
+  div#pink5
+  {
+  background-color: pink;
+  height: 1em;
+  left: 59em;
+  }
+
+  div#yellow6
+  {
+  background-color: yellow;
+  height: 1em;
+  left: 61em;
+  width: 3em;
+  }
+
+  div#margin-right
+  {
+  background-color: transparent;
+  height: 1em;
+  left: 64em;
+  width: 1em;
+  }
+   ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+	<div id="black1"></div>
+	<div id="black2"></div>
+	<div id="black3"></div>
+	<div id="black4"></div>
+	<div id="black5"></div>
+
+	<div id="blue1"></div>
+	<div id="blue2"></div>
+	<div id="blue3"></div>
+	<div id="blue4"></div>
+	<div id="yellow1"></div>
+	<div id="blue5"></div>
+	<div id="yellow2"></div>
+
+	<div id="pink1"></div>
+	<div id="yellow3"></div>
+	<div id="pink2"></div>
+	<div id="yellow4"></div>
+	<div id="pink3"></div>
+	<div id="pink4"></div>
+	<div id="yellow5"></div>
+	<div id="pink5"></div>
+	<div id="yellow6"></div>
+	<div id="margin-right"></div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-overflowing-001.xht
@@ -0,0 +1,92 @@
+<!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">
+ <head>
+  <!--
+  This test's original filename was multicol-inherit-003.xht
+  and it has been modified and is now
+  multicol-overflowing-001.xht
+  -->
+  <title>CSS Multi-column Layout Test: multicolumn and overflowing constrained dimensions</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />
+  <link rel="match" href="multicol-overflowing-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that the content of a multi-column element with a fixed height can overflow outside its fixed width according to the computed overflow value. In this test, the inline content of a multi-column element exceeds the available fixed height and fixed width for the multi-column element; therefore, it overflows outside of it and creates a 4th, 5th and 6th extra column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body > div
+  {
+  font: 1.25em/1 Ahem;
+  height: 2em;
+  width: 32em;
+
+  -moz-column-gap: 1em;
+  -moz-column-width: 8em;
+  }
+
+  /*
+
+  N == max(1, floor((available-width + -moz-column-gap) / (-moz-column-width + -moz-column-gap)));
+  N == max(1, floor((32em + 1em) / (8em + 1em)));
+  N == max(1, floor(33em / 9em));
+  N == max(1, floor(3.6));
+  N == max(1, 3);
+  N == 3;
+
+  W == ((available-width + -moz-column-gap) / N) - -moz-column-gap;
+  W == ((32em + 1em) / 3) - 1em;
+  W == (33em / 3) - 1em;
+  W == (11em) - 1em;
+  W == 10em;
+
+  H == 2em;
+
+  */
+
+  div
+  {
+  background: yellow;
+  color: black;
+  orphans: 1;
+  widows: 1;
+  }
+
+  div > div {margin: 0 1em 1em;}
+
+  div + div {color: blue;}
+
+  div + div + div {color: pink;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+	<div>
+		bl ac
+		bl ac
+		bl ac
+		bl ac
+	</div>
+	<div>
+		bl ue
+		bl ue
+		bl ue
+		bl ue
+	</div>
+	<div>
+		Pi nk
+		Pi nk
+		Pi nk
+		Pi nk
+	</div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
index 0000000000000000000000000000000000000000..2d79f2b29523bc9fdf60b38d837d413a7604ad3e
GIT binary patch
literal 225
zc%17D@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;bAV5X>wg9Y$w!>#KrUy2M`SSr
z1Gf+eGhVt|_Xi|cR^XV<z`!<vfq_Me;f}+Za-blOr;B3<$Mxg{1zsS}fPwM&s@6V`
zxh1X<B`Jv|saDBFsX&Us$iUE0*T6#8z$C=bz{<eP%FtNbz{twLpnSIG78DJ+`6-!c
YmAEyq9h=Aj)WG2B>gTe~DWQoA0D8VN3IG5A
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-reduce-000-ref.xht
@@ -0,0 +1,43 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: black solid thin;
+  color: orange;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 30em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 rectangles with orange and blue vertical stripes are <strong>identical</strong>.</p>
+
+  <div>
+  1 2 3 4 5 6 7 8<span>A B C D E F G H </span><br />
+  9 0 1 2 3 4 5 6<span>I J K L M N O P </span>
+  </div>
+
+  <div>
+  1 2 3 4 5 6 7 8<span>A B C D E F G H </span><br />
+  9 0 1 2 3 4 5 6<span>I J K L M N O P </span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-reduce-000.xht
@@ -0,0 +1,69 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: column width becomes wider to fill available space</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1 '-moz-column-width'" />
+  <link rel="match" href="multicol-reduce-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that column width is increased to fill the available space: in this test, there are only 2 column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#test, div#reference
+  {
+  background-color: yellow;
+  border: black solid thin;
+  color: orange;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 30em;
+  }
+
+  div#test
+  {
+  -moz-column-gap: 0;
+  -moz-column-width: 201px;
+
+  /*
+
+  N == max(1, floor((U + -moz-column-gap)/(-moz-column-width + -moz-column-gap)))
+  N == max(1, floor((600px + 0px)/(201px + 0)))
+  N == max(1, floor(600px/201px))
+  N == max(1, floor(2.985))
+  N == max(1, 2)
+  N == 2;
+
+  W == max(0, ((U + -moz-column-gap)/N - -moz-column-gap))
+  W == max(0, ((600px + 0px)/2 - 0px))
+  W == max(0, ((600px)/2 - 0px))
+  W == max(0, (300px - 0px))
+  W == max(0, 300px)
+  W == 300px;
+
+  */
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 rectangles with orange and blue vertical stripes are <strong>identical</strong>.</p>
+
+  <div id="test">
+  1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 <span>A B C D E F G H I J K L M N O P</span>
+  </div>
+
+  <div id="reference">
+  1 2 3 4 5 6 7 8<span>A B C D E F G H </span><br />
+  9 0 1 2 3 4 5 6<span>I J K L M N O P </span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-000-ref.xht
@@ -0,0 +1,43 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: black;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 602px;
+  }
+
+  span
+  {
+  border-left: lime solid 1px;
+  border-right: lime solid 1px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div>
+  1234567890<span>ABCDEFGHIJ</span>1234567890
+  </div>
+
+  <div>
+  1234567890<span>ABCDEFGHIJ</span>1234567890
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-000.xht
@@ -0,0 +1,63 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: black;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 602px;
+  }
+
+  div#test
+  {
+  -moz-columns: 3;
+  -moz-column-gap: 1px;
+  -moz-column-rule: lime solid 1px;
+
+  /*
+
+  N == 3;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span
+  {
+  border-left: lime solid 1px;
+  border-right: lime solid 1px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
+
+  <div id="test">
+  1234567890<br />ABCDEFGHIJ<br />1234567890
+  </div>
+
+  <div id="reference">
+  1234567890<span>ABCDEFGHIJ</span>1234567890
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-001-ref.xht
@@ -0,0 +1,33 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: green;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 20em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there are 2 green bars and <strong>no red</strong>.</p>
+
+  <div>12345678901234567890</div>
+
+  <div>12345678901234567890</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-001.xht
@@ -0,0 +1,55 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule exceeding -moz-column-gap</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules" title="4. Column gaps and rules" />
+  <link rel="match" href="multicol-rule-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="If a column rule is wider than its gap, then the adjacent column boxes overlap the rule. This test checks that if inline content of column boxes uses only 1 twentieth (1/20) of each of the adjacent column box width, then the column rule must shine through 19 twentieths (19/20) of each of the adjacent column boxes (and above their respective backgrounds)." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: red;
+  color: green;
+  font: 1.25em/1 Ahem;
+  margin-bottom: 0.5em;
+  width: 20em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0em;
+  -moz-column-rule: green solid 20em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there are 2 green bars and <strong>no red</strong>.</p>
+
+  <div id="test">1<br />2</div>
+
+  <div id="reference">12345678901234567890</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-002.xht
@@ -0,0 +1,69 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-rule-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 15em;
+	position: relative;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 1em;
+}
+span {
+	background: blue;
+	position: absolute;
+	top: 0;
+	left: 3em;
+	height: 2em;
+	width: 1em;
+}
+span+span {
+	left: 7em;
+}
+span+span+span {
+	left: 11em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+<span>
+</span>
+	xx xx
+<span>
+</span>
+	xx xx
+<span>
+</span>
+	xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-003-ref.xht
@@ -0,0 +1,27 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 15em;
+  }
+
+  img {vertical-align: top;}
+
+  img.yellow {padding-left: 2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img class="yellow" src="support/swatch-yellow.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="20" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-003.xht
@@ -0,0 +1,46 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules" title="4. Column gaps and rules" />
+  <link rel="match" href="multicol-rule-003-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 15em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+  1s cl
+  2n cl
+  3r cl
+  4t cl
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-004-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-02 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div
+  {
+  background-color: green;
+  height: 100px;
+  left: 8px;
+  position: absolute;
+  top: 52px;
+  width: 100px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-004.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-fill: balance' and -moz-column-rule</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-02 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules" title="4. Column gaps and rules" />
+  <link rel="match" href="multicol-rule-004-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that when '-moz-column-fill: balance' distributes equally inline content into column boxes in a way that does not completely fill column boxes, then -moz-column-rule must nevertheless still be painted entirely, that is for the whole length of column boxes, even though the whole inline content may not fill the whole length of the column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div#red-overlapped-reference
+  {
+  background-color: red;
+  height: 100px;
+  width: 100px;
+  }
+
+  div#test-overlapping-green
+  {
+  bottom: 100px;
+  color: transparent;
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  height: 5em;
+  position: relative;
+  right: 80px;
+  width: 13em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 5em;
+  -moz-column-rule: green solid 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="red-overlapped-reference"></div>
+
+  <div id="test-overlapping-green">LEFT Colm RIGH Colm</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-001-ref.xht
@@ -0,0 +1,27 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 14em;
+  }
+
+  img {vertical-align: top;}
+
+  img.white {padding-left: 2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img class="white" src="support/swatch-white.png" width="15" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="white" src="support/swatch-white.png" width="15" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="white" src="support/swatch-white.png" width="15" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" /><img class="white" src="support/swatch-white.png" width="15" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-001.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz--moz-column-rule-color (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-color-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 14em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1em;
+  }
+
+  /*
+
+  N == 4;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (14em - ((4 - 1) * 1em)) / 4);
+  W == max(0, (14em - (3 * 1em)) / 4);
+  W == max(0, (14em - (3em)) / 4);
+  W == max(0, (11em) / 4);
+  W == max(0, 2.75em);
+  W == 2.75em;
+
+  */
+
+  span {color: black;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+  <span>1s cl</span>
+  <span>2n cl</span>
+  <span>3r cl</span>
+  <span>4t cl</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-001-ref.xht
@@ -0,0 +1,22 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-03 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div {font-size: 1.25em;}
+  img {padding-left: 1em;}
+   ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there are 6 vertical green stripes and <strong>no red</strong>.</p>
+
+  <div>
+  <img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-white.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-white.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" /><img src="support/swatch-green.png" width="20" height="120" alt="Image download support must be enabled" />
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-001.xht
@@ -0,0 +1,143 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz--moz-column-rule-color: inherit</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-02 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crc" title="4.2. '-moz--moz-column-rule-color'" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#common-keywords" title="3.1.1. CSS-wide keywords: 'initial' and 'inherit'" />
+  <link rel="match" href="multicol-rule-color-inherit-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that, by default, -moz--moz-column-rule-color is the current color applying to the element unless reserved keyword 'inherit' is used in which case -moz--moz-column-rule-color will be inherited from the parent's -moz--moz-column-rule-color value." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#parent
+  {
+  -moz--moz-column-rule-color: green;
+  -moz--moz-column-rule-style: none;
+  font: 1.25em/1 Ahem;
+  width: 17em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (17em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (17em - (2 * 1em)) / 3);
+  W == max(0, (17em - 2em) / 3);
+  W == max(0, 15em / 3);
+  W == max(0, 5em);
+  W == 5em;
+
+  The height of column rule depends on number of line boxes in
+  each outer column box which depends on number of line boxes
+  in each inner column box.
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (5em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (5em - (2 * 1em)) / 3);
+  W == max(0, (5em - 2em) / 3);
+  W == max(0, 3em / 3);
+  W == max(0, 1em);
+  W == 1em;
+
+  */
+
+  div
+  {
+  color: red; /* both div#parent and div.child have and use 'color: red' */
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-width: 1em;
+  }
+
+  div.child
+  {
+  -moz--moz-column-rule-color: inherit;
+  -moz--moz-column-rule-style: solid;
+  font-size: 1em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there are 6 vertical green stripes and <strong>no red</strong>.</p>
+
+  <div id="parent">
+	<div class="child">
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+	</div>
+	<div class="child">
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+	</div>
+	<div class="child">
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+		&nbsp;
+	</div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-color-inherit-002.xht
@@ -0,0 +1,126 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz--moz-column-rule-color: inherit (complex)</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-03 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crc" title="4.2. '-moz--moz-column-rule-color'" />
+  <link rel="help" href="http://www.w3.org/TR/css3-values/#common-keywords" title="3.1.1. CSS-wide keywords: 'initial' and 'inherit'" />
+  <link rel="match" href="multicol-rule-color-inherit-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that, by default, -moz--moz-column-rule-color is the current color applying to the element." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#parent
+  {
+  color: green;
+  font: 1.25em/1 Ahem;
+  }
+
+  div.child
+  {
+  color: red;
+  display: inline-block;
+  font-size: 1em;
+  width: 5em;
+
+  -moz-column-count: 3;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: inherit;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1em;
+  }
+
+  /*
+
+  N == 3;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (5em - ((3 - 1) * 1em)) / 3);
+  W == max(0, (5em - (2 * 1em)) / 3);
+  W == max(0, (5em - 2em) / 3);
+  W == max(0, 3em / 3);
+  W == max(0, 1em);
+  W == 1em;
+
+  */
+
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there are 6 vertical green stripes and <strong>no red</strong>.</p>
+
+  <div id="parent">
+	<div class="child">
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	</div>
+
+	<div class="child">
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	</div>
+
+	<div class="child">
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	&nbsp;
+	</div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dashed-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime dashed 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dashed-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'dashed' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-dashed-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime dashed 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime dashed 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dotted-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime dotted 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with green dots in their center are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-dotted-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'dotted' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-dotted-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime dotted 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime dotted 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with green dots in their center are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-double-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime double 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-double-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'double' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-double-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime double 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime double 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-001-ref.xht
@@ -0,0 +1,28 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 14em;
+  }
+
+  img {vertical-align: top;}
+
+  img.yellow {padding-left: 2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img class="yellow" src="support/swatch-yellow.png" width="16" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="18" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="1" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="16" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="18" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="1" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="16" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png"
+width="18" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="1" height="40" alt="Image download support must be enabled" /><img class="yellow" src="support/swatch-yellow.png" width="15" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-001.xht
@@ -0,0 +1,60 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz--moz-column-rule-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="match" href="multicol-rule-fraction-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 14em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 0.9em;
+  }
+
+  /*
+
+  N == 4;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (14em - ((4 - 1) * 1em)) / 4);
+  W == max(0, (14em - (3 * 1em)) / 4);
+  W == max(0, (14em - (3em)) / 4);
+  W == max(0, (11em) / 4);
+  W == max(0, 2.75em);
+  W == 2.75em;
+
+  */
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+  1s cl
+  2n cl
+  3r cl
+  4t cl
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-002-ref.xht
@@ -0,0 +1,24 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  width: 14em;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="6" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="29" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="6" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="29" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="6" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="29" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="15" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-002.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: wide -moz--moz-column-rule-width painted above background-color</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="match" href="multicol-rule-fraction-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that if a column rule is wider than its gap, then the column rule will overlap adjacent column boxes above the background of the multi-column element but below the inline content inside the multicol element. In this test, the blue -moz-column-rule is painted above the yellow background-color but below (under) the black Ahem glyphs." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 14em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 1.9em;
+  }
+
+  /*
+
+  N == 4;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (14em - ((4 - 1) * 1em)) / 4);
+  W == max(0, (14em - (3 * 1em)) / 4);
+  W == max(0, (14em - (3em)) / 4);
+  W == max(0, (11em) / 4);
+  W == max(0, 2.75em);
+  W == 2.75em;
+
+  */
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+  1s cl
+  2n cl
+  3r cl
+  4t cl
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-003.xht
@@ -0,0 +1,69 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-rule-fraction-3-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 14em;
+	position: relative;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 1em;
+}
+span {
+	background: blue;
+	position: absolute;
+	top: 0;
+	left: 2.4em;
+	height: 2em;
+	width: 1em;
+}
+span+span {
+	left: 6.15em;
+}
+span+span+span {
+	left: 9.9em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+<span>
+</span>
+	xx xx
+<span>
+</span>
+	xx xx
+<span>
+</span>
+	xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-fraction-3-ref.xht
@@ -0,0 +1,57 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 14em;
+	height: 2em;
+	position: relative;
+}
+div div {
+	width: 2em;
+	height: 2em;
+	background: black;
+	position: absolute;
+	left: 0;
+	top: 0;
+}
+.a {
+	background: blue;
+	width: 1em;
+}
+#a1 {left: 2.43em;}
+#a2 {left: 3.75em;}
+#a3 {left: 6.13em;}
+#a4 {left: 7.5em;}
+#a5 {left: 9.9em;}
+#a6 {left: 11.25em;}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div></div>
+	<div id="a1" class="a"></div>
+	<div id="a2"></div>
+	<div id="a3" class="a"></div>
+	<div id="a4"></div>
+	<div id="a5" class="a"></div>
+	<div id="a6"></div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-groove-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime groove 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-groove-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'groove' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-groove-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime groove 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime groove 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-hidden-000-ref.xht
@@ -0,0 +1,34 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  font: 3.125em/1 serif;
+  height: 1em;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes are <strong>identical</strong>.</p>
+
+  <div></div>
+
+  <div></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-hidden-000.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'hidden' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-hidden-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: red hidden 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">A</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-inset-000.xht
@@ -0,0 +1,57 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'inset' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-ridge-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="'border-style' values of -moz-column-rule are interpreted as in the collapsing border model in which case 'inset' value is drawn the same as 'ridge'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime inset 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime ridge 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-large-001-ref.xht
@@ -0,0 +1,29 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-03 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 serif;
+  margin-left: 0em;
+  }
+
+  div:first-child, div + div + div {margin-left: 1em;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/swatch-gray.png" width="340" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="120" height="40" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="340" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-large-001.xht
@@ -0,0 +1,73 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: excessively wide -moz--moz-column-rule-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-03 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2013Sep/0006.html" title="[css3-multicol] z-order of -moz-column-rule: below or above border?" />
+  <link rel="match" href="multicol-rule-large-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that if a column rule is wider than its gap, then the column rule will overlap adjacent column boxes; its painting will be above background of multi-column element but below the inline content inside the multicol element." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 Ahem;
+  margin-left: 1em;
+  }
+
+  div
+  {
+  background-color: red;
+  border: gray solid 1em;
+  color: lime;
+  font-size: 1em;
+  orphans: 1;
+  widows: 1;
+  width: 15em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: blue;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 17em;
+  }
+
+  /*
+
+  N == 4;
+
+  W == max(0, (available-width - ((N - 1) * -moz-column-gap)) / N);
+  W == max(0, (15em - ((4 - 1) * 1em)) / 4);
+  W == max(0, (15em - (3 * 1em)) / 4);
+  W == max(0, (15em - (3em)) / 4);
+  W == max(0, (12em) / 4);
+  W == max(0, 3em);
+  W == 3em;
+
+  */
+
+  /*
+  Since column rules do not take up space, then the test
+  should not generate an horizontal scrollbar.
+  */
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+  1s cl
+  2n cl
+  3r cl
+  4t cl
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-none-000.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'none' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-hidden-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: red none 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">A</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-outset-000.xht
@@ -0,0 +1,57 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'outset' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-groove-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="'border-style' values of -moz-column-rule are interpreted as in the collapsing border model in which case 'outset' value is drawn the same as 'groove'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime outset 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime groove 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-percent-001.xht
@@ -0,0 +1,39 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz--moz-column-rule-width and percentage unit (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="match" href="multicol-containing-002-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that the -moz--moz-column-rule-width property does not accept percentage unit in its values." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  color: green;
+  font: 1.25em/1 Ahem;
+  width: 19em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+  -moz--moz-column-rule-color: red;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 0;
+  -moz--moz-column-rule-width: 200%;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 4444 1&nbsp;&nbsp; 1&nbsp;&nbsp; 1&nbsp;&nbsp; 4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 4444 1&nbsp;&nbsp; 1&nbsp;&nbsp; 4444 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 4444 4444 1&nbsp;&nbsp; 1&nbsp;&nbsp; 4444 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 4444</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-px-001.xht
@@ -0,0 +1,65 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-rule-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 15em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 1em;
+	-moz--moz-column-rule-color: blue;
+	-moz--moz-column-rule-width: 16px;
+	-moz--moz-column-rule-style: solid;
+}
+span {
+	background: blue;
+	position: absolute;
+	top: 0;
+	left: 3em;
+	height: 2em;
+	width: 16px;
+}
+span+span {
+	left: 7em;
+}
+span+span+span {
+	left: 11em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div id="one">
+	xx xx
+	xx xx
+	xx xx
+	xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ref.xht
@@ -0,0 +1,51 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 15em;
+	height: 2em;
+}
+div div {
+	width: 2em;
+	height: 2em;
+	float: left;
+}
+.a {
+	color: blue;
+	width: 1em;
+	margin-left: 1em;
+}
+div+div+div {
+	left: 11em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>xx xx</div>
+	<div class="a">x x</div>
+	<div>xx xx</div>
+	<div class="a">x x</div>
+	<div>xx xx</div>
+	<div class="a">x x</div>
+	<div>xx xx</div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ridge-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime ridge 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-ridge-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'ridge' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-ridge-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime ridge 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime ridge 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-samelength-001-ref.xht
@@ -0,0 +1,34 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div
+  {
+  background-color: green;
+  height: 100px;
+  width: 100px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-samelength-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz--moz-column-rule-width' has same lenght as '-moz-column-gap'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="match" href="multicol-rule-samelength-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div#red-overlapped-reference
+  {
+  background-color: red;
+  height: 100px;
+  width: 100px;
+  }
+
+  div#test-overlapping-green
+  {
+  bottom: 100px;
+  color: transparent;
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz--moz-column-rule-color: green;
+  -moz--moz-column-rule-style: solid;
+  -moz--moz-column-rule-width: 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="red-overlapped-reference"></div>
+
+  <div id="test-overlapping-green">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-shorthand-001.xht
@@ -0,0 +1,87 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-rule' shorthand</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. '-moz--moz-column-rule-width'" />
+  <link rel="match" href="multicol-rule-samelength-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div#red-overlapped-reference
+  {
+  background-color: red;
+  height: 100px;
+  width: 100px;
+  }
+
+  div#test-overlapping-green
+  {
+  bottom: 100px;
+  color: transparent;
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz-column-rule: green solid 5em;
+  -moz-column-rule: normal red 5em;
+  -moz-column-rule: normal 5em red;
+  -moz-column-rule: red normal 5em;
+  -moz-column-rule: red 5em normal;
+  -moz-column-rule: 5em normal red;
+  -moz-column-rule: 5em red normal;
+  -moz-column-rule: red 5em red solid;
+  -moz-column-rule: red 5em solid red;
+  -moz-column-rule: red solid 5em red;
+  -moz-column-rule: red solid red 5em;
+  -moz-column-rule: 5em red solid red;
+  -moz-column-rule: solid red 5em red;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="red-overlapped-reference"></div>
+
+  <div id="test-overlapping-green">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-solid-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  span {border-left: lime solid 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div>1234<span>5678</span></div>
+
+  <div>1234<span>5678</span></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-solid-000.xht
@@ -0,0 +1,56 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-rule shorthand with 'solid' border style</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-rule-solid-000-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  color: black;
+  font: 3.125em/1 Ahem;
+  margin-bottom: 0.2em;
+  width: 8.2em;
+  }
+
+  div#test
+  {
+  -moz-columns: 2;
+  -moz-column-gap: 0.2em;
+  -moz-column-rule: lime solid 0.2em;
+
+  /*
+
+  N == 2;
+
+  W == 200px;
+
+  */
+
+  orphans: 1;
+  widows: 1;
+  }
+
+  span {border-left: lime solid 0.2em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 black stripes with vertical green bars are <strong>identical</strong>.</p>
+
+  <div id="test">1 <br />2 </div>
+
+  <div id="reference">1234<span>5678</span></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-stacking-001.xht
@@ -0,0 +1,54 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-count, stacking</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-gaps-and-rules"/>
+<link rel="match" href="multicol-rule-stacking-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: blue;
+	background: red;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 14em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 1em;
+	-moz-column-rule: 28em solid blue;
+}
+span {
+	color: black;
+	position: relative;
+	z-index: 1;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+	xx xx
+	<span>xx xx</span>
+	xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-stacking-ref.xht
@@ -0,0 +1,53 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-rule</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: blue;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 14em;
+	height: 2em;
+	position: relative;
+}
+span {
+	margin-left: 7.5em;
+	width: 2em;
+	height: 2em;
+	display: inline-block;
+}
+div div {
+	background: blue;
+	position: absolute;
+	height: 2em;
+	width: 2em;
+	top: 0;
+	left: -2em;
+}
+div div+div {
+	left: 13em;
+	width: 11.75em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<span>xx xx</span>
+	<div></div>
+	<div></div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-groove-001-ref.xht
@@ -0,0 +1,50 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div
+  {
+  border-collapse: collapse;
+  border-left: orange groove 100px;
+  color: transparent;
+  display: table;
+  font: 6.25em/1 Ahem;
+  }
+
+  div + div
+  {
+  position: relative;
+  top: 10px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div>T</div>
+
+  <div>T</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-groove-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz--moz-column-rule-style' groove</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crs" title="4.3. '-moz--moz-column-rule-style'" />
+  <link rel="match" href="multicol-rule-style-groove-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div {color: transparent;}
+
+  div#reference
+  {
+  border-collapse: collapse;
+  border-left: orange groove 100px;
+  font: 6.25em/1 Ahem;
+  display: table;
+  }
+
+  div#test
+  {
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  top: 0.5em;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz-column-rule: orange groove 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div id="reference">T</div>
+
+  <div id="test">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-inset-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz--moz-column-rule-style' inset</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crs" title="4.3. '-moz--moz-column-rule-style'" />
+  <link rel="match" href="multicol-rule-style-ridge-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div {color: transparent;}
+
+  div#reference
+  {
+  border-collapse: collapse;
+  border-left: orange inset 100px;
+  font: 6.25em/1 Ahem;
+  display: table;
+  }
+
+  div#test
+  {
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  top: 0.5em;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz-column-rule: orange inset 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div id="reference">T</div>
+
+  <div id="test">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-outset-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz--moz-column-rule-style' outset</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crs" title="4.3. '-moz--moz-column-rule-style'" />
+  <link rel="match" href="multicol-rule-style-groove-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div {color: transparent;}
+
+  div#reference
+  {
+  border-collapse: collapse;
+  border-left: orange outset 100px;
+  font: 6.25em/1 Ahem;
+  display: table;
+  }
+
+  div#test
+  {
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  top: 0.5em;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz-column-rule: orange outset 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div id="reference">T</div>
+
+  <div id="test">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-ridge-001-ref.xht
@@ -0,0 +1,50 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div
+  {
+  border-collapse: collapse;
+  border-left: orange ridge 100px;
+  color: transparent;
+  display: table;
+  font: 6.25em/1 Ahem;
+  }
+
+  div + div
+  {
+  position: relative;
+  top: 10px;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div>T</div>
+
+  <div>T</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-rule-style-ridge-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz--moz-column-rule-style' ridge</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-15 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crs" title="4.3. '-moz--moz-column-rule-style'" />
+  <link rel="match" href="multicol-rule-style-ridge-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body {margin: 8px;}
+
+  p
+  {
+  line-height: 1.25em;
+  margin: 1em 0em;
+  }
+
+  strong {line-height: 1;}
+
+  div {color: transparent;}
+
+  div#reference
+  {
+  border-collapse: collapse;
+  border-left: orange ridge 100px;
+  font: 6.25em/1 Ahem;
+  display: table;
+  }
+
+  div#test
+  {
+  font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
+  position: relative;
+  right: 40px;
+  top: 0.5em;
+  width: 9em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 5em;
+  -moz-column-rule: orange ridge 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <p>Test passes if the 2 orange squares are <strong>identical</strong>.</p>
+
+  <div id="reference">T</div>
+
+  <div id="test">Le ft Co lu mn Ri gh Co lu mn</div>
+
+  <!--
+
+  Expected results
+    -moz-column-gap
+    -moz-column-rule
+     v=====v
+  *************
+  |Le|     |Ri|
+  |ft|     |gh|
+  |Co|     |Co|
+  |lu|     |lu|
+  |mn|     |mn|
+  *************
+
+  -->
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-shorthand-001.xht
@@ -0,0 +1,65 @@
+<!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">
+<head>
+<title>multicolumn | invalid</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="match" href="multicol-rule-ref.xht"/>
+<meta name="flags" content="ahem invalid"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 15em;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 1em;
+	-moz-column-rule: solid blue 1em;
+	column: normal red 1em;
+	-moz-columns: normal red 1em;
+}
+span {
+	background: blue;
+	position: absolute;
+	top: 0;
+	left: 3em;
+	height: 2em;
+	width: 1em;
+}
+span+span {
+	left: 7em;
+}
+span+span+span {
+	left: 11em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx
+	xx xx
+	xx xx
+	xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-000-ref.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  font-size: 1.25em;
+  line-height: 1;
+  margin-bottom: 0.5em;
+  width: 10em;
+  }
+
+  img
+  {
+  padding-right: 4em;
+  vertical-align: top;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 3 rectangles are <strong>identical</strong>.</p>
+
+  <div><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="120" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="120" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="120" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-000.xht
@@ -0,0 +1,70 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-span (basic)</title>
+  <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-27 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-rule" title="4.5 '-moz-column-rule'" />
+  <link rel="match" href="multicol-span-000-ref.xht" />
+  <meta name="flags" content="ahem image" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  color: lime;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 10em;
+  }
+
+  div#test, div.test2
+  {
+  -moz-columns: 2;
+  -moz-column-fill: balance;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 2;
+
+  W == 5em;
+
+  */
+  }
+
+  div#test, div#reference {margin-bottom: 0.5em;}
+
+  div#-moz-column-span
+  {
+  -moz-column-span: all;
+  font: inherit;
+  }
+
+  img
+  {
+  padding-right: 4em;
+  vertical-align: top;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <p>Test passes if the 3 rectangles are <strong>identical</strong>.</p>
+
+  <div id="test">A<br />B<div id="-moz-column-span">123456</div>C<br />D</div>
+
+  <div id="reference"><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="120" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div class="test2">A<br />B</div>
+  <div>123456</div>
+  <div class="test2">C<br />D</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-001-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div#inline-block
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  display: inline-block;
+  font-size: 1.25em;
+  }
+
+  div + div {line-height: 1;}
+
+  img {vertical-align: top;}
+
+  img.padding-left {padding-left: 1em;}
+
+  img.padding-left-right {padding: 0em 1em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="inline-block">
+
+    <div><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img class="padding-left" src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /><img class="padding-left-right" src="support/swatch-pink.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="40" alt="Image download support must be enabled" /></div>
+
+    <div><img src="support/black20x20.png" width="220" height="20" alt="Image download support must be enabled" /></div>
+
+    <div><img src="support/swatch-navy.png" width="40" height="40" alt="Image download support must be enabled" /><img class="padding-left" src="support/swatch-navy.png" width="40" height="40" alt="Image download support must be enabled" /><img class="padding-left-right" src="support/swatch-navy.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="40" height="40" alt="Image download support must be enabled" /></div>
+
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-001.xht
@@ -0,0 +1,67 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span' element (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 1em;
+
+  /*
+
+  N == 4;
+
+  W == 2em;
+
+  */
+
+  }
+
+  span {color: blue;}
+
+  span + span {color: pink;}
+
+  h4
+  {
+  background-color: black;
+  color: black;
+  font: inherit;
+  margin: 0;
+
+  -moz-column-span: all;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span id="top-first-and-second--moz-columns"> bl ue bl ue </span>
+    <span id="top-third-and-fourth--moz-columns"> Pi nk Pi nk </span>
+    <h4> sPana </h4>
+    ab cd ef gh
+    ij kl mn oq
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-002-ref.xht
@@ -0,0 +1,35 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div#inline-block
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  display: inline-block;
+  font-size: 1.25em;
+  }
+
+  div + div {line-height: 1;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="inline-block">
+
+    <div><img src="support/swatch-blue.png" width="80" height="40" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="40" alt="Image download support must be enabled" /></div>
+
+    <div><img src="support/swatch-yellow.png" width="160" height="60" alt="Image download support must be enabled" /></div>
+
+    <div><img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" /></div>
+
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-002.xht
@@ -0,0 +1,75 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span' element - large margin-left and 'overflow: hidden'</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  overflow: hidden;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2em;
+
+  */
+
+  }
+
+  span {color: blue;}
+
+  span + span {color: pink;}
+
+  h4
+  {
+  background-color: black;
+  color: black;
+  font: inherit;
+  margin: 1em 0 1em 8em;
+
+  -moz-column-span: all;
+  /*
+  Since there is not sufficient space for the
+  spanning element, UA may treat the element as
+  '-moz-column-span: none'; in which case,
+  'overflow: hidden' will take care of
+  overflowed content out of multi-column box.
+  */
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span id="top-first-and-second--moz-columns"> bl ue bl ue </span>
+    <span id="top-third-and-fourth--moz-columns"> Pi nk Pi nk </span>
+    <h4> sPana </h4>
+    ab cd ef gh
+    ij kl mn oq
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-003.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' (basic)</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-03 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-count-002-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-span: all' spans across all column boxes and that content in the normal flow (in this test, the '55555 55555 55555 55555') that appears before the element is automatically balanced across all -moz-columns before the element appears." />
+
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  html {background-color: white;}
+
+  body
+  {
+  background-color: black;
+  font: 1.25em/1 Ahem;
+  padding-right: 1em;
+  width: 20em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  }
+
+  h4
+  {
+  background-color: black;
+  -moz-column-span: all;
+  color: yellow;
+  font: 1em/1 Ahem;
+  margin: 0em;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  55555 55555 55555 55555
+    <h4>&nbsp;4444 4444 4444 4444</h4>
+  1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; 1 333 1 333 1 333 55555 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1 22&nbsp; 55555 1 333 1 333 1&nbsp;&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp;&nbsp; 55555 1 333 1 333 1&nbsp;&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp;&nbsp; 55555
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-block-sibling-003.xht
@@ -0,0 +1,47 @@
+<!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">
+<head>
+<title>multicol | -moz-column-span: all | block-level child</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#spanning--moz-columns"/>
+<link rel="match" href="multicol-span-all-block-sibling-3-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1;
+	color: black;
+	background: black;
+
+	-moz-column-count: 2;
+}
+h1 {
+	-moz-column-span: all;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		<h1>foo</h1>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-block-sibling-3-ref.xht
@@ -0,0 +1,34 @@
+<!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">
+<head>
+<title>multicol | -moz-column-span: all | block-level child</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1;
+	color: black;
+	background: black;
+}
+h1 {
+	margin-top: 0;
+	padding-top: 0.66em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		<h1>FAIL</h1>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+		FAIL<br/>
+	</div>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-001-ref.xht
@@ -0,0 +1,109 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#rel-pos-wrapper
+  {
+  background-color: blue;
+  font-size: 1.25em;
+  height: 10em;
+  position: relative;
+  width: 12em;
+  }
+
+  div > div {position: absolute;}
+
+  div#first-black
+  {
+  background-color: black;
+  left: 7em;
+  height: 1em;
+  top: 0em;
+  width: 5em;
+  }
+
+  div#first-yellow
+  {
+  background-color: yellow;
+  left: 7em;
+  height: 3em;
+  top: 1em;
+  width: 1em;
+  }
+
+  div#first-white
+  {
+  background-color: white;
+  left: 10em;
+  height: 9em;
+  top: 1em;
+  width: 2em;
+  }
+
+  div#second-black
+  {
+  background-color: black;
+  left: 2em;
+  height: 1em;
+  top: 2em;
+  width: 3em;
+  }
+
+  div#second-yellow
+  {
+  background-color: yellow;
+  left: 2em;
+  height: 3em;
+  top: 3em;
+  width: 1em;
+  }
+
+  div#third-black
+  {
+  background-color: black;
+  left: 2em;
+  height: 1em;
+  top: 6em;
+  width: 3em;
+  }
+
+  div#third-yellow
+  {
+  background-color: yellow;
+  left: 2em;
+  height: 3em;
+  top: 7em;
+  width: 1em;
+  }
+
+  div#second-white
+  {
+  background-color: white;
+  left: 5em;
+  height: 4em;
+  top: 6em;
+  width: 7em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="rel-pos-wrapper">
+
+    <div id="first-black"></div>
+    <div id="first-yellow"></div>
+    <div id="first-white"></div>
+    <div id="second-black"></div>
+    <div id="second-yellow"></div>
+    <div id="third-black"></div>
+    <div id="third-yellow"></div>
+    <div id="second-white"></div>
+
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-001.xht
@@ -0,0 +1,59 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' element with block children (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="bookmark" title="[css3-multicol] spanning element with only block children" href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0318.html" />
+  <link rel="match" href="multicol-span-all-child-001-ref.xht" />
+  <meta name="flags" content="ahem may" />
+  <meta name="assert" content="This test checks how a spanning element with block children is rendered inside a multi-column element with a set height which is insufficient for rendering the entire spanning element. Since the available height (10em)is insufficient to render the spanning element (height needed: 3 times 4em) entirely inside the multi-column element, then UA may treat '-moz-column-span: all' as '-moz-column-span: none'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  color: black;
+  font: 1.25em/1 Ahem;
+  height: 10em;
+  orphans: 1;
+  widows: 1;
+  width: 10em;
+
+  -moz-column-count: 2;
+  -moz-column-fill: auto;
+  -moz-column-gap: 0em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  border: blue solid 2em;
+
+  -moz-column-span: all;
+  }
+
+  span
+  {
+  display: block;
+  height: 4em;
+  width: 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span>block</span>
+    <span>block</span>
+    <span>block</span>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-002-ref.xht
@@ -0,0 +1,32 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#multi-column
+  {
+  background-color: black;
+  height: 8em;
+  width: 10em;
+  }
+
+  div#overflow
+  {
+  bottom: 8em;
+  font: 1em/1 serif;
+  margin-left: 10em;
+  position: relative;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="multi-column"></div>
+
+  <div id="overflow">abc deg<br />ghk mno</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-child-002.xht
@@ -0,0 +1,86 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' element with block children (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="bookmark" title="[css3-multicol] spanning element with only block children" href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0318.html" />
+  <link rel="match" href="multicol-span-all-child-002-ref.xht" />
+  <meta name="flags" content="may" />
+  <meta name="assert" content="This test checks how spanning elements with block children is rendered inside a multi-column element with a set height which is insufficient for rendering both spanning elements entirely. Since available space (height of 8em) is insufficient to render both spanning elements (4 times 4em plus 2em) entirely inside the multi-column element, then UA may treat '-moz-column-span: all' as '-moz-column-span: none'." />
+  <style type="text/css"><![CDATA[
+  html {background-color: white;}
+
+  body
+  {
+  background-color: black;
+  height: 8em;
+  orphans: 1;
+  widows: 1;
+  width: 10em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 2;
+
+  W == 5em;
+
+  */
+
+  }
+
+  div, p
+  {
+  font: 1em/1 serif;
+  margin-top: 0em;
+
+  -moz-column-span: all;
+  }
+
+  span
+  {
+  color: black;
+  display: block;
+  height: 4em;
+  width: 5em;
+  }
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span>FAIL</span>
+    <span>FAIL</span>
+    <span>FAIL</span>
+    <span>FAIL</span>
+  </div>
+
+  <p>abc deg ghk mno</p>
+
+  <!--
+
+  Expected results:
+
+  ************************
+  |FAIL       |FAIL      |abc deg
+  |           |          |ghk mno
+  |           |          |
+  |           |          |
+  |FAIL       |FAIL      |
+  |           |          |
+  |           |          |
+  |           |          |
+  ************************
+
+  The test presumes, postulates that
+  "abc deg" occupies not more than 5em.
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-001-ref.xht
@@ -0,0 +1,23 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-18 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1.25em;
+  width: 160px;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/swatch-blue.png" width="80" height="40" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="40" alt="Image download support must be enabled" /> <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" /> <img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" /> <img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-001.xht
@@ -0,0 +1,77 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' element and width exceeding available multi-colum width (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-18 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-margin-001-ref.xht" />
+  <meta name="flags" content="ahem may" />
+  <meta name="assert" content="This test checks that when 'overflow' is set to 'hidden' on a multi-column element, then any spanning ('-moz-column-span: all') element exceeding the available width of the multi-column should be clipped accordingly." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  overflow: hidden;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2;
+
+  */
+  }
+
+  h4
+  {
+  background: black;
+  color: black;
+  font: inherit;
+  margin: 1em 0;
+  width: 11em;
+
+  -moz-column-span: all;
+
+  /*
+  This is the target of the test: the spanning element's
+  width (11em) exceeds the available width of the
+  multi-column element. The 3em exceeding such
+  width is first clipped at column box boundary.
+  */
+  }
+
+  span {color: blue;}
+
+  span + span {color: pink;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span> bl ue bl ue </span>
+    <span> Pi nk Pi nk </span>
+    <h4> black </h4>
+    <h4> black </h4>
+    na vy na vy
+    na vy na vy
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-002-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div {width: 240px;}
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <img src="support/swatch-gray.png" width="200" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="100" height="20" alt="Image download support must be enabled" />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20"
+alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="40" alt="Image download support must be enabled" /><br />
+
+  <img src="support/swatch-gray.png" width="200" height="20" alt="Image download support must be enabled" />
+
+</div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-002.xht
@@ -0,0 +1,81 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-margin-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2;
+
+  */
+  }
+
+  h4
+  {
+  font: inherit;
+  margin: 1em 0;
+  }
+
+  h4#orange
+  {
+  background: orange;
+  color: orange;
+  /*
+  In this test, the glyphs "or" are painted into 4th column box
+  and the glyphs "ang" are painted in the overflow area.
+  */
+  }
+
+  h4#black
+  {
+  background: black;
+  color: black;
+
+  -moz-column-span: all;
+  }
+
+  span {color: blue;}
+
+  span + span {color: pink;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    <span> bl ue bl ue </span>
+    <span> Pi nk Pi nk </span>
+    <h4 id="orange"> orang </h4>
+    <h4 id="black"> black </h4>
+    na vy na vy
+    na vy na vy
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-bottom-001-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1.25em;
+  width: 160px;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-orange.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" />
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-bottom-001.xht
@@ -0,0 +1,84 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: '-moz-column-span: all' element with vertical margins and width exceeding available multi-colum width (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-margin-bottom-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2em;
+
+  */
+  }
+
+  h4
+  {
+  font: inherit;
+  margin: 1em 0;
+  }
+
+  h4#black
+  {
+  background: black;
+  color: black;
+
+  -moz-column-span: all;
+  }
+
+  h4#orange
+  {
+  background: orange;
+  color: orange;
+  /*
+  In this test, the glyphs "or" are painted into 1st column box.
+  "Content in the normal flow that extends into column
+  gaps (e.g., long words or images) is clipped in the
+  middle of the column gap."
+  Therefore, the glyphs "ang" are clipped and not painted.
+  */
+  }
+
+  span {color: blue;}
+
+  span + span {color: pink;}
+  ]]></style>
+ </head>
+
+ <body>
+
+  <div>
+    na vy na vy
+    na vy na vy
+    <h4 id="black"> black </h4>
+    <h4 id="orange"> orang </h4>
+    <span> bl ue bl ue </span>
+    <span> Pi nk Pi nk </span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-001-ref.xht
@@ -0,0 +1,31 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1.25em;
+  width: 160px;
+  }
+
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+    <img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="160" height="40" alt="Image download support must be enabled" />
+    <img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
+    <img src="support/swatch-navy.png" width="160" height="40" alt="Image download support must be enabled" />
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-001.xht
@@ -0,0 +1,75 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: vertically adjacent spanning elements with nested margins (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-margin-nested-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="In this test, the first h4 element would collapse its margin bottom with the top margin of div#child if only div#child was also a spanning element, which is not: the bottom margin of the first h4 element is 8em wide while the top margin of div#child is only 2em wide (1 column box wide). That is why the bottom margin of the first h4 element should not collapse with the top margin of div#child." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#multi-column
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  overflow: hidden;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2em;
+
+  */
+  }
+
+  h4, div#child
+  {
+  background-color: black;
+  color: black;
+  font: inherit;
+  margin: 0;
+  }
+
+  h4
+  {
+  margin: 1em 0;
+  width: 11em;
+
+  -moz-column-span: all;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="multi-column">
+    na vy na vy
+    na vy na vy
+
+    <h4 id="first">black</h4>
+
+    <div id="child">
+      <h4 id="nested">black</h4>
+    </div>
+
+    na vy na vy
+    na vy na vy
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-002.xht
@@ -0,0 +1,76 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: vertically adjacent spanning elements with nested margins (complex)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-19 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-all-margin-nested-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="In this test, the first h4 element would collapse its margin bottom with the resulting (from a margin collapsing with its nested h4 element) of top margin of div#child if only div#child was also a spanning element, which is not: the bottom margin of the first h4 element is 8em wide while the top margin of div#child is only 2em wide (1 column box wide). That is why the bottom margin of the first h4 element should not collapse with the top margin of div#child." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#multi-column
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  overflow: hidden;
+  widows: 1;
+  width: 8em;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0em;
+
+  /*
+
+  N == 4;
+
+  W == 2em;
+
+  */
+  }
+
+  h4, div#child
+  {
+  background-color: black;
+  color: black;
+  font: inherit;
+  margin: 1em 0;
+  }
+
+  div#child {margin: 1em 0 0;}
+
+  h4
+  {
+  width: 11em;
+
+  -moz-column-span: all;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="multi-column">
+    na vy na vy
+    na vy na vy
+
+    <h4 id="first">black</h4>
+
+    <div id="child">
+      <h4 id="nested">black</h4>
+    </div>
+
+    na vy na vy
+    na vy na vy
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-003.xht
@@ -0,0 +1,45 @@
+<!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">
+<head>
+<title>multicolomn | -moz-column-span inside block</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#spanning--moz-columns"/>
+<link rel="match" href="multicol-span-all-margin-nested-3-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: black;
+	position: absolute;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-count: 4;
+}
+#spanned {
+	-moz-column-span: all;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div>
+		<div id="spanned">x</div>
+	</div>
+	FAIL FAIL FAIL FAIL
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-3-ref.xht
@@ -0,0 +1,23 @@
+<!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">
+<head>
+<title>multicolomn | -moz-column-span inside block</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body>div {
+	background: black;
+	width: 22em;
+	height: 2em;
+	position: absolute;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-firstchild-001.xht
@@ -0,0 +1,85 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-span</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#spanning--moz-columns"/>
+<link rel="match" href="multicol-span-all-margin-nested-firstchild-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: navy;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 8em;
+	float: left;
+	orphans: 1;
+	widows: 1;
+	overflow: hidden;
+
+	-moz-column-count: 4;
+	-moz-column-gap: 0;
+}
+span, h6 {
+	font-family: ahem;
+	font-size: 1em;
+	font-weight: normal;
+	line-height: 1em;
+	color: black;
+	background: black;
+	padding: 0;
+	margin: 0;
+	display: block;
+}
+h6 {
+	margin: 1em 0;
+	width: 11em;
+	-moz-column-span: all;
+}
+span {
+	color: pink;
+	background: pink;
+	margin: 2em 0;
+}
+h6~h6 {
+	color: black;
+	background: black;
+	height: 1em;
+}
+h6~h6>span {
+	background: pink;
+	color: pink;
+	margin: -2em 0 0;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	xx xx xx xx
+	xx xx xx xx
+
+	<h6><span>xxxxx</span></h6>
+	<h6><span>xxxxx</span></h6>
+
+	xx xx xx xx
+	xx xx xx xx
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-all-margin-nested-firstchild-ref.xht
@@ -0,0 +1,76 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-span</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+}
+body>div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	color: navy;
+	background: yellow;
+	margin: 1em;
+	border: 1em solid gray;
+	width: 8em;
+	height: 13em;
+	position: relative;
+	float: left;
+	overflow: hidden;
+}
+div div {
+	position: absolute;
+	top: 0;
+	left: 0;
+	width: 8em;
+	height: 2em;
+	background: navy;
+}
+#s2 {
+	top: 11em;
+}
+#s3 {
+	background: black;
+	top: 3em;
+}
+#s4 {
+	background: pink;
+	top: 5em;
+	height: 1em;
+}
+#s5 {
+	background: black;
+	top: 6em;
+	height: 1em;
+}
+#s6 {
+	background: pink;
+	top: 7em;
+	height: 1em;
+}
+#s7 {
+	background: black;
+	top: 9em;
+	height: 1em;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+	<div></div>
+	<div id="s2"></div>
+	<div id="s3"></div>
+	<div id="s4"></div>
+	<div id="s5"></div>
+	<div id="s6"></div>
+	<div id="s7"></div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-float-001-ref.xht
@@ -0,0 +1,35 @@
+<!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">
+<head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  font-size: 1.25em;
+  line-height: 1;
+  }
+
+  img {vertical-align: top;}
+
+  img:first-child {padding-left: 5em;}
+
+  img#no-padding {padding-left: 0em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img id="no-padding" src="support/swatch-pink.png" width="220" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="120" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="120" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>
+
+  <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-float-001.xht
@@ -0,0 +1,70 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: floating a -moz-column-spanning element</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#-moz-column-span" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-float-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-span' does not apply to floating element." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: navy;
+  font: 1.25em/1 Ahem;
+  margin-left: 5em;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 1em;
+
+  /*
+
+  N == 2;
+
+  W == 5em;
+
+  */
+  }
+
+  span
+  {
+  display: block;
+  font: inherit;
+  margin: 0;
+  width: 11em;
+
+  -moz-column-span: all;
+  }
+
+  span:first-child
+  {
+  background-color: pink;
+  color: pink;
+  float: right;
+  }
+
+  span + span {color: black;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<span>Pinkk</span>
+	<span>black</span>
+	navyy navyy
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-none-001-ref.xht
@@ -0,0 +1,54 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  font: 1.25em/1 serif;
+  border: 1em solid gray;
+  width: 11em;
+  height: 5em;
+  position: relative;
+  }
+
+  img {position: absolute;}
+
+  img#first-blue {left: 0em; top: 0em;}
+
+  img#second-blue {left: 3em; top: 0em;}
+
+  img#first-pink {left: 6em; top: 0em;}
+
+  img#second-pink {left: 9em; top: 0em;}
+
+  img#black {left: 0em; top: 2em;}
+
+  img#first-yellow {left: 6em; top: 2em;}
+
+  img#second-yellow {left: 9em; top: 2em;}
+
+  img#first-orange {left: 0em; top: 3em;}
+
+  img#second-orange {left: 3em; top: 3em;}
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+	<img id="first-blue" src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /> <img id="second-blue" src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /> <img id="first-pink" src="support/swatch-pink.png" width="40" height="40" alt="Image download support must be enabled" /> <img id="second-pink" src="support/swatch-pink.png" width="40" height="40" alt="Image download support must be enabled" />
+
+	<img id="black" src="support/black20x20.png" width="110" height="20" alt="Image download support must be enabled" />
+
+	<img id="first-yellow" src="support/swatch-yellow.png" width="40" height="40" alt="Image download support must be enabled" />
+	<img id="second-yellow" src="support/swatch-yellow.png" width="40" height="40" alt="Image download support must be enabled" />
+
+	<img id="first-orange" src="support/swatch-orange.png" width="40" height="40" alt="Image download support must be enabled" />
+	<img id="second-orange" src="support/swatch-orange.png" width="40" height="40" alt="Image download support must be enabled" />
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-span-none-001.xht
@@ -0,0 +1,67 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-span: none (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#spanning--moz-columns" title="6.1. '-moz-column-span'" />
+  <link rel="match" href="multicol-span-none-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks how a '-moz-column-span: none' element is rendered: it should not span across all column boxes." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  border: gray solid 1em;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 11em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 1em;
+
+  /*
+
+  N == 2;
+
+  W == 5em;
+
+  */
+  }
+
+  h4
+  {
+  background: black;
+  color: black;
+  font: inherit;
+  margin: 0;
+  width: 11em;
+
+  -moz-column-span: none;
+  }
+
+  #column1-top {color: blue;}
+
+  #column1-bottom {color: orange;}
+
+  #column2-top {color: pink;}
+
+  #column2-bottom {color: yellow;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+    <span id="column1-top"> ab cd ef gh </span>
+    <h4> 1234567890123 </h4>
+    <span id="column1-bottom"> ij kl mn oq </span>
+    <span id="column2-top"> ab cd ef gh </span>
+    <span id="column2-bottom"> rs tu vw xy </span>
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-001-ref.xht
@@ -0,0 +1,12 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <meta name="flags" content="image" />
+ </head>
+ <body>
+  <div><img src="support/black20x20.png" width="120" height="20" alt="Image download support must be enabled" /></div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-001.xht
@@ -0,0 +1,37 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and table-cell (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-table-cell-001-ref.xht"/>
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-count' applies to elements with 'display' set to 'table-cell'." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: red;
+  color: black;
+  display: table-cell;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 6;
+  -moz-column-gap: 0em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>P<br />A<br />S<br />S<br />E<br />D</div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-001-ref.xht
@@ -0,0 +1,23 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  height: 360px;
+  width: 300px;
+  }
+
+  img + img {padding-left: 110px;}
+  ]]></style>
+
+ </head>
+ <body>
+  <div><img src="support/black20x20.png" width="60" height="360" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="60" height="360" alt="Image download support must be enabled" /></div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-001.xht
@@ -0,0 +1,52 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and height of table-cell (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-table-cell-height-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-count' applies to elements with 'display' set to 'table-cell' which can be constrained with a set height." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  color: black;
+  display: table-cell;
+  font: 1.25em/1 Ahem;
+  height: 18em;
+  orphans: 1;
+  widows: 1;
+  width: 15em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 2em;
+
+  /*
+
+  N == 2;
+
+  W == 6.5em;
+
+  */
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-height-002.xht
@@ -0,0 +1,52 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and height of table-cell (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-table-cell-height-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that '-moz-column-count' applies to elements with 'display' set to 'table-cell' which can be constrained with a set height. A set height for a table-cell still remains the minimum height required by the content, even when its layout is influenced by, conditioned by a multi-column layout." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  color: black;
+  display: table-cell;
+  font: 1.25em/1 Ahem;
+  height: 0em;
+  orphans: 1;
+  widows: 1;
+  width: 15em;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 2em;
+
+  /*
+
+  N == 2;
+
+  W == 6.5em;
+
+  */
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  111 222 333 444 555 666 777 888 999
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-vertical-align-001.xht
@@ -0,0 +1,41 @@
+<!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">
+<head>
+<title>multicolumn | table-cell, vertical-align</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model"/>
+<link rel="match" href="multicol-table-cell-vertical-align-ref.xht"/>
+<meta name="flags" content="ahem"/>
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+<style type="text/css"><![CDATA[
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	vertical-align: middle;
+	color: white;
+	background: #3366CC;
+	width: 6em;
+	height: 400px;
+	display: table-cell;
+
+	-moz-column-count: 2;
+	-moz-column-gap: 0;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-table-cell-vertical-align-ref.xht
@@ -0,0 +1,29 @@
+<!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">
+<head>
+<title>multicolumn | table-cell, vertical-align</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+div {
+	font-family: ahem;
+	font-size: 1em;
+	line-height: 1em;
+	vertical-align: middle;
+	color: white;
+	background: #3366CC;
+	width: 6em;
+	height: 8em;
+}
+div+div {
+	margin-top: 10em;
+}
+]]></style>
+</head>
+
+<body>
+<div></div>
+<div></div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-001-ref.xht
@@ -0,0 +1,50 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 Ahem;
+  width: 30em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  orphans: 1;
+  widows: 1;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div>d da&nbsp; d da&nbsp; d da&nbsp; d da&nbsp; d da&nbsp;<br />
+
+  dam&nbsp;&nbsp; dam&nbsp;&nbsp; dam&nbsp;&nbsp; dam&nbsp;&nbsp; dam&nbsp;&nbsp;<br />
+
+  dame&nbsp; dame&nbsp; dame&nbsp; dame&nbsp; dame&nbsp;<br />
+
+  damer damer damer damer damer <br />
+
+  d da&nbsp; d da&nbsp; d da&nbsp; d da&nbsp;<br />
+
+  dam&nbsp;&nbsp; dam&nbsp;&nbsp; dam&nbsp;&nbsp; dam&nbsp;&nbsp;<br />
+
+  dame&nbsp; dame&nbsp; dame&nbsp; dame&nbsp;<br />
+
+  damer damer damer damer
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-001.xht
@@ -0,0 +1,48 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-width (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-width-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 Ahem;
+  width: 30em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-gap: 0;
+  -moz-column-width: 6em;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-002-ref.xht
@@ -0,0 +1,32 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 1em 0 0;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-002.xht
@@ -0,0 +1,42 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-width (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-width-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-gap: 0;
+  -moz-column-width: 6em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac bl ac
+    <span>
+    bl ue bl ue
+    </span>
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-003.xht
@@ -0,0 +1,67 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-width (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-width-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div#multi-column
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  height: 2em;
+  orphans: 1;
+  position: relative;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-width: 6em;
+  -moz-column-gap: 0;
+  }
+
+  div > div
+  {
+  background-color: black;
+  height: 2em;
+  position: absolute;
+  top: 0;
+  width: 2em;
+  }
+
+  div#s2 {left: 3em;}
+
+  div#s3
+  {
+  background-color: blue;
+  left: 6em;
+  }
+
+  div#s4
+  {
+  background-color: blue;
+  left: 9em;
+  }
+  ]]></style>
+ </head>
+ <body>
+
+  <div id="multi-column">
+    <div></div>
+    <div id="s2"></div>
+    <div id="s3"></div>
+    <div id="s4"></div>
+  </div>
+
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-count-001.xht
@@ -0,0 +1,49 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and -moz-column-width (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns" title="3. The number and width of -moz-columns" />
+  <link rel="match" href="multicol-width-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  body
+  {
+  font: 1.25em/1 Ahem;
+  width: 30em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+  orphans: 1;
+  widows: 1;
+
+  -moz-column-count: 5;
+  -moz-column-gap: 0;
+  -moz-column-width: 6em;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+	d da dam dame damer
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-count-002.xht
@@ -0,0 +1,42 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: -moz-column-count and -moz-column-width (basic)</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cc" title="3.2 '-moz-column-count'" />
+  <link rel="match" href="multicol-count-002-ref.xht" />
+  <meta name="flags" content="ahem" />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  html {background-color: white;}
+
+  body
+  {
+  background-color: black;
+  font: 1.25em/1 Ahem;
+  padding-right: 1em;
+  width: 20em;
+  }
+
+  div
+  {
+  background-color: yellow;
+  color: black;
+
+  -moz-column-count: 4;
+  -moz-column-gap: 0;
+  -moz-column-width: 5em;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1 333 55555 55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1 22&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-ems-001.xht
@@ -0,0 +1,42 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-width</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of--moz-columns"/>
+<link rel="match" href="multicol-width-ems-ref.xht"/>
+<meta name="flags" content=""/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+	width: 40em;
+}
+div {
+	font-family: monospace;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	orphans: 1;
+	widows: 1;
+
+	-moz-column-width: 8em;
+	-moz-column-gap: 0;
+}
+]]></style>
+</head>
+
+<body>
+<div>
+	one two three four
+	five six seven eight
+	nineten eleven twelve
+	thirtn fourtnfiftn sixtn
+	seventn eightn ninetn twenty
+	hundred thousand million billion
+	trillion
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-ems-ref.xht
@@ -0,0 +1,59 @@
+<!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">
+<head>
+<title>multicolumn | -moz-column-width</title>
+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
+<style type="text/css"><![CDATA[
+body {
+	margin: 0;
+	width: 40em;
+}
+div {
+	font-family: monospace;
+	font-size: 1em;
+	line-height: 1em;
+	color: black;
+	background: yellow;
+	orphans: 1;
+	widows: 1;
+}
+span {
+	float: left;
+	width: 8em;
+}
+div::after {
+	content: "";
+	clear: both;
+	display: block;
+}
+]]></style>
+</head>
+
+<body>
+
+<div>
+<span>
+	one two three four
+	five six seven eight
+</span>
+<span>
+	nineten eleven twelve
+	thirtn
+</span>
+<span>
+	fourtnfiftn sixtn
+	seventn eightn
+</span>
+<span>
+	ninetn twenty
+	hundred thousand
+</span>
+<span>
+	million billion
+	trillion
+</span>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-invalid-001-ref.xht
@@ -0,0 +1,39 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 1em 0 0;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+    </tr>
+
+    <tr>
+      <td><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+      <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-invalid-001.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: invalid -moz-column-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-width-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that '-moz-column-width: bzzt' is invalid (generating a parsing error) and therefore will be ignored." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-gap: 0;
+  -moz-column-width: bzzt;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-large-001.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: large -moz-column-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-width-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a set '-moz-column-width' may be wider (to fill the available space). In this test, the actual -moz-column-width will be increased to 12em." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-gap: 0;
+  -moz-column-width: 9em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-large-002.xht
@@ -0,0 +1,47 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: large -moz-column-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-width-invalid-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a set '-moz-column-width' equal in width to the whole available space of the multi-column will use it all for its column box." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-gap: 0;
+  -moz-column-width: 12em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  bl ac
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-negative-001.xht
@@ -0,0 +1,36 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: negative -moz-column-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-count-002-ref.xht" />
+  <meta name="flags" content="ahem invalid" />
+  <meta name="assert" content="This test checks that a set '-moz-column-width' can not be negative." />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: black;
+  border: black solid 1em;
+  color: yellow;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 19em;
+
+  -moz-column-width: -100px;
+  -moz-column-gap: 0;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div>4444 4444 4444 4444 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 1&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; 4444 4444 4444 4444 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;1 1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;1 4444 4444</div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-small-001-ref.xht
@@ -0,0 +1,29 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  table
+  {
+  background-color: yellow;
+  border-spacing: 0px;
+  border: gray solid 1em;
+  font: 1.25em/1 serif;
+  }
+
+  td {padding: 0 4em 0 0;}
+
+  img, td {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <table>
+    <tr>
+      <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>
+    </tr>
+  </table>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-width-small-001.xht
@@ -0,0 +1,61 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: narrow -moz-column-width</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-width-small-001-ref.xht" />
+  <meta name="flags" content="ahem" />
+  <meta name="assert" content="This test checks that a set '-moz-column-width' which is small with regards to width of multi-column element. In this test, in-flow content that extends into column gaps is clipped in the middle of the column gap. " />
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: yellow;
+  border: gray solid 1em;
+  color: black;
+  font: 1.25em/1 Ahem;
+  orphans: 1;
+  widows: 1;
+  width: 12em;
+
+  -moz-column-gap: 0;
+  -moz-column-width: 1em;
+  }
+
+  span {color: blue;}
+  ]]></style>
+ </head>
+ <body>
+  <div>
+  Bl ac
+    <span>
+    bl ue
+    </span>
+    <span>
+    bl ue
+    </span>
+  Bl ac
+  </div>
+
+  <!--
+
+  Expected results
+
+  *************************
+  *B|a|b|u|b|u|B|a| | | | *
+  *************************
+
+  Every "l", "c" and "e" glyphs are clipped.
+
+  -->
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-zero-height-001-ref.xht
@@ -0,0 +1,15 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <meta name="flags" content="image" />
+  <style type="text/css"><![CDATA[
+  img {vertical-align: top;}
+  ]]></style>
+ </head>
+ <body>
+  <div><img src="support/swatch-lime.png" width="100" height="300" alt="Image download support must be enabled" /></div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-zero-height-001.xht
@@ -0,0 +1,44 @@
+<!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">
+ <head>
+  <title>CSS Multi-column Layout Test: multi-column element with zero height</title>
+  <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
+  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. '-moz-column-width'" />
+  <link rel="match" href="multicol-zero-height-001-ref.xht" />
+  <meta name="flags" content="" />
+  <style type="text/css"><![CDATA[
+  div#multi-column
+  {
+  height: 0;
+  orphans: 1;
+  widows: 1;
+  width: 200px;
+
+  -moz-column-count: 2;
+  -moz-column-gap: 0;
+
+  /*
+
+  N == 2;
+
+  W == 100px;
+
+  */
+  }
+
+  div > div
+  {
+  background-color: lime;
+  float: left;
+  height: 300px;
+  width: 100px;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <div id="multi-column">
+    <div></div>
+  </div>
+ </body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/ref-filled-green-100px-square.xht
@@ -0,0 +1,19 @@
+<!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">
+ <head>
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <style type="text/css"><![CDATA[
+  div
+  {
+  background-color: green;
+  height: 100px;
+  width: 100px;
+  }
+  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+  <div></div>
+ </body>
+</html>
new file mode 100644
index 0000000000000000000000000000000000000000..b98ca0ba0a03c580ac339e4a3653539cfa8edc71
GIT binary patch
literal 135
zc%17D@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmUzPnffIy#(@^1AIbU
z85$Vo{9HN_$mQ~MaSW-rm7D-%GchneRloNK$dW8^jVKAuPb(=;EJ|f?Ovz75Rq)JB
bOiv9;O-!jQJeg_(RK(!v>gTe~DWM4f4{;-!
new file mode 100644
index 0000000000000000000000000000000000000000..cb397fb090e199c51e80e4243d1ede03a79aa8d9
GIT binary patch
literal 135
zc%17D@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmUzPnffIy#(@^1AIbU
z8U8bv#2r`x<Z^ksIEGZ*N=^W>nHU(Ks^9wqWJ#8|MwA5Sr<If^7Ns&crsOB3DtP85
brl$s_CZ<#to=mj?Dq`?-^>bP0l+XkK_<AEq
new file mode 100644
index 0000000000000000000000000000000000000000..3f86b0721955eb4e0f014102c68c2a9764ef7593
GIT binary patch
literal 109
zc%17D@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}blwj^(N7lsBPi@{?l_gf&vS>O>_
t4B~>Z+sSM@uznZE5RU7~83_qL_!*d47#lvcEzbk#@^tlcS?83{1OV}g7K{J@
new file mode 100644
index 0000000000000000000000000000000000000000..9b9a03955baea7abde9e056e8604e18694e49b66
GIT binary patch
literal 109
zc%17D@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}blwj^(N7X}b$5czEp52QH@JR*yM
sv<Dcwoy@ia>vwSs;kcfhkdX0%pMi;mv7v)wwiig7r>mdKI;Vst0MNe`HUIzs
new file mode 100644
index 0000000000000000000000000000000000000000..6bd73ac101874f306d007e9cea8fa3a1f62dce16
GIT binary patch
literal 135
zc%17D@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmUzPnffIy#(@^1AIbU
z|1&U1KH@Y7a=AQR978H@B_{ycObm=q)$jcQvLs7fBT9nv(@M${i&7aJQ}UBi6+Ckj
b(^G>|6H_V+Po~-c6)||a`njxgN@xNA!@(kn
new file mode 100644
index 0000000000000000000000000000000000000000..dd43faec54ae60a210f1eab6ff4e7c88b8e34c97
GIT binary patch
literal 109
zc%17D@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}blwj^(N7l!{JxM1({$v_d#0*}aI
vAngIhZYQ(t!1`SrLpZJ{|M>s^e?0@|Z|1)jn|nS0B^W$i{an^LB{Ts563-pM
new file mode 100644
index 0000000000000000000000000000000000000000..84f5b2a4f1d1865d763cac875bfa6a8c5c576c91
GIT binary patch
literal 224
zc%17D@N?(olHy`uVBq!ia0vp^HXzKw1SGf4^HT*<jKx9jP7LeL$-D$|I14-?iy0WW
zg+Z8+Vb&Z8pdfpRr>`sfEmlzu3&R;K0lq*X$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj
z3<Y;j-+=H&K5?KTUr!gukc@k8FBtMN81S%c^q)Ar(pb!~&BKo6T4>(2QlSh?@M7jG
eOI|GCZ+2WP<2UBa)$Kro89ZJ6T-G@yGywqpiaLV;
new file mode 100644
index 0000000000000000000000000000000000000000..b3c8cf3eb4c89bd8f2d1ffde051856f375e3a3de
GIT binary patch
literal 218
zc%17D@N?(olHy`uVBq!ia0vp^HXzKw1SGf4^HT*<jKx9jP7LeL$-D$|I14-?iy0WW
zg+Z8+Vb&Z8pdfpRr>`sfEmlzu3yE9XPACF}BuiW)N}Tg^b5rw57@Uhz6H8K46v{J8
zG8EiBeFMT9`NV;W+&x_!Lo)8YJ?F^Fz`((>;PMkU^HzRy4~NuGe(INq1>ePjdKrGS
TIXtNc8p+`4>gTe~DWM4fy9-d)
new file mode 100644
index 0000000000000000000000000000000000000000..823f125b8e4a60f780f00443c9c9a10b9fa1f447
GIT binary patch
literal 217
zc%17D@N?(olHy`uVBq!ia0vp^HXzKw1SGf4^HT*<jKx9jP7LeL$-D$|I14-?iy0WW
zg+Z8+Vb&Z8pdfpRr>`sfEmlzuQ<1cFzubXBk|nMYCC>S|xv6<249-QVi6yBi3gww4
z84B*6z5(HleBwYwZk{fVAsP4Ho@3->VBlchkp2JMEhm9(EUQo2%VrV@UNUpX$1;`+
Ty_~-WXd;8BtDnm{r-UW|v1>m&
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/support/a-green.css
@@ -0,0 +1,1 @@
+.a { color: green; }
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/support/b-green.css
@@ -0,0 +1,1 @@
+.b { color: green; }
\ No newline at end of file
new file mode 100644
index 0000000000000000000000000000000000000000..ebf7027ee785af8acf0bf6c213c616b4055ee10f
GIT binary patch
literal 165
zc%17D@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjy#^NA%Cx&(BWL^R}oCO|{#S9F5
zM?jcysy3fAP>{XE)7O>#4vV<BhIm+`Vi!<Ivcxr_#5q4VH#M(>!MP|ku_QG`p**uB
zL&4qCHz2%`PaLR7$kW9!#Nu>vf&}a01d*Pmh1?7*M;I8N6kM?a$})Jm`njxgN@xNA
DYH%n_
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/support/c-red.css
@@ -0,0 +1,1 @@
+.c { color: red; }
\ No newline at end of file
new file mode 100644
index 0000000000000000000000000000000000000000..85dd7324815b8f8ef1a1d0496224c1a0661db9d8
GIT binary patch
literal 1883
zc$@)S2c-CkP)<h;3K|Lk000e1NJLTq003eD003hM0ssI3n4EHI0000LbVXQnLvm$d
zbZKvHAXI5>WdH}z3>gRm8%$Aad;kCd2XskIMF-Ff83-yN8ye1400009a7bBm000id
z000id0mpBsWB>pL*-1n}RCwC$Tnn<>HVmXZK1a^ho3&SK4-(g{9GN13#R7t8y*I%m
zZ)BMw!6g9VLwR{T9*v;e^Z&9e>xbnR^*7(`)-M11{_j7xFNSfJ@$>S&(_i1@5GH@m
zhpeXC{afFEKhVJCt^WWpLj3iQEg77_JYJnk79anUvL0gx`(AYZ27s0x;q_WRcJD`A
zg+R7jBu}y@4l@kFdQJ7DGoh@H-xD(&>S?#kV5MJwAHN8ovs16uEnknmyyLJw3_Dz}
z-2t_1y-WcyWmd+)eVZDoh>C$4rk3Oju)y$mQ#%^)+P>PB74gM`GN6$$a17nlNge7-
z3RmB|dPjb|$p?mh6-(D?ThB@WuYf>+sj1twj=G%GFkj5O!mZqLtqotF8cC*N$ri;H
z2HQ+$17ses$k7#RTbJz}gD2-`@wiB%W8DFRH7rLV$VR8C-{$0BU^7QA)6xcOPkeLG
zIC+y8#pH<ZE4DkLuB$eJu=YD09p6saU_=3B*q=j^t+sjfsKzKVsF6<N*#6N`(<ECy
zIXKz+z9s_>H3S(N>pr`5y87*;bv|b^HW*-n7#c-VH5l06wfM%K8tMv%QYu1VMJ&`q
zXuT9g-DjG%ok+2IhK&G~#M;r0zu4sf-`3+KmoX<0eCv7>JZuYAQ4+JlXds3Yz$`iq
zO!pQ9wr}Yor1)n9bJP~%@)tD+crwU7nJ%PeORd0)1m4F<)qG~XO2nT^iMivEf)z-D
zBxjR-YQ3Q3>4*f>(%TkH;D#Ki*aVYot>nkyxLr9zV62-PtQAsVZ<)M&ROZ`q=r-yb
zxV0FojhaWJa00$t-zE`xTYXArX#ra%P+dk^apt~h+vO{<A@@#@ZFd70kl?YRKP5&g
zb`j&Qn9|8fN_S*$P|_f3a(aM4y>N9i$&>6i;Se`Xu#!Aka_7=8lY{bL`gE8-D*^)!
zY7!?ohKiqcXDjd>0jZICXBl_KZ$6sC00LyW54V5*dj5-!>hm-t>Ht(52LoWuR*1xE
z2G*{@twTZxdhmIo{825j6wMk`;$*SKGZc>R!t=-#&gkXa<yH8pw79M3dp_ikAFn&8
zlrN9ORLOJsca5=ic6o}b2pc1mIER3bjmUh7pG>kkRkQfHYSKVRo~#WuBph;XemDuD
z6qUJ989evMeRwkDj)54kU$UA#IGU-IZHnWTVRA#9kA1APN3ZjwA2_hn2Ug_Nvo#=1
zvdA6|8~BUnoI@62w{|P|2@lwrchE#7bJ6Kq6kBhZllSFE87tja$&a^Vsv9DzjxZA*
zQVOrQc2nyJWb8G&wn4GZFkUv;Z=ATnxIprXHN_9;9UHeyvrlY2*kxbFPXGYML&r3)
zen%FSp5K}|`|V@N#w>xf>JHCqGnQ($o1mTz0Za^NSrBZ!onF6dnw<3&y(VH1bndXf
z391*{FlywkRueb2`q*Y`c5i|#c-`R1y$R0#>_jShsA?F))d087sWd*L&RJQPVgO6z
zuKDv)`2I=hc!ut73ss<T4Sc(1p2frAo70eTGSQX~W-TmJr(%YaR!iQ`4Ur=@=?jjU
zfTygMe0q~vry0lFm|`8tJ+roq*(WDI6R9%w#!|-Y#%eR(ke!N@^4>>?(GbUMv>AFu
zU<y*Z1YJ38rx1Sr_(M)_9Tc=-h}Yr*n2uA=E}I+loFj7auyHJrfHI|Po@I%y`4tj7
zZ|2XgMqBeQS(s^b?xD;O6`XX77pU2u-JQEex9#}uQe_K^?kYOxRi<VJVwG%9W16&C
zB}3F3+z%GVHY()dth0|pcjvht>SWGaq^ijA)f<0KH8%k6{9y7l%|MvpgU?6jsh(M$
z5N*sz^783ghS!jcq!BDms81L*G}VLWyHB!u>=8qC&htH>PmP{A<v#~L#&MqpRv4yG
zw4r_l@+VBe#^s0kwg9GF@{ms(MG=X;Z*q>HB})c5>>6kFjvP9zMaPHfq~YhEr7DrH
zD;~lup<3-juf%_Prr9Z-V4nORxcT&~FF{{2Nk&bqG}pd>$n(1*n4sj(w0;RH6sT{j
zbhUJqyjT6iN>h5jrHP`lGXxi;LI(=%bR`2^fsT95-&yGjH)}sb@TGCA(mUti&QX<4
z{U$^U=I18hwKL%pN^cWLwM6MtTI+-Up~5fcjt@Bxe*M77{d?${Py^67eTt4eFFZ)l
zh8I~nmB}UQ_u%EtP`CsPA88ZuaO!(Y>9V^z>txmUh$SjH&7r>5XT86X<2m!DSg2-=
z-<rS@<i5Y4N=-ro_(K1~{gF<l7M3R7QZPDFa>~W*e9lSUNASn#NOM-@)>-Im^e@d-
V<q-+yJ<<RG002ovPDHLkV1mLWjBEe^
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/support/import-green.css
@@ -0,0 +1,1 @@
+.import { color: green; }
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/support/import-red.css
@@ -0,0 +1,1 @@
+.import { color: red; }
new file mode 100644
index 0000000000000000000000000000000000000000..6fcfeb4883edea810f880fabb861e09df7871695
GIT binary patch
literal 222
zc$@*=03rX0P)<h;3K|Lk000e1NJLTq001fg001fo0ssI3J*IA&0001`Nkl<Zc-rli
z!4iWo2t*%#Ie$(sX|)yGI5;(q%PA9Jmkl8?93ULP9AIK)7R>(GjOxRBMQwxx1mJBk
z?aXifhV@+AVlyc!*ZYwgelQCuviAYh+_OT<gcQNg6t-;4S{PYlcfkL&YW~~R`(A2{
zSbtgn)%$nx`tP29_xaQNq4OWFf2l=xr1`(fKl$`TFZx42zT!BA22b>&*N-Q9(T_&|
Y0MVE_0ae*F0000007*qoM6N<$f~59g2LJ#7
new file mode 100644
index 0000000000000000000000000000000000000000..fcf4f3fd7d95431b8cd1bc5f5129fcb724c5e40f
GIT binary patch
literal 231
zc%17D@N?(olHy`uVBq!ia0vp^x**KK#K6FKsNOXi$XVy<;uunK>uuO>p#}vW?s@X}
z?5{Vn@(E1fdg>#_p5-zBiX+1VA%+4b26mx2|7={&ovNQ>6SXtcysBl-)c><WmS!Y(
zv7BNEzPH=%x{1!KjWd@lmbz(awP;VviDQ{7SW3K#guH|K-#!i8$dVG=UlQ?2Ho)uu
z>9DyExiv#HMbsD$XX>p~Q&Z4f6DV?h!MD37E_}{<nz@wk)ekYNY^%>svR6Ky{&{h`
fDhG(UQO-Q~pMsNotNvM_%Naaf{an^LB{Ts5h3Hy_
new file mode 100644
index 0000000000000000000000000000000000000000..db8ed5cf7bd1837d4810f2885309f8413c6c77d5
GIT binary patch
literal 222
zc$@*=03rX0P)<h;3K|Lk000e1NJLTq001fg001fo0ssI3J*IA&0001`Nkl<Zc-rli
z%Myby2t^NmIe$(!ZH+By>?EUcysXRv&Lsq60f0F`IKaY}8O6F)ckPNrKmh*ySgNcF
zsO2B!z+X<jPG+J~4Ii%NgDF80`5mJXpl^B2u+(g0*rz5I>8xiL(f<$Mv|j(s)%z{g
zX4K!E|JCbvas7AqzkC1b|Dp4ruYT+<YHHy}$v^q@gcpA3!`InPrp6Oqc)fVS3qKqF
Y0cy8C_Kbk@N&o-=07*qoM6N<$g27Q_GXMYp
new file mode 100644
index 0000000000000000000000000000000000000000..8b4b25364e0ffbe09e563e13b567fa57330e48d5
GIT binary patch
literal 137
zc%17D@N?(olHy`uVBq!ia0vp^azM<_!N$PA*s|9jBoW~0;uunKD><d1=|2z8e@O`m
zi5U_X7?eM1T?jqI(8f2(=fLXOHJ)xxeNNw5J?)fkN19wc<FT&3eZzeBMQLtcCc<9q
mCdFSHSg)@*x>)QnGsEKzd}=q=PizO8&EV<k=d#Wzp$Pzi&n><H
new file mode 100644
index 0000000000000000000000000000000000000000..5d44ef210e1132a7de6c5442ee47d3a220dfc2ab
GIT binary patch
literal 160
zc%17D@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjy&H|6fVg?3oVGw3ym^DWND9B#o
z>FdgV7pRU^Vw#v22T(||#5JPCIX^cyHLrxhxhOTUBsE2$JhLQ2!QIn0AiR-J9H>aj
y)5S5w;&k$#^A2_iNfK9WR#k?4Uh$0aDi4Fw97c5^KZPQoDh5wiKbLh*2~7YTawj1G
new file mode 100644
index 0000000000000000000000000000000000000000..0f522d78728417b0f74b694e2e47cd41c00359d1
GIT binary patch
literal 92
zc%17D@N?(olHy`uVBq!ia0vp^f*{Pu3?vyBU)>3$*aCb)TpJh~{xkePDssRFB<<<q
n7*cU7`N#kLjg3MaSNIuL+z|fjF-g!1D9PaI>gTe~DWM4f*isp&
new file mode 100644
index 0000000000000000000000000000000000000000..e567f51b91bbe40754cb0e0cae066201219cbb4a
GIT binary patch
literal 92
zc%17D@N?(olHy`uVBq!ia0vp^f*{Pu3?vyBU)>3$*aCb)Tp1b~82<lv|F?D~NZQlI
nF{I*F@{j-f8ykf<uJALgxFP)4W0Ig3P?EvZ)z4*}Q$iB}@>Uv7
new file mode 100644
index 0000000000000000000000000000000000000000..5853cbb238cb2d4aba3dd49af3f2ba64d6c7a2de
GIT binary patch
literal 78
zc%17D@N?(olHy`uVBq!ia0vp^f*{NRBpBq_B-DVEsHcl#NX4yWiv~UkzCZ4)$}udm
Z3=C_{1@!OB{@4Xl=;`X`vd$@?2>|f05A6T|
new file mode 100644
index 0000000000000000000000000000000000000000..bf2759634d45dbe3df13868341eddb7e4bf24172
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5XD+9y-u8K?HKrWA`i(^Q|
dt>gp+Mj%g@f$_JNuojTT;OXk;vd$@?2>>P$4{-nh
new file mode 100644
index 0000000000000000000000000000000000000000..92c73561f3a8b74b279c2859a0b13145ef12f40a
GIT binary patch
literal 163
zc%17D@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjy&H|6fVg?3oVGw3ym^DWND9B#o
z>FdgVmt9swTFAKFy%s1WS>hT|;+&tGo0?a`;9QiNSdyBeP@Y+mq2TW68xY>eCk|93
z>*?YcVsSb-CnF<4LEOMFfWghQKTGba&8nG2XBpaS8CUo{xWf)q$l&Sf=d#Wzp$Pz<
CekfxA
new file mode 100644
index 0000000000000000000000000000000000000000..0aa79b0c86bd72c2220ecce39b9553e2cd3605b9
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5XD?<aroS#c40=Yb%E{-7;
dw~`YS7=b)p2FBl7!dgHUgQu&X%Q~loCIBjB50U@?
new file mode 100644
index 0000000000000000000000000000000000000000..55fd7fdaedfc1ed505b111f20fabbca568c68fa5
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5XE5m;VlehybfLtC=7srr_
dTgeFuj6j|)1LJQkVJ#qw!PC{xWt~$(6968w4?q9_
new file mode 100644
index 0000000000000000000000000000000000000000..28dae8a3e12bea03cf41b020bf05540adf9da17f
GIT binary patch
literal 159
zc%17D@N?(olHy`uVBq!ia0vp^{2<K11SGd?VUh(>oCO|{#S9GG!XV7ZFl&wkP>{XE
z)7O>#E{A}KxioXY?P{QqWQl7;iF1B#Zfaf$gL6@8Vo7R>LV0FMhJw4NZ$Nk>pEyX7
xr;B5V#`)xwgp33QDFed^Om3n5tCsD{VrW{=FfT{-zcNq}gQu&X%Q~loCIIazCb<9r
new file mode 100644
index 0000000000000000000000000000000000000000..d3cd498b52bd88ea6c991f050f1ecb1cfdd136bb
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5X>;I(;rzSbh26A~kT^vIy
dZY3uuFamkH42-|EgtdSy22WQ%mvv4FO#nq@5F-Ep
new file mode 100644
index 0000000000000000000000000000000000000000..95b84499a3d849cfd74eb8711f5d2a1bc45d0c39
GIT binary patch
literal 160
zc%17D@N?(olHy`uVBq!ia0vp^{2<K11SGd?VUh(>oCO|{#S9GG!XV7ZFl&wkP>{XE
z)7O>#F1v)dmTbUZVN;-xWQl7;iF1B#Zfaf$gL6@8Vo7R>LV0FMhJw4NZ$Nk>pEyvF
zl&6bhh{pNkKlKkxm@hVTHi{UmstPgv8p_P@ua9X3)ACoBfT|cgUHx3vIVCg!0A2AZ
AjsO4v
new file mode 100644
index 0000000000000000000000000000000000000000..73bea775175e9bab0dfe664eaea9ceaa566de787
GIT binary patch
literal 153
zc%17D@N?(olHy`uVBq!ia0vp^{2<K11SGd?VUh(>jKx9jP7LeL$-D$|*pj^6T^Rm@
z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgf<CN?H@8SBFiJU}5yPZ!4!jq}Ml
p2^k3rQU-<-nA}49S1sF@#c<n>Q7&8X=USj522WQ%mvv4FO#s*6C0hUh
new file mode 100644
index 0000000000000000000000000000000000000000..1caf25c992aa8e23483cddb3334b5f51ec967f4a
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5X>wg9Y$w!>#KrWA`i(^Q|
dt>gp+Mj%g@f$_JNuojTT;OXk;vd$@?2>=8a4uJpw
new file mode 100644
index 0000000000000000000000000000000000000000..1a7d4323d77287d8eb03a89c635b09d099d94869
GIT binary patch
literal 85
zc%17D@N?(olHy`uVBq!ia0vp^{2<H-Bp8I(u6Pcln3BBRT^Jbeb_p*5^7uSm978H@
gCI9%}-<ZL|Fh5TA$_Ah94?yZYUHx3vIVCg!0Qo5vZ~y=R
new file mode 100644
index 0000000000000000000000000000000000000000..1591aa0e2e274854ed836cf582235ea0202f9c8e
GIT binary patch
literal 84
zc%17D@N?(olHy`uVBq!ia0vp^{2<K83?vyP*g1g|bAV5X>;L}@UB|w-0=Yb%E{-7;
dw~`YS7=b)p2FBl7!dgHUgQu&X%Q~loCIDbL5Y7Mq
new file mode 100644
index 0000000000000000000000000000000000000000..904e24e996a3e5da93bef89e10c49e24c07d0ed2
GIT binary patch
literal 1368
zc$@)P1*iInP)<h;3K|Lk000e1NJLTq003kF003kJ0{{R3g3O3#0000aP)t-s005aY
zGnr;)nE(LHGc(L)X3UwH%*@QpW@i7Hng7hp|NsC0s-1y@0000CbW%=J|NsC0|NsC0
z|Ns9065r0w00001VoOIv3m@0SzyJUQ%1J~)RCwC$mrHKsHV}qI#0OA$)CUNV+0PNC
z5z>1FDgrZWOHO<59>534BKsDgp7p3B>I7zAF2$Eby&QX;;i_BGr>dV-tSTkfVYNIl
zi$7l1mTrsB_C8C-i#4X^3LaLG>jn4e0?941+dy=QV9i9xkG(@4H;@(~ogt^a`43yj
z^`**Zh^{Td#Pj%+Qr%fKN-5`g;nYOF+LzqmXhmO+m0gFk>gfe#F-NRAhUdXXT_P3&
z5hZ>zhPowUE`a<#=%qb^0(KmTs?O^A;`TX0ocz1q{qO362uJ`J02e5qdmo1g`RwHP
z!A7z7fk;yZJFK4j+J<J_!!kFwGv}DTl*m6N!y-fSp;zS$vG4R+^f3f3FkDp6`iZB@
z9Rq0{yOh5|GFgnv$G$b5jmSNW@=3{zpgZ``cV=57#LB;M$gx-;>{j+R-gEgot3{VQ
zT_EJMJvHm{U-0*2vCJ(xH5>9<9E?yX{cn>?Cg7{`b(@FBIAj4b8LLlxUA}&DNX9v(
z3NQA_a4!BS*5!`~%BqqjA5Y&4uFEHnEyD3&j#zU)o^f5S%cniIzr|OZ3i>ow5`DiR
zKV-E(ZYQ3EdZkb6@<UeNeUB?iBFq`D*X2*MI!I#{X}9FZS$$Qmwt_`|Y{-wZnqKV6
z1blp+IyR9XXEjwg7bU<2vXH;?C)8Cq%49XyvL(Ou3A1w<`?`EvZGvCF2-_3drF_v3
zWsvc|O+gEO*$ta$@sA0cmcFE8)2I`NWRx;N{9|`#gBRBOOq5lHKJ|AG{lc-r?c}4)
zL-$z5Md6GLEg?qSW3G#N#pKN%xTocLj)Y#BeKpr}_iC1cFHVHGREV^M$HW)&`;U1U
zqa(S7SZ8*J-qhDnFUE@G8)EF3n+2Q$s`7)uute1_k<QgF7t5n>rGpW1SV4To*jSQh
zlcG$a4=ps-GU>1C2_a&@$I%?>7`aa!VnfzdIeZ#?+sUD|PY~B%U0^7GO|Nu@sDsJ#
z@KlWWEXlsO1AjC<{IhGw<M`A>1$M}i5N36xL4oHW;3LYQL{&USeE7rWXggil@q+qy
zcqZ;IV<F)o1Yw4G7>JjWW`PLt<%)`T&`L8>V}>Oa<kn^+iI7n5LHubaqvh(*WJr7^
z)T>O$2em@zx|mEC771}cDVqgE!@z!yT>QYv82lFP(%@F<5;wl4TqknAA$72YTMI-#
zh4f`KPMMiy>XyGdc~Of)_A<zfoj!JJF(=#0d7SY)+PJ~38KUdBOaRb$*jPKdJK=EV
zrkm0Z8xVG(YE0}Yt@-e>+14L1KJ#R!khI&B)WtXi&X5b{lL3*@ZkLC@MvW|+A?7gN
zW^9D0T;2*9*?`>~p)-$sKP@gC`DhvB0@0TW$+>vr68OLZ|AFHIA?8UIVp5VL8#iJF
zp>x%gNY!OhEyLo1uORl+--}g*Wst2R?yDkOfv7^I8;JRK;rXg-$rj?i69C?WTvb<5
z-Ama!5K|d3=PQC<K{RE8uwP1VM##=LEUkC!&4^ZAZE86{8mYSe$D&=JS`K8398A-<
zAkI6YxS&bnwNTEyqw<esfq5o26J~CRQnjl~iN@O75YIKX+q?rYE}CZZF2t>$$WP>d
ai~I`(b4pM507-ZN0000<MNUMnLSTZUYM}!F
new file mode 100644
index 0000000000000000000000000000000000000000..f413ff5c1a0f2ad9f9a345d3e07be57a59a82207
GIT binary patch
literal 1045
zc$@(h1nT>VP)<h;3K|Lk000e1NJLTq003kF003kJ0{{R3g3O3#0000aP)t-s005aY
zGnr;)nE(LHGc(L)X3UwH%*@QpW@i7Hng7hp|NsC0s-1y@0000CbW%=J|NsC0|NsC0
z|Ns9065r0w00001VoOIv3m@0SzyJUPhe<?1RCwC$ms@V5FcgLlnk;}*nH@}b&;=9;
z`W^{0$~+gU<h>dx3m9n@P^7faO%<|&!sf>KZm^B!d3qut2z>beeU2{xp@)&j(02``
zTY^Y(yls!8j-g6{#iqXUOZZmq^{tQRnwIpYptOGKE#wg=geU|udB&pePc3cOueFKs
zvzd?t6~fN!7xtH~ecHeFR|~mNE=(hU<zcj=XW{%Yp6UJ6N@ftUzmC!P5cbt`?6jy?
zkn>j9-;D~v`nZNntt8~9LC7xNOec_RZz1(-9N|5dP=m0v9-_#(n4W^-V2~txiYhzj
z!i$YK*$mpxEQDn<+Gk7q?5d2K>8gc&fN~c@-gEJg62@yGi)KdJFKsVL7OffK1s(gk
zuDvn5Y{BU<F%-%e((qKG8u5Ul%idy$ct({KxR(KBlCq)lwQ%n=>I*USjd;i%YrdEb
z{Sn*_^roe9hCXX0U8@*Tm5}W<;uM1)L8qv|EjeFw?$DQBbYc7Y_+{2Z;0_;OA3x6W
z0PY|Sr^RF&+^N9lo^nJde+0T>e|Q%!CAxA~?GMkwJ^q*@L1D^DW{@@e8aZfW&HlL(
zh^h58`-7ZbHV<zaS+W1w2>0aSI!6vcWNu~EzD%TLWzD`y<i?s$R_yCU8Y@az$o?{s
ztJ8(Yy+rUffV?jfsir=p{xwOCNIQ`VxeF})mt`W=%)g=j#qveyLfcAweUa7TT2Y9%
zj|Z80xYL7JBN#v$SuMm7!T-APcUV_RUG7#w6p(kTFo<b#?tbL$mc9)MbD|J81-xCa
zu1iy(+!eIf8G_WOYv>wDV7Xr)zJ+r5pkj?+g<rb&*<VHdwnQ#%k*B`?n)b<=Z)r8M
z*w%Y?pY@=}iIK&e%yly-p3Gaau$<qAqFp+%WF>S_u|SWDG`g}53&gW~H?kPATZn)^
z{pHpDF0f_Yc)Al>7VPVTai^XiPQR;MAxJ&d2ec|FrET5HXc}tCS~{7gaV(KcTp<oc
zQD|B7>QZ^Z1TjZ~gu`3RQzOf}P2=}cU|fp)kR|{zS!z=9ML<>z3CM~dAz5JrL$V?W
z4Q^@!)=5xS07+PK!ylVGm5`=3ktPvYvS1MHR5ItZK3>BJtE{TnlF}3mey44O;Kkq6
ztd@0Ivcj%UvClb}M#-r)(X{Qa==a|U(_!d)YlyiY`vK(N;tTmg{#)cPVxOudoeJ1E
P00000NkvXXu0mjfoHYWE
new file mode 100644
index 0000000000000000000000000000000000000000..82eeace7fc0c4202f79610978ab423e62abf8939
GIT binary patch
literal 2412
zc${^X3pmqn8^=c{T7;NI4qM(*Mou9U5{WW}%$Y`88FMz0l;d2JL+IczS&e!VW@(k_
zMYG7M<x~v+<@9&hf0}yv=k)%jx~})S-s`=7&-L8j>-RkO{oMEG{yo?A%RGm&m)WVZ
z69fXuIGnb10c;xxBmtF@1ZIA;IvWI%Hgd2%;TAU}D0RZ`@r9<B<>$;$!NqLfkwOT!
zRp+A=6)e+gr@P$-LQN{CZZz$zuK3_IQ`ex^Fn=I`{g<R;_<6;nR4dKrnvl|Xr|t%*
z%$2#~1ErlyG4fiaChhlEc#9<~CHJ!&@wzy>L;V|~f~*`Z7JBLth5pH&Mmh9-era)h
zUFDKS;c1Vx!qmjG$$sAg&k1Su3Nu$U1`^qOn){`>Npg8<Y1?!SS08Rn5)8ZbDVj#{
zm1xPRi*bfi-0R>jOZ7tvdU)d%=<czM3rBt!SUZy*YY+UHhcO<1SUmofczQnCoWWqA
z&h6tz6hvS<$AyW9yRfeK#JIRP5!#{6KbZHU%%CUXB^h>sg5732<%T<O7Ra|f{@dN<
z@|~%;U^VZpEuv`nq+(dwnD^t>ywePhu@mulN8A9>$C9?EvFM-+^RoNuJ6oj>yoCa+
z+Gpu!BNprRq1+$utu{ylr%VzinAJN|GyXwIdz8A{^06J`GNg;@89_OC^={+#Y`tiV
z)`69^sShx(lyi<jlg<s4begA1N0e6N=JOFT3yIO$8v_pG>;BUMa5N@2XEaYIohs9h
zg$K)rXjdAOu?B9gs0`gon#-Y56wYw(w6ku9LSE#neGizD4MR>g@$y}AiSugH-KD)=
z{;#8FdMllux#O3WuMQ({Ox0VQzCJh0GU1pRRIflBA6pu~kg1kZBbyzhfr(?=AgmF<
z#I~u@;uGk)TgUv_o}@Gn?!yfo-dfHc|LOHJ{So!Ea?M3F6w>r2!)%v4m@Y@==5pn5
z5l}b;1A|~BFnNqN&wc46yDlo0kB~jN8SqzN%<H$&J8*nNNg5*@!j+(d=yG83kfNo2
z>@BTlGMSByy70-!&o2ayG&sECN>N2Sm*`V9-BX5sdO?0BwxKb}POH!{ljQQgu4-<u
zhTJyNKos&`<)5XS?XqtgG4*^Hr=hB>wokyV-Pmwi`|<rLX<{*6{#epFi)3+ad7&i@
z3>W>$-7g<6n#k<P>9F-ZG+k}i9W{*#Prt}Y+VHb2>YDoYEm|l<mZBaU)hSY7Q0$WJ
zH%q7jQB#Typg0&rbF<XVYGJ?RuUGD?4x?*-_?DP9iOB&YEB)&q8=SCPjPN^W@W)2I
zj$M3KNs2MdS8&`bBc=xy6CiKx;mP3)OoIq*JOHK`$!|2khPnA#%6DAy&k%IVQR6C{
zfeJv|K;<@ou^W!dV?cpezxV&QD=_I?3y+;PEg5O{Bs^>VTv{Fx6`N5cZq9keW6wUs
z1HiJLh#R(<E@|5@o91!DgET2qRj{63=u$E{;8j&1E2BfR%ueqQ?ysxz(L1==o<qO8
zm3+!R<Vih&IsE;qFMdQ2i!99^FfVkx@~n5}`M^~ok%-5i!H0SdOifjU4rkwwQPj{o
zo!Q3Wqz}AyJDk}zJ3BixR767P=?%STeEwVu9u*ZOh#i(EVlXXT7c~TQerG~;!AGt|
zf%byj)3>$4`tz#>wQm<Z_Fr43b1$1&RoB$0rqdaW{qV)b#a2v28`C^6+HA`g0#qGo
zWMt$ux3;#HlCq^TK0iOd-pdK^`?S9#VB+?@vqZuu>vM3utyX?}w7D8?d`UPa^R_m$
z;hc7mVc@4;DKf1fk|(f;nB_k6X1YA-1HL*tt>UgX2}|AQ1%oyIu)_<mg2?$Ua%i`R
zx?h_1KOE&c-=AnhBQX8V5)NJGrJ!JaNB{zqwM{HQ97(YN1xkp;4f>{N@&E*gV;w%o
zde~^?lCXIEYPyZ4cm<j@#=P$02s7uGE~sZLjJ|uXe}sFIS7{Ng1YX7VwUkrx=r_u9
z%k^KD>*wknV5J;fKCbw0f~(BWBa)#f<94(l0}uh)srP!7t=!X9FPNdFPJRlqRn4CE
zf$`N?Gnc!SIINUcQ)>5=Bm)pqk}XI!6+;(g(?R02HCcN`Z!XC0N&_;a=F*#z6e5m8
z_#<Hok;3gQ2`=xo1_N6GZ*?%>EjJ32Rw6H;T9aQ+5Z|Ds{IcZt59KE0+T81S)RS3>
zzSHh$DNV_ZL9`$lHk&+dgLH(}aXWqy0cu3G!dY8R!U7OY9-vg>1C0Erff$(~WGk3h
zEaB`TART9qU^P20-EQb&vr@MFxFfrloTWt0+9uuZkxB%Z?FF}aSaVd8IA026+3>&!
z=Ka(lg!?EA@{_k_P_0NdmAFY<A0js@Ep!9Y(N~ldFI&fD7zMvE^pVZ}L+KGJ@}1xH
z!<JN;SILSkJ_r83gX%<@!O*!jU$AL&b93lwAA?=vqR9><64}jhe|iA{k$I~PA(vSt
zsn<p<d)YNPo_>MszI((Ui^Y~qzw#j@CHdnM!^6*MD{c=_%-gYB{VWQFa&{gJK8hO`
ziRu<vel=FtS6?p4!>RGhqGi1DN>iS5s7bLYfp^(hrBT<_)phJmVw6Qe&-9Lvc|jAO
zf6=5^(D=64G|YBFFwC^KEYx$(rmuUoTV7iZ|32FvVuG}?8Vjx$A4gU`f;GI4AFNJX
zU8bYyevMaY_1C|CX%&eKIgZ(Mj){(2a4Hky4qfrQh|Ti6b%`j2oovKe()w;F@ta$7
z#<IT+Pw3`GUbu6_91MPxIV;Sci|-GP2@C6~s}cwVK6=w3h`SvXSB74M7GY^FU*ToT
z%<Rc`KE@AvWR#MW%0~!5@(q49NUI8$Cj{ox`oE&hXQE#(wTz660L%!Xp<UhG=Bm0K
zULGEwcsv$SNC_RjdB&-ACs<Wg6}Y2=UjMrGcb(heW2(x^%4jq?blA_^+uO@)cI_*V
zS3-I|EU+p6Fnk%xVYAse8dfcGMr|H>`yA}OKf?k~e9GVRe=lC3L;zx;Yy%|GY0^uD
T-WLG>Qy>RBlx?+5K=OY84hnWq
new file mode 100644
index 0000000000000000000000000000000000000000..f6ac0ef7e8f6e192c9c26239884bf92b13cf67b8
GIT binary patch
literal 1025
zc$@(N1pfPpP)<h;3K|Lk000e1NJLTq003kF003kJ0{{R3g3O3#0000aP)t-s005aY
zGnr;)nE(LHGc(L)X3UwH%*@QpW@i7Hng7hp|NsC0s-1y@0000CbW%=J|NsC0|NsC0
z|Ns9065r0w00001VoOIv3m@0SzyJUPb4f%&RCwC$mQ8M}Fc5&T!~r@I9HIMngrJ)4
zQ(^kjbwEn?FN@yb9iWkt>{9_J2)W!F@R;Dg)Lp$zS!5CX;rV991JU){SM-DYAV0|e
zM%uPHwukYjIUJ7B*Q=ZTu2z>QMR^bD+hKK83n7YJaQrDaUiXl8N2@a^ART^^rwFp>
z9#IKgok0Td0KkTyXt?~yXZ<2qM=a7Vzey#Q*6RDnL2!78qHiE=Ex4QTA^lz~J%kTw
zstmq|U|5-t@E~V@SRUkpVNEL-i@q);x>HzkHGJJLeJv;~hO4ub=d-q4IFZka!eTMc
zu`{buHGh%+at79akO>1WhSi7Zh!q^12-bv5K>WppZFh6@Am?f!<BIe8<ZyJvwWFFq
zUcMXE0yolD)G8oeTdi8;=!mNz`J_B*yPwI?M)m~}`KHs5imGL+R7;7ZWotYNJV;A*
zWckKOJq2tdq{0$$(*LL3ZKU7Jv@p{|rJmVH#VIZ=UDrmLfQ3*?VqE$rdu3uFswG*f
z%lCCbgf){JI*%YWuFdgL!bDU{f?kyVyi~}>KvZ5Be|6^zTf#t8UO;S(JZAKN+3ASN
z3j@6)uNUz|&Al}d$_w_F78jlrimN;suUD0qIN$0jWDohucq6MjSV#Rh_J5@Pc!G3f
z_wwM3t6xj|WYw9-AC(uqCDDE%<9fTAh~QL5JzvTmP~Jf3VT_w`oktbsK$-$vb-dY+
zEip&>4?ZIC^U;m)Hw&SbOn!F;BHM*_pCjsYrK_unjA?=AlYvYnPPY~!(~?^V6%rmz
z<RXVlV(+q3UGZ)qa4U<3RPu9z8&h()Lr7;MvMclhIow%G<k?0tDQT)8vXJ#M5t59J
znRmOBS}sb`n8kPXi@9Ww{-vOHwGp3wv!1nUm_EL5ha0)Qi>kimBF|Bjt{e!>7aIY`
z$e-!kZF!dZ$<~h?Ekqu$Hyc?mW_>Y3_Tv~aU&L~krJRVP<{Xh@#O3lKU&e81AT)VW
z+l8Kn<$pJj%%^`<NBnV^?sG(rO721gjrZ5ir7vt3{7A{<<H{~jA7`ID<MD7X!t_;S
zAdaE>s>@+0W|%%6zicXInEvpcG8HpS|5i+Fr$GIwnD~MX)K@9PlerDlpNfeu>p=af
vm<;kz{V6gHxvP)gcJytThUyO|QzGyW8di!g0nvTM00000NkvXXu0mjfqXF-V
new file mode 100644
index 0000000000000000000000000000000000000000..59843ae54b64f6ce4f7e616d4be491c911ea84cf
GIT binary patch
literal 1235
zc$@*#1T6cBP)<h;3K|Lk000e1NJLTq003kF003kJ0{{R3g3O3#0000aP)t-s005aY
zGnr;)nE(LHGc(L)X3UwH%*@QpW@i7Hng7hp|NsC0s-1y@0000CbW%=J|NsC0|NsC0
z|Ns9065r0w00001VoOIv3m@0SzyJUQMM*?KRCwC$mrYXRI26aFnjFBd+de=qdOt_N
zRTBGjNv4=J5|!QqHQb;NfD32Vom9jLqFiod>%)>Qhp^}!Di#F%(|iB->7dhx5Bfwt
zkx%50BC1n|tx|6vK%_mLQWqnX6K;;U`FDFEg`lc|)m4wlpBK4@05B8)B_V|J%_Vlw
za4<$t6qwQ5?fVe&2b-UQ(B}DF=TLGmWzFWjfTsuoBj{dz2tgQl^A0mb5R|kzAGjHU
zzt-QIvk5};13=E&LB-q-)byMklsg#6^|GA>1kTt&3kTTsQcmN$3rJ$UlvDpmfxi-B
zs(OsZVotq*l2F1pfdVHvT}FC0ny!_MGKlO{^1lTH|7D!$)SEgOs2&9Y@Lbr2kd{<#
zhySTga0aoQC4`TSr6hxqDd{GMq~)Oxf{zHUHg7p3EkeB)qa9pj)F50=N<;4i33kkV
z+Zkfqoh0ngavtIa&CE4aHM11QcA(<ZnS*i}9_-kZ;*#IbkX(ZM7}U-VnO=(WZJ}O6
zN?{sklqJk*eYL?f(2HA43tsrLxw#P83GW(do-aa9$Cseyd*a!d^}6HVyqYAe5u#PP
zW%Z*kP*_6LlYHvTg7zzOR0H&%9HKkXNYMzhoi|%+O@~02w{IClNzOR!w=8e?lQnb@
z%pq|-dqh2QW;SdM6#?$Yk>1_eQZqwfj_k!6`W4$RXtT;($sb=Vf=Ltr<fHQ=Orru;
zUn;qEfp&3@JVRc|I^G&)9Ni4A9mSQOHEM$Fe1C)nz8+lD!g*#oEk#T?Ym^*pUDLa@
zP0fmiPIHK0vlU}q+Y5`}FTpe9;sq1LWPGS!Et$V!6C--}V}{^za7DM=t4WauJA@K$
zMP={GAs~J}TSO4+Obz2!!c-2PJ^BD}6(L7%qhFFWlm_w*{A_jB&gyf79BgCs?>w9n
z=2B#u(Pr7sL0tWekex*^{dF&8!>RY)KGWH*ffTXTQc}}ioq82%jI{MEgls^5+h<%O
z^>H1Z@tJtBVk*~XX#88aM!5hI=gDs?hBhOj+jXMvWV-~H?(^Z!I&l*r!fNriI&I;K
z<Iv6+Vk^Q0%(qeN5a+0NAxn^9#sT%s+L9uce-sc;vjLIT_kg$%QSX=-v{o_lKqih2
zSFAju?}mC>UB`|wTQ4r~E*vl-*0C6Qu@PH2eTrR0Wf{T~%Xbknf3wf*S&<+a`6o9M
zz*S7^KKgFY$UnJ0HVgZg8jXfF%*c<rs4-Jtxk{$Dr$zap4viTq<*Snt>L({(KZLbt
zzRNL^s?W;zZP~w5L&>g+M15Ai**#&3n|Wb>4eGP<`;PGlMsC0muRbf^cs3p5##&fh
zIr(FkMaZ}vrt)1Swj2@$kLqXgyORsRw`3xZBX}-f+RL=$<nPGNDtben%J*+U`~KZM
xFqlMZdn&(j3r#(mcWQ87&CEBe=q+_3|9^_Lp+#u>Ntgft002ovPDHLkV1lbeOeO#T
--- a/layout/reftests/w3c-css/received/import.log
+++ b/layout/reftests/w3c-css/received/import.log
@@ -39,16 +39,296 @@ Importing css-conditional-3/at-supports-
 Importing css-conditional-3/at-supports-032.html to css-conditional-3/at-supports-032.html
 Importing css-conditional-3/at-supports-033.html to css-conditional-3/at-supports-033.html
 Importing css-conditional-3/at-supports-034.html to css-conditional-3/at-supports-034.html
 Importing css-conditional-3/at-supports-035.html to css-conditional-3/at-supports-035.html
 Importing css-conditional-3/at-supports-036.html to css-conditional-3/at-supports-036.html
 Importing css-conditional-3/at-supports-037.html to css-conditional-3/at-supports-037.html
 Importing css-conditional-3/at-supports-038.html to css-conditional-3/at-supports-038.html
 Importing css-conditional-3/at-supports-039.html to css-conditional-3/at-supports-039.html
+Importing css-multicol-1/multicol-basic-001.html to css-multicol-1/multicol-basic-001.html
+Importing css-multicol-1/support/1x1-green.png to css-multicol-1/support/1x1-green.png
+Importing css-multicol-1/support/1x1-lime.png to css-multicol-1/support/1x1-lime.png
+Importing css-multicol-1/support/1x1-maroon.png to css-multicol-1/support/1x1-maroon.png
+Importing css-multicol-1/support/1x1-navy.png to css-multicol-1/support/1x1-navy.png
+Importing css-multicol-1/support/1x1-red.png to css-multicol-1/support/1x1-red.png
+Importing css-multicol-1/support/1x1-white.png to css-multicol-1/support/1x1-white.png
+Importing css-multicol-1/support/60x60-gg-rr.png to css-multicol-1/support/60x60-gg-rr.png
+Importing css-multicol-1/support/60x60-green.png to css-multicol-1/support/60x60-green.png
+Importing css-multicol-1/support/60x60-red.png to css-multicol-1/support/60x60-red.png
+Importing css-multicol-1/support/a-green.css to css-multicol-1/support/a-green.css
+Importing css-multicol-1/support/b-green.css to css-multicol-1/support/b-green.css
+Importing css-multicol-1/support/black20x20.png to css-multicol-1/support/black20x20.png
+Importing css-multicol-1/support/c-red.css to css-multicol-1/support/c-red.css
+Importing css-multicol-1/support/cat.png to css-multicol-1/support/cat.png
+Importing css-multicol-1/support/import-green.css to css-multicol-1/support/import-green.css
+Importing css-multicol-1/support/import-red.css to css-multicol-1/support/import-red.css
+Importing css-multicol-1/support/pattern-grg-rgr-grg.png to css-multicol-1/support/pattern-grg-rgr-grg.png
+Importing css-multicol-1/support/pattern-grg-rrg-rgg.png to css-multicol-1/support/pattern-grg-rrg-rgg.png
+Importing css-multicol-1/support/pattern-rgr-grg-rgr.png to css-multicol-1/support/pattern-rgr-grg-rgr.png
+Importing css-multicol-1/support/pattern-tr.png to css-multicol-1/support/pattern-tr.png
+Importing css-multicol-1/support/red20x20.png to css-multicol-1/support/red20x20.png
+Importing css-multicol-1/support/square-purple.png to css-multicol-1/support/square-purple.png
+Importing css-multicol-1/support/square-teal.png to css-multicol-1/support/square-teal.png
+Importing css-multicol-1/support/square-white.png to css-multicol-1/support/square-white.png
+Importing css-multicol-1/support/swatch-blue.png to css-multicol-1/support/swatch-blue.png
+Importing css-multicol-1/support/swatch-gray.png to css-multicol-1/support/swatch-gray.png
+Importing css-multicol-1/support/swatch-green.png to css-multicol-1/support/swatch-green.png
+Importing css-multicol-1/support/swatch-lime.png to css-multicol-1/support/swatch-lime.png
+Importing css-multicol-1/support/swatch-navy.png to css-multicol-1/support/swatch-navy.png
+Importing css-multicol-1/support/swatch-orange.png to css-multicol-1/support/swatch-orange.png
+Importing css-multicol-1/support/swatch-pink.png to css-multicol-1/support/swatch-pink.png
+Importing css-multicol-1/support/swatch-purple.png to css-multicol-1/support/swatch-purple.png
+Importing css-multicol-1/support/swatch-red.png to css-multicol-1/support/swatch-red.png
+Importing css-multicol-1/support/swatch-white.png to css-multicol-1/support/swatch-white.png
+Importing css-multicol-1/support/swatch-yellow.png to css-multicol-1/support/swatch-yellow.png
+Importing css-multicol-1/support/test-bl.png to css-multicol-1/support/test-bl.png
+Importing css-multicol-1/support/test-br.png to css-multicol-1/support/test-br.png
+Importing css-multicol-1/support/test-outer.png to css-multicol-1/support/test-outer.png
+Importing css-multicol-1/support/test-tl.png to css-multicol-1/support/test-tl.png
+Importing css-multicol-1/support/test-tr.png to css-multicol-1/support/test-tr.png
+Importing css-multicol-1/reference/multicol-basic-ref.html to css-multicol-1/multicol-basic-ref.html
+Importing css-multicol-1/multicol-basic-002.html to css-multicol-1/multicol-basic-002.html
+Importing css-multicol-1/multicol-basic-003.html to css-multicol-1/multicol-basic-003.html
+Importing css-multicol-1/multicol-basic-004.html to css-multicol-1/multicol-basic-004.html
+Importing css-multicol-1/multicol-block-clip-001.xht to css-multicol-1/multicol-block-clip-001.xht
+Importing css-multicol-1/multicol-block-clip-001-ref.xht to css-multicol-1/multicol-block-clip-001-ref.xht
+Importing css-multicol-1/multicol-block-clip-002.xht to css-multicol-1/multicol-block-clip-002.xht
+Importing css-multicol-1/multicol-block-clip-002-ref.xht to css-multicol-1/multicol-block-clip-002-ref.xht
+Importing css-multicol-1/multicol-br-inside-avoidcolumn-001.xht to css-multicol-1/multicol-br-inside-avoidcolumn-001.xht
+Importing css-multicol-1/multicol-br-inside-avoidcolumn-ref.xht to css-multicol-1/multicol-br-inside-avoidcolumn-ref.xht
+Importing css-multicol-1/multicol-break-000.xht to css-multicol-1/multicol-break-000.xht
+Importing css-multicol-1/multicol-break-000-ref.xht to css-multicol-1/multicol-break-000-ref.xht
+Importing css-multicol-1/multicol-break-001.xht to css-multicol-1/multicol-break-001.xht
+Importing css-multicol-1/multicol-break-001-ref.xht to css-multicol-1/multicol-break-001-ref.xht
+Importing css-multicol-1/multicol-clip-001.xht to css-multicol-1/multicol-clip-001.xht
+Importing css-multicol-1/multicol-clip-001-ref.xht to css-multicol-1/multicol-clip-001-ref.xht
+Importing css-multicol-1/multicol-clip-002.xht to css-multicol-1/multicol-clip-002.xht
+Importing css-multicol-1/multicol-clip-002-ref.xht to css-multicol-1/multicol-clip-002-ref.xht
+Importing css-multicol-1/multicol-collapsing-001.xht to css-multicol-1/multicol-collapsing-001.xht
+Importing css-multicol-1/multicol-collapsing-001-ref.xht to css-multicol-1/multicol-collapsing-001-ref.xht
+Importing css-multicol-1/multicol-columns-001.xht to css-multicol-1/multicol-columns-001.xht
+Importing css-multicol-1/multicol-columns-001-ref.xht to css-multicol-1/multicol-columns-001-ref.xht
+Importing css-multicol-1/multicol-columns-002.xht to css-multicol-1/multicol-columns-002.xht
+Importing css-multicol-1/multicol-columns-003.xht to css-multicol-1/multicol-columns-003.xht
+Importing css-multicol-1/multicol-columns-004.xht to css-multicol-1/multicol-columns-004.xht
+Importing css-multicol-1/multicol-columns-005.xht to css-multicol-1/multicol-columns-005.xht
+Importing css-multicol-1/multicol-columns-006.xht to css-multicol-1/multicol-columns-006.xht
+Importing css-multicol-1/multicol-columns-007.xht to css-multicol-1/multicol-columns-007.xht
+Importing css-multicol-1/multicol-columns-invalid-001.xht to css-multicol-1/multicol-columns-invalid-001.xht
+Importing css-multicol-1/multicol-columns-invalid-001-ref.xht to css-multicol-1/multicol-columns-invalid-001-ref.xht
+Importing css-multicol-1/multicol-columns-invalid-002.xht to css-multicol-1/multicol-columns-invalid-002.xht
+Importing css-multicol-1/multicol-columns-toolong-001.xht to css-multicol-1/multicol-columns-toolong-001.xht
+Importing css-multicol-1/multicol-containing-001.xht to css-multicol-1/multicol-containing-001.xht
+Importing css-multicol-1/multicol-containing-001-ref.xht to css-multicol-1/multicol-containing-001-ref.xht
+Importing css-multicol-1/multicol-containing-002.xht to css-multicol-1/multicol-containing-002.xht
+Importing css-multicol-1/multicol-containing-002-ref.xht to css-multicol-1/multicol-containing-002-ref.xht
+Importing css-multicol-1/multicol-count-001.xht to css-multicol-1/multicol-count-001.xht
+Importing css-multicol-1/multicol-count-002.xht to css-multicol-1/multicol-count-002.xht
+Importing css-multicol-1/multicol-count-002-ref.xht to css-multicol-1/multicol-count-002-ref.xht
+Importing css-multicol-1/multicol-count-computed-001.xht to css-multicol-1/multicol-count-computed-001.xht
+Importing css-multicol-1/multicol-count-computed-ref.xht to css-multicol-1/multicol-count-computed-ref.xht
+Importing css-multicol-1/multicol-count-computed-002.xht to css-multicol-1/multicol-count-computed-002.xht
+Importing css-multicol-1/multicol-count-computed-2-ref.xht to css-multicol-1/multicol-count-computed-2-ref.xht
+Importing css-multicol-1/multicol-count-computed-003.xht to css-multicol-1/multicol-count-computed-003.xht
+Importing css-multicol-1/multicol-count-computed-003-ref.xht to css-multicol-1/multicol-count-computed-003-ref.xht
+Importing css-multicol-1/multicol-count-computed-004.xht to css-multicol-1/multicol-count-computed-004.xht
+Importing css-multicol-1/multicol-count-computed-004-ref.xht to css-multicol-1/multicol-count-computed-004-ref.xht
+Importing css-multicol-1/multicol-count-computed-005.xht to css-multicol-1/multicol-count-computed-005.xht
+Importing css-multicol-1/multicol-count-large-001.xht to css-multicol-1/multicol-count-large-001.xht
+Importing css-multicol-1/multicol-count-large-ref.xht to css-multicol-1/multicol-count-large-ref.xht
+Importing css-multicol-1/multicol-count-large-002.xht to css-multicol-1/multicol-count-large-002.xht
+Importing css-multicol-1/multicol-count-large-2-ref.xht to css-multicol-1/multicol-count-large-2-ref.xht
+Importing css-multicol-1/multicol-count-negative-001.xht to css-multicol-1/multicol-count-negative-001.xht
+Importing css-multicol-1/multicol-count-negative-002.xht to css-multicol-1/multicol-count-negative-002.xht
+Importing css-multicol-1/multicol-count-non-integer-001.xht to css-multicol-1/multicol-count-non-integer-001.xht
+Importing css-multicol-1/multicol-count-non-integer-002.xht to css-multicol-1/multicol-count-non-integer-002.xht
+Importing css-multicol-1/multicol-count-non-integer-003.xht to css-multicol-1/multicol-count-non-integer-003.xht
+Importing css-multicol-1/multicol-fill-000.xht to css-multicol-1/multicol-fill-000.xht
+Importing css-multicol-1/multicol-fill-000-ref.xht to css-multicol-1/multicol-fill-000-ref.xht
+Importing css-multicol-1/multicol-fill-001.xht to css-multicol-1/multicol-fill-001.xht
+Importing css-multicol-1/multicol-fill-001-ref.xht to css-multicol-1/multicol-fill-001-ref.xht
+Importing css-multicol-1/multicol-fill-auto-001.xht to css-multicol-1/multicol-fill-auto-001.xht
+Importing css-multicol-1/multicol-fill-auto-001-ref.xht to css-multicol-1/multicol-fill-auto-001-ref.xht
+Importing css-multicol-1/multicol-fill-auto-002.xht to css-multicol-1/multicol-fill-auto-002.xht
+Importing css-multicol-1/multicol-fill-auto-002-ref.xht to css-multicol-1/multicol-fill-auto-002-ref.xht
+Importing css-multicol-1/multicol-fill-auto-003.xht to css-multicol-1/multicol-fill-auto-003.xht
+Importing css-multicol-1/multicol-fill-auto-003-ref.xht to css-multicol-1/multicol-fill-auto-003-ref.xht
+Importing css-multicol-1/multicol-fill-auto-block-children-001.xht to css-multicol-1/multicol-fill-auto-block-children-001.xht
+Importing css-multicol-1/multicol-fill-auto-block-children-ref.xht to css-multicol-1/multicol-fill-auto-block-children-ref.xht
+Importing css-multicol-1/multicol-fill-auto-block-children-002.xht to css-multicol-1/multicol-fill-auto-block-children-002.xht
+Importing css-multicol-1/multicol-fill-auto-block-children-002-ref.xht to css-multicol-1/multicol-fill-auto-block-children-002-ref.xht
+Importing css-multicol-1/multicol-fill-auto.xht to css-multicol-1/multicol-fill-auto.xht
+Importing css-multicol-1/multicol-fill-ref.xht to css-multicol-1/multicol-fill-ref.xht
+Importing css-multicol-1/multicol-fill-balance-001.xht to css-multicol-1/multicol-fill-balance-001.xht
+Importing css-multicol-1/multicol-fill-balance-001-ref.xht to css-multicol-1/multicol-fill-balance-001-ref.xht
+Importing css-multicol-1/multicol-gap-000.xht to css-multicol-1/multicol-gap-000.xht
+Importing css-multicol-1/multicol-gap-000-ref.xht to css-multicol-1/multicol-gap-000-ref.xht
+Importing css-multicol-1/multicol-gap-001.xht to css-multicol-1/multicol-gap-001.xht
+Importing css-multicol-1/multicol-gap-001-ref.xht to css-multicol-1/multicol-gap-001-ref.xht
+Importing css-multicol-1/multicol-gap-002.xht to css-multicol-1/multicol-gap-002.xht
+Importing css-multicol-1/multicol-gap-002-ref.xht to css-multicol-1/multicol-gap-002-ref.xht
+Importing css-multicol-1/multicol-gap-003.xht to css-multicol-1/multicol-gap-003.xht
+Importing css-multicol-1/multicol-gap-fraction-001.xht to css-multicol-1/multicol-gap-fraction-001.xht
+Importing css-multicol-1/multicol-gap-fraction-001-ref.xht to css-multicol-1/multicol-gap-fraction-001-ref.xht
+Importing css-multicol-1/multicol-gap-large-001.xht to css-multicol-1/multicol-gap-large-001.xht
+Importing css-multicol-1/multicol-gap-large-001-ref.xht to css-multicol-1/multicol-gap-large-001-ref.xht
+Importing css-multicol-1/multicol-gap-large-002.xht to css-multicol-1/multicol-gap-large-002.xht
+Importing css-multicol-1/multicol-gap-large-002-ref.xht to css-multicol-1/multicol-gap-large-002-ref.xht
+Importing css-multicol-1/multicol-gap-negative-001.xht to css-multicol-1/multicol-gap-negative-001.xht
+Importing css-multicol-1/multicol-height-001.xht to css-multicol-1/multicol-height-001.xht
+Importing css-multicol-1/multicol-height-001-ref.xht to css-multicol-1/multicol-height-001-ref.xht
+Importing css-multicol-1/multicol-height-block-child-001.xht to css-multicol-1/multicol-height-block-child-001.xht
+Importing css-multicol-1/multicol-height-block-child-001-ref.xht to css-multicol-1/multicol-height-block-child-001-ref.xht
+Importing css-multicol-1/multicol-inherit-001.xht to css-multicol-1/multicol-inherit-001.xht
+Importing css-multicol-1/multicol-inherit-001-ref.xht to css-multicol-1/multicol-inherit-001-ref.xht
+Importing css-multicol-1/multicol-inherit-002.xht to css-multicol-1/multicol-inherit-002.xht
+Importing css-multicol-1/multicol-inherit-002-ref.xht to css-multicol-1/multicol-inherit-002-ref.xht
+Importing css-multicol-1/multicol-inherit-003.xht to css-multicol-1/multicol-inherit-003.xht
+Importing css-multicol-1/multicol-inherit-3-ref.xht to css-multicol-1/multicol-inherit-3-ref.xht
+Importing css-multicol-1/multicol-inherit-004.xht to css-multicol-1/multicol-inherit-004.xht
+Importing css-multicol-1/multicol-inherit-4-ref.xht to css-multicol-1/multicol-inherit-4-ref.xht
+Importing css-multicol-1/multicol-list-item-001.xht to css-multicol-1/multicol-list-item-001.xht
+Importing css-multicol-1/multicol-list-item-001-ref.xht to css-multicol-1/multicol-list-item-001-ref.xht
+Importing css-multicol-1/multicol-margin-001.xht to css-multicol-1/multicol-margin-001.xht
+Importing css-multicol-1/../reference/ref-filled-green-100px-square.xht to css-multicol-1/ref-filled-green-100px-square.xht
+Importing css-multicol-1/multicol-margin-002.xht to css-multicol-1/multicol-margin-002.xht
+Importing css-multicol-1/multicol-margin-child-001.xht to css-multicol-1/multicol-margin-child-001.xht
+Importing css-multicol-1/multicol-margin-child-001-ref.xht to css-multicol-1/multicol-margin-child-001-ref.xht
+Importing css-multicol-1/multicol-nested-002.xht to css-multicol-1/multicol-nested-002.xht
+Importing css-multicol-1/multicol-nested-002-ref.xht to css-multicol-1/multicol-nested-002-ref.xht
+Importing css-multicol-1/multicol-nested-005.xht to css-multicol-1/multicol-nested-005.xht
+Importing css-multicol-1/multicol-nested-005-ref.xht to css-multicol-1/multicol-nested-005-ref.xht
+Importing css-multicol-1/multicol-nested-column-rule-001.xht to css-multicol-1/multicol-nested-column-rule-001.xht
+Importing css-multicol-1/multicol-nested-column-rule-001-ref.xht to css-multicol-1/multicol-nested-column-rule-001-ref.xht
+Importing css-multicol-1/multicol-nested-margin-001.xht to css-multicol-1/multicol-nested-margin-001.xht
+Importing css-multicol-1/multicol-nested-margin-001-ref.xht to css-multicol-1/multicol-nested-margin-001-ref.xht
+Importing css-multicol-1/multicol-nested-margin-002.xht to css-multicol-1/multicol-nested-margin-002.xht
+Importing css-multicol-1/multicol-nested-margin-002-ref.xht to css-multicol-1/multicol-nested-margin-002-ref.xht
+Importing css-multicol-1/multicol-nested-margin-003.xht to css-multicol-1/multicol-nested-margin-003.xht
+Importing css-multicol-1/multicol-nested-margin-003-ref.xht to css-multicol-1/multicol-nested-margin-003-ref.xht
+Importing css-multicol-1/multicol-nested-margin-004.xht to css-multicol-1/multicol-nested-margin-004.xht
+Importing css-multicol-1/multicol-nested-margin-004-ref.xht to css-multicol-1/multicol-nested-margin-004-ref.xht
+Importing css-multicol-1/multicol-nested-margin-005.xht to css-multicol-1/multicol-nested-margin-005.xht
+Importing css-multicol-1/multicol-overflow-000.xht to css-multicol-1/multicol-overflow-000.xht
+Importing css-multicol-1/multicol-overflow-000-ref.xht to css-multicol-1/multicol-overflow-000-ref.xht
+Importing css-multicol-1/multicol-overflowing-001.xht to css-multicol-1/multicol-overflowing-001.xht
+Importing css-multicol-1/multicol-overflowing-001-ref.xht to css-multicol-1/multicol-overflowing-001-ref.xht
+Importing css-multicol-1/multicol-red.png to css-multicol-1/multicol-red.png
+Importing css-multicol-1/multicol-reduce-000.xht to css-multicol-1/multicol-reduce-000.xht
+Importing css-multicol-1/multicol-reduce-000-ref.xht to css-multicol-1/multicol-reduce-000-ref.xht
+Importing css-multicol-1/multicol-rule-000.xht to css-multicol-1/multicol-rule-000.xht
+Importing css-multicol-1/multicol-rule-000-ref.xht to css-multicol-1/multicol-rule-000-ref.xht
+Importing css-multicol-1/multicol-rule-001.xht to css-multicol-1/multicol-rule-001.xht
+Importing css-multicol-1/multicol-rule-001-ref.xht to css-multicol-1/multicol-rule-001-ref.xht
+Importing css-multicol-1/multicol-rule-002.xht to css-multicol-1/multicol-rule-002.xht
+Importing css-multicol-1/multicol-rule-ref.xht to css-multicol-1/multicol-rule-ref.xht
+Importing css-multicol-1/multicol-rule-003.xht to css-multicol-1/multicol-rule-003.xht
+Importing css-multicol-1/multicol-rule-003-ref.xht to css-multicol-1/multicol-rule-003-ref.xht
+Importing css-multicol-1/multicol-rule-004.xht to css-multicol-1/multicol-rule-004.xht
+Importing css-multicol-1/multicol-rule-004-ref.xht to css-multicol-1/multicol-rule-004-ref.xht
+Importing css-multicol-1/multicol-rule-color-001.xht to css-multicol-1/multicol-rule-color-001.xht
+Importing css-multicol-1/multicol-rule-color-001-ref.xht to css-multicol-1/multicol-rule-color-001-ref.xht
+Importing css-multicol-1/multicol-rule-color-inherit-001.xht to css-multicol-1/multicol-rule-color-inherit-001.xht
+Importing css-multicol-1/multicol-rule-color-inherit-001-ref.xht to css-multicol-1/multicol-rule-color-inherit-001-ref.xht
+Importing css-multicol-1/multicol-rule-color-inherit-002.xht to css-multicol-1/multicol-rule-color-inherit-002.xht
+Importing css-multicol-1/multicol-rule-dashed-000.xht to css-multicol-1/multicol-rule-dashed-000.xht
+Importing css-multicol-1/multicol-rule-dashed-000-ref.xht to css-multicol-1/multicol-rule-dashed-000-ref.xht
+Importing css-multicol-1/multicol-rule-dotted-000.xht to css-multicol-1/multicol-rule-dotted-000.xht
+Importing css-multicol-1/multicol-rule-dotted-000-ref.xht to css-multicol-1/multicol-rule-dotted-000-ref.xht
+Importing css-multicol-1/multicol-rule-double-000.xht to css-multicol-1/multicol-rule-double-000.xht
+Importing css-multicol-1/multicol-rule-double-000-ref.xht to css-multicol-1/multicol-rule-double-000-ref.xht
+Importing css-multicol-1/multicol-rule-fraction-001.xht to css-multicol-1/multicol-rule-fraction-001.xht
+Importing css-multicol-1/multicol-rule-fraction-001-ref.xht to css-multicol-1/multicol-rule-fraction-001-ref.xht
+Importing css-multicol-1/multicol-rule-fraction-002.xht to css-multicol-1/multicol-rule-fraction-002.xht
+Importing css-multicol-1/multicol-rule-fraction-002-ref.xht to css-multicol-1/multicol-rule-fraction-002-ref.xht
+Importing css-multicol-1/multicol-rule-fraction-003.xht to css-multicol-1/multicol-rule-fraction-003.xht
+Importing css-multicol-1/multicol-rule-fraction-3-ref.xht to css-multicol-1/multicol-rule-fraction-3-ref.xht
+Importing css-multicol-1/multicol-rule-groove-000.xht to css-multicol-1/multicol-rule-groove-000.xht
+Importing css-multicol-1/multicol-rule-groove-000-ref.xht to css-multicol-1/multicol-rule-groove-000-ref.xht
+Importing css-multicol-1/multicol-rule-hidden-000.xht to css-multicol-1/multicol-rule-hidden-000.xht
+Importing css-multicol-1/multicol-rule-hidden-000-ref.xht to css-multicol-1/multicol-rule-hidden-000-ref.xht
+Importing css-multicol-1/multicol-rule-inset-000.xht to css-multicol-1/multicol-rule-inset-000.xht
+Importing css-multicol-1/multicol-rule-ridge-000-ref.xht to css-multicol-1/multicol-rule-ridge-000-ref.xht
+Importing css-multicol-1/multicol-rule-large-001.xht to css-multicol-1/multicol-rule-large-001.xht
+Importing css-multicol-1/multicol-rule-large-001-ref.xht to css-multicol-1/multicol-rule-large-001-ref.xht
+Importing css-multicol-1/multicol-rule-none-000.xht to css-multicol-1/multicol-rule-none-000.xht
+Importing css-multicol-1/multicol-rule-outset-000.xht to css-multicol-1/multicol-rule-outset-000.xht
+Importing css-multicol-1/multicol-rule-percent-001.xht to css-multicol-1/multicol-rule-percent-001.xht
+Importing css-multicol-1/multicol-rule-px-001.xht to css-multicol-1/multicol-rule-px-001.xht
+Importing css-multicol-1/multicol-rule-ridge-000.xht to css-multicol-1/multicol-rule-ridge-000.xht
+Importing css-multicol-1/multicol-rule-samelength-001.xht to css-multicol-1/multicol-rule-samelength-001.xht
+Importing css-multicol-1/multicol-rule-samelength-001-ref.xht to css-multicol-1/multicol-rule-samelength-001-ref.xht
+Importing css-multicol-1/multicol-rule-shorthand-001.xht to css-multicol-1/multicol-rule-shorthand-001.xht
+Importing css-multicol-1/multicol-rule-solid-000.xht to css-multicol-1/multicol-rule-solid-000.xht
+Importing css-multicol-1/multicol-rule-solid-000-ref.xht to css-multicol-1/multicol-rule-solid-000-ref.xht
+Importing css-multicol-1/multicol-rule-stacking-001.xht to css-multicol-1/multicol-rule-stacking-001.xht
+Importing css-multicol-1/multicol-rule-stacking-ref.xht to css-multicol-1/multicol-rule-stacking-ref.xht
+Importing css-multicol-1/multicol-rule-style-groove-001.xht to css-multicol-1/multicol-rule-style-groove-001.xht
+Importing css-multicol-1/multicol-rule-style-groove-001-ref.xht to css-multicol-1/multicol-rule-style-groove-001-ref.xht
+Importing css-multicol-1/multicol-rule-style-inset-001.xht to css-multicol-1/multicol-rule-style-inset-001.xht
+Importing css-multicol-1/multicol-rule-style-ridge-001-ref.xht to css-multicol-1/multicol-rule-style-ridge-001-ref.xht
+Importing css-multicol-1/multicol-rule-style-outset-001.xht to css-multicol-1/multicol-rule-style-outset-001.xht
+Importing css-multicol-1/multicol-rule-style-ridge-001.xht to css-multicol-1/multicol-rule-style-ridge-001.xht
+Importing css-multicol-1/multicol-shorthand-001.xht to css-multicol-1/multicol-shorthand-001.xht
+Importing css-multicol-1/multicol-span-000.xht to css-multicol-1/multicol-span-000.xht
+Importing css-multicol-1/multicol-span-000-ref.xht to css-multicol-1/multicol-span-000-ref.xht
+Importing css-multicol-1/multicol-span-all-001.xht to css-multicol-1/multicol-span-all-001.xht
+Importing css-multicol-1/multicol-span-all-001-ref.xht to css-multicol-1/multicol-span-all-001-ref.xht
+Importing css-multicol-1/multicol-span-all-002.xht to css-multicol-1/multicol-span-all-002.xht
+Importing css-multicol-1/multicol-span-all-002-ref.xht to css-multicol-1/multicol-span-all-002-ref.xht
+Importing css-multicol-1/multicol-span-all-003.xht to css-multicol-1/multicol-span-all-003.xht
+Importing css-multicol-1/multicol-span-all-block-sibling-003.xht to css-multicol-1/multicol-span-all-block-sibling-003.xht
+Importing css-multicol-1/multicol-span-all-block-sibling-3-ref.xht to css-multicol-1/multicol-span-all-block-sibling-3-ref.xht
+Importing css-multicol-1/multicol-span-all-child-001.xht to css-multicol-1/multicol-span-all-child-001.xht
+Importing css-multicol-1/multicol-span-all-child-001-ref.xht to css-multicol-1/multicol-span-all-child-001-ref.xht
+Importing css-multicol-1/multicol-span-all-child-002.xht to css-multicol-1/multicol-span-all-child-002.xht
+Importing css-multicol-1/multicol-span-all-child-002-ref.xht to css-multicol-1/multicol-span-all-child-002-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-001.xht to css-multicol-1/multicol-span-all-margin-001.xht
+Importing css-multicol-1/multicol-span-all-margin-001-ref.xht to css-multicol-1/multicol-span-all-margin-001-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-002.xht to css-multicol-1/multicol-span-all-margin-002.xht
+Importing css-multicol-1/multicol-span-all-margin-002-ref.xht to css-multicol-1/multicol-span-all-margin-002-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-bottom-001.xht to css-multicol-1/multicol-span-all-margin-bottom-001.xht
+Importing css-multicol-1/multicol-span-all-margin-bottom-001-ref.xht to css-multicol-1/multicol-span-all-margin-bottom-001-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-001.xht to css-multicol-1/multicol-span-all-margin-nested-001.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-001-ref.xht to css-multicol-1/multicol-span-all-margin-nested-001-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-002.xht to css-multicol-1/multicol-span-all-margin-nested-002.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-003.xht to css-multicol-1/multicol-span-all-margin-nested-003.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-3-ref.xht to css-multicol-1/multicol-span-all-margin-nested-3-ref.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-firstchild-001.xht to css-multicol-1/multicol-span-all-margin-nested-firstchild-001.xht
+Importing css-multicol-1/multicol-span-all-margin-nested-firstchild-ref.xht to css-multicol-1/multicol-span-all-margin-nested-firstchild-ref.xht
+Importing css-multicol-1/multicol-span-float-001.xht to css-multicol-1/multicol-span-float-001.xht
+Importing css-multicol-1/multicol-span-float-001-ref.xht to css-multicol-1/multicol-span-float-001-ref.xht
+Importing css-multicol-1/multicol-span-none-001.xht to css-multicol-1/multicol-span-none-001.xht
+Importing css-multicol-1/multicol-span-none-001-ref.xht to css-multicol-1/multicol-span-none-001-ref.xht
+Importing css-multicol-1/multicol-table-cell-001.xht to css-multicol-1/multicol-table-cell-001.xht
+Importing css-multicol-1/multicol-table-cell-001-ref.xht to css-multicol-1/multicol-table-cell-001-ref.xht
+Importing css-multicol-1/multicol-table-cell-height-001.xht to css-multicol-1/multicol-table-cell-height-001.xht
+Importing css-multicol-1/multicol-table-cell-height-001-ref.xht to css-multicol-1/multicol-table-cell-height-001-ref.xht
+Importing css-multicol-1/multicol-table-cell-height-002.xht to css-multicol-1/multicol-table-cell-height-002.xht
+Importing css-multicol-1/multicol-table-cell-vertical-align-001.xht to css-multicol-1/multicol-table-cell-vertical-align-001.xht
+Importing css-multicol-1/multicol-table-cell-vertical-align-ref.xht to css-multicol-1/multicol-table-cell-vertical-align-ref.xht
+Importing css-multicol-1/multicol-width-001.xht to css-multicol-1/multicol-width-001.xht
+Importing css-multicol-1/multicol-width-001-ref.xht to css-multicol-1/multicol-width-001-ref.xht
+Importing css-multicol-1/multicol-width-002.xht to css-multicol-1/multicol-width-002.xht
+Importing css-multicol-1/multicol-width-002-ref.xht to css-multicol-1/multicol-width-002-ref.xht
+Importing css-multicol-1/multicol-width-003.xht to css-multicol-1/multicol-width-003.xht
+Importing css-multicol-1/multicol-width-count-001.xht to css-multicol-1/multicol-width-count-001.xht
+Importing css-multicol-1/multicol-width-count-002.xht to css-multicol-1/multicol-width-count-002.xht
+Importing css-multicol-1/multicol-width-ems-001.xht to css-multicol-1/multicol-width-ems-001.xht
+Importing css-multicol-1/multicol-width-ems-ref.xht to css-multicol-1/multicol-width-ems-ref.xht
+Importing css-multicol-1/multicol-width-invalid-001.xht to css-multicol-1/multicol-width-invalid-001.xht
+Importing css-multicol-1/multicol-width-invalid-001-ref.xht to css-multicol-1/multicol-width-invalid-001-ref.xht
+Importing css-multicol-1/multicol-width-large-001.xht to css-multicol-1/multicol-width-large-001.xht
+Importing css-multicol-1/multicol-width-large-002.xht to css-multicol-1/multicol-width-large-002.xht
+Importing css-multicol-1/multicol-width-negative-001.xht to css-multicol-1/multicol-width-negative-001.xht
+Importing css-multicol-1/multicol-width-small-001.xht to css-multicol-1/multicol-width-small-001.xht
+Importing css-multicol-1/multicol-width-small-001-ref.xht to css-multicol-1/multicol-width-small-001-ref.xht
+Importing css-multicol-1/multicol-zero-height-001.xht to css-multicol-1/multicol-zero-height-001.xht
+Importing css-multicol-1/multicol-zero-height-001-ref.xht to css-multicol-1/multicol-zero-height-001-ref.xht
 Importing css-namespaces-3/prefix-001.xml to css-namespaces-3/prefix-001.xml
 Importing css-namespaces-3/support/fail.css to css-namespaces-3/support/fail.css
 Importing css-namespaces-3/support/scope-002a.css to css-namespaces-3/support/scope-002a.css
 Importing css-namespaces-3/support/scope-002b.css to css-namespaces-3/support/scope-002b.css
 Importing css-namespaces-3/support/syntax-007.css to css-namespaces-3/support/syntax-007.css
 Importing css-namespaces-3/reftest/ref-lime-1.xml to css-namespaces-3/ref-lime-1.xml
 Importing css-namespaces-3/prefix-002.xml to css-namespaces-3/prefix-002.xml
 Importing css-namespaces-3/prefix-003.xml to css-namespaces-3/prefix-003.xml
--- a/layout/reftests/w3c-css/received/reftest.list
+++ b/layout/reftests/w3c-css/received/reftest.list
@@ -36,16 +36,156 @@
 == css-conditional-3/at-supports-032.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-033.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-034.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-035.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-036.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-037.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-038.html css-conditional-3/at-supports-001-ref.html
 == css-conditional-3/at-supports-039.html css-conditional-3/at-supports-001-ref.html
+HTTP(../../..) == css-multicol-1/multicol-basic-001.html css-multicol-1/multicol-basic-ref.html
+HTTP(../../..) == css-multicol-1/multicol-basic-002.html css-multicol-1/multicol-basic-ref.html
+HTTP(../../..) == css-multicol-1/multicol-basic-003.html css-multicol-1/multicol-basic-ref.html
+HTTP(../../..) == css-multicol-1/multicol-basic-004.html css-multicol-1/multicol-basic-ref.html
+HTTP(../../..) == css-multicol-1/multicol-block-clip-001.xht css-multicol-1/multicol-block-clip-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-block-clip-002.xht css-multicol-1/multicol-block-clip-002-ref.xht
+== css-multicol-1/multicol-br-inside-avoidcolumn-001.xht css-multicol-1/multicol-br-inside-avoidcolumn-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-break-000.xht css-multicol-1/multicol-break-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-break-001.xht css-multicol-1/multicol-break-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-clip-001.xht css-multicol-1/multicol-clip-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-clip-002.xht css-multicol-1/multicol-clip-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-collapsing-001.xht css-multicol-1/multicol-collapsing-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-001.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-002.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-003.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-004.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-005.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-006.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-007.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-invalid-001.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-invalid-002.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-columns-toolong-001.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-containing-001.xht css-multicol-1/multicol-containing-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-containing-002.xht css-multicol-1/multicol-containing-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-001.xht css-multicol-1/multicol-columns-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-002.xht css-multicol-1/multicol-count-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-computed-001.xht css-multicol-1/multicol-count-computed-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-computed-002.xht css-multicol-1/multicol-count-computed-2-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-computed-003.xht css-multicol-1/multicol-count-computed-003-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-computed-004.xht css-multicol-1/multicol-count-computed-004-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-computed-005.xht css-multicol-1/multicol-count-computed-003-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-large-001.xht css-multicol-1/multicol-count-large-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-large-002.xht css-multicol-1/multicol-count-large-2-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-negative-001.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-negative-002.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-non-integer-001.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-non-integer-002.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-count-non-integer-003.xht css-multicol-1/multicol-columns-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-000.xht css-multicol-1/multicol-fill-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-001.xht css-multicol-1/multicol-fill-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-auto-001.xht css-multicol-1/multicol-fill-auto-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-auto-002.xht css-multicol-1/multicol-fill-auto-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-auto-003.xht css-multicol-1/multicol-fill-auto-003-ref.xht
+== css-multicol-1/multicol-fill-auto-block-children-001.xht css-multicol-1/multicol-fill-auto-block-children-ref.xht
+== css-multicol-1/multicol-fill-auto-block-children-002.xht css-multicol-1/multicol-fill-auto-block-children-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-auto.xht css-multicol-1/multicol-fill-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-fill-balance-001.xht css-multicol-1/multicol-fill-balance-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-000.xht css-multicol-1/multicol-gap-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-001.xht css-multicol-1/multicol-gap-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-002.xht css-multicol-1/multicol-gap-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-003.xht css-multicol-1/multicol-gap-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-fraction-001.xht css-multicol-1/multicol-gap-fraction-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-large-001.xht css-multicol-1/multicol-gap-large-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-large-002.xht css-multicol-1/multicol-gap-large-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-gap-negative-001.xht css-multicol-1/multicol-gap-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-height-001.xht css-multicol-1/multicol-height-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-height-block-child-001.xht css-multicol-1/multicol-height-block-child-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-inherit-001.xht css-multicol-1/multicol-inherit-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-inherit-002.xht css-multicol-1/multicol-inherit-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-inherit-003.xht css-multicol-1/multicol-inherit-3-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-inherit-004.xht css-multicol-1/multicol-inherit-4-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-list-item-001.xht css-multicol-1/multicol-list-item-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-margin-001.xht css-multicol-1/ref-filled-green-100px-square.xht
+HTTP(../../..) == css-multicol-1/multicol-margin-002.xht css-multicol-1/ref-filled-green-100px-square.xht
+HTTP(../../..) == css-multicol-1/multicol-margin-child-001.xht css-multicol-1/multicol-margin-child-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-002.xht css-multicol-1/multicol-nested-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-005.xht css-multicol-1/multicol-nested-005-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-column-rule-001.xht css-multicol-1/multicol-nested-column-rule-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-margin-001.xht css-multicol-1/multicol-nested-margin-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-margin-002.xht css-multicol-1/multicol-nested-margin-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-margin-003.xht css-multicol-1/multicol-nested-margin-003-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-margin-004.xht css-multicol-1/multicol-nested-margin-004-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-nested-margin-005.xht css-multicol-1/multicol-nested-margin-004-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-overflow-000.xht css-multicol-1/multicol-overflow-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-overflowing-001.xht css-multicol-1/multicol-overflowing-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-reduce-000.xht css-multicol-1/multicol-reduce-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-000.xht css-multicol-1/multicol-rule-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-001.xht css-multicol-1/multicol-rule-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-002.xht css-multicol-1/multicol-rule-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-003.xht css-multicol-1/multicol-rule-003-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-004.xht css-multicol-1/multicol-rule-004-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-color-001.xht css-multicol-1/multicol-rule-color-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-color-inherit-001.xht css-multicol-1/multicol-rule-color-inherit-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-color-inherit-002.xht css-multicol-1/multicol-rule-color-inherit-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-dashed-000.xht css-multicol-1/multicol-rule-dashed-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-dotted-000.xht css-multicol-1/multicol-rule-dotted-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-double-000.xht css-multicol-1/multicol-rule-double-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-fraction-001.xht css-multicol-1/multicol-rule-fraction-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-fraction-002.xht css-multicol-1/multicol-rule-fraction-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-fraction-003.xht css-multicol-1/multicol-rule-fraction-3-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-groove-000.xht css-multicol-1/multicol-rule-groove-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-hidden-000.xht css-multicol-1/multicol-rule-hidden-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-inset-000.xht css-multicol-1/multicol-rule-ridge-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-large-001.xht css-multicol-1/multicol-rule-large-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-none-000.xht css-multicol-1/multicol-rule-hidden-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-outset-000.xht css-multicol-1/multicol-rule-groove-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-percent-001.xht css-multicol-1/multicol-containing-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-px-001.xht css-multicol-1/multicol-rule-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-ridge-000.xht css-multicol-1/multicol-rule-ridge-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-samelength-001.xht css-multicol-1/multicol-rule-samelength-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-shorthand-001.xht css-multicol-1/multicol-rule-samelength-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-solid-000.xht css-multicol-1/multicol-rule-solid-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-stacking-001.xht css-multicol-1/multicol-rule-stacking-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-style-groove-001.xht css-multicol-1/multicol-rule-style-groove-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-style-inset-001.xht css-multicol-1/multicol-rule-style-ridge-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-style-outset-001.xht css-multicol-1/multicol-rule-style-groove-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-rule-style-ridge-001.xht css-multicol-1/multicol-rule-style-ridge-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-shorthand-001.xht css-multicol-1/multicol-rule-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-000.xht css-multicol-1/multicol-span-000-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-001.xht css-multicol-1/multicol-span-all-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-002.xht css-multicol-1/multicol-span-all-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-003.xht css-multicol-1/multicol-count-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-block-sibling-003.xht css-multicol-1/multicol-span-all-block-sibling-3-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-child-001.xht css-multicol-1/multicol-span-all-child-001-ref.xht
+== css-multicol-1/multicol-span-all-child-002.xht css-multicol-1/multicol-span-all-child-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-001.xht css-multicol-1/multicol-span-all-margin-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-002.xht css-multicol-1/multicol-span-all-margin-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-bottom-001.xht css-multicol-1/multicol-span-all-margin-bottom-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-nested-001.xht css-multicol-1/multicol-span-all-margin-nested-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-nested-002.xht css-multicol-1/multicol-span-all-margin-nested-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-nested-003.xht css-multicol-1/multicol-span-all-margin-nested-3-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-all-margin-nested-firstchild-001.xht css-multicol-1/multicol-span-all-margin-nested-firstchild-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-float-001.xht css-multicol-1/multicol-span-float-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-span-none-001.xht css-multicol-1/multicol-span-none-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-table-cell-001.xht css-multicol-1/multicol-table-cell-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-table-cell-height-001.xht css-multicol-1/multicol-table-cell-height-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-table-cell-height-002.xht css-multicol-1/multicol-table-cell-height-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-table-cell-vertical-align-001.xht css-multicol-1/multicol-table-cell-vertical-align-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-001.xht css-multicol-1/multicol-width-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-002.xht css-multicol-1/multicol-width-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-003.xht css-multicol-1/multicol-width-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-count-001.xht css-multicol-1/multicol-width-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-count-002.xht css-multicol-1/multicol-count-002-ref.xht
+== css-multicol-1/multicol-width-ems-001.xht css-multicol-1/multicol-width-ems-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-invalid-001.xht css-multicol-1/multicol-width-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-large-001.xht css-multicol-1/multicol-width-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-large-002.xht css-multicol-1/multicol-width-invalid-001-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-negative-001.xht css-multicol-1/multicol-count-002-ref.xht
+HTTP(../../..) == css-multicol-1/multicol-width-small-001.xht css-multicol-1/multicol-width-small-001-ref.xht
+== css-multicol-1/multicol-zero-height-001.xht css-multicol-1/multicol-zero-height-001-ref.xht
 == css-namespaces-3/prefix-001.xml css-namespaces-3/ref-lime-1.xml
 == css-namespaces-3/prefix-002.xml css-namespaces-3/ref-lime-1.xml
 == css-namespaces-3/prefix-003.xml css-namespaces-3/ref-lime-1-generic.xml
 == css-namespaces-3/prefix-004.xml css-namespaces-3/ref-lime-2-generic.xml
 == css-namespaces-3/prefix-005.xml css-namespaces-3/ref-lime-2-generic.xml
 == css-namespaces-3/prefix-006.xml css-namespaces-3/ref-lime-2.xml
 == css-namespaces-3/scope-001.xml css-namespaces-3/ref-lime-1.xml
 == css-namespaces-3/scope-002.xml css-namespaces-3/ref-lime-1.xml