Bug 1362255 Part 2 - Import the tests. r=xidorn
authorLouis Chang <lochang@mozilla.com>
Fri, 09 Jun 2017 10:36:20 +0800
changeset 411237 7c9d96bbc400aa77f5310486162abf6b61344b74
parent 411236 87c849a40f9d8b5c2f54a2f5228827059f43b357
child 411287 1742b1bdadd13a02df95ca690bea9cc42ff40c91
child 411288 646b691852bd9bf6d50e2ca2b14daa85a7f8ecdb
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1362255
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1362255 Part 2 - Import the tests. r=xidorn MozReview-Commit-ID: 3oOqMwXtoOx
layout/reftests/w3c-css/received/css-conditional-3/OWNERS
layout/reftests/w3c-css/received/css-multicol-1/OWNERS
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-005.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-006.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-007.xht
layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-008.xht
layout/reftests/w3c-css/received/css-multicol-1/reference/multicol-basic-005-ref.xht
layout/reftests/w3c-css/received/css-namespaces-3/OWNERS
layout/reftests/w3c-css/received/css-values-3/OWNERS
layout/reftests/w3c-css/received/css-values-3/ch-unit-001.html
layout/reftests/w3c-css/received/css-values-3/ch-unit-002.html
layout/reftests/w3c-css/received/css-values-3/ch-unit-003.html
layout/reftests/w3c-css/received/css-values-3/ch-unit-004.html
layout/reftests/w3c-css/received/css-values-3/reference/ch-unit-001-ref.html
layout/reftests/w3c-css/received/css-values-3/reference/ch-unit-002-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/OWNERS
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-019.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-021.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-022.xht
layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/direction-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vlr-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vlr-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vrl-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vlr-in-htb-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vlr-in-htb-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vrl-in-htb-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vrl-in-htb-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vlr-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vrl-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vrl-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vlr-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vlr-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vrl-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vrl-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-vlr-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/height-width-inline-non-replaced-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-015.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-017.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-025.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-031.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-035.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-037.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-014.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-024.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-030.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-034.xht
layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-036.xht
layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-left-right-vlr-005-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-left-right-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-left-right-vrl-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-left-right-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-top-bottom-vlr-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-top-bottom-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-top-bottom-vrl-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-ltr-top-bottom-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-left-right-vlr-009-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-left-right-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-left-right-vrl-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-left-right-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-top-bottom-vlr-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-top-bottom-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-top-bottom-vrl-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/overconstrained-rel-pos-rtl-top-bottom-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/reference/text-combine-upright-value-single-character.html
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-010-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-011-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-013-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-015-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-015.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-016-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-018-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-019-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-019.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-020-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-021.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-022-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-022.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-023-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-023.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vlr-024.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-010-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-011-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-013-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-015-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-015.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-018-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-019-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-019.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-020-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-021.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-022-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-022.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-023-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-023.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-htb-in-vrl-024.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-005-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vlr-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-005-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-htb-in-vrl-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-005-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vlr-in-htb-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-002-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-002.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-005-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-prct-vrl-in-htb-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-009-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-010-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-011-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-012-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-013-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-015-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-015.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-016-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-018-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-019-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-019.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-020-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-021.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-022-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-022.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-023-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-023.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vlr-in-htb-024.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-001-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-001.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-003-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-004-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-004.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-006-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-006.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-007-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-008-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-008.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-009-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-009.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-010-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-010.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-011-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-011.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-012-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-012.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-013-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-013.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-015-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-015.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-016-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-016.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-018-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-018.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-019-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-019.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-020-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-020.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-021.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-022-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-022.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-023-ref.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-023.xht
layout/reftests/w3c-css/received/css-writing-modes-3/sizing-orthog-vrl-in-htb-024.xht
layout/reftests/w3c-css/received/css-writing-modes-3/support/bg-red-low-left-corn-320x320.png
layout/reftests/w3c-css/received/css-writing-modes-3/support/bg-red-low-rght-corn-320x320.png
layout/reftests/w3c-css/received/css-writing-modes-3/support/bg-red-upp-left-corn-320x320.png
layout/reftests/w3c-css/received/css-writing-modes-3/support/bg-red-upp-rght-corn-320x320.png
layout/reftests/w3c-css/received/css-writing-modes-3/support/text-orientation-012.png
layout/reftests/w3c-css/received/css-writing-modes-3/text-align-vlr-003.xht
layout/reftests/w3c-css/received/css-writing-modes-3/text-align-vlr-005.xht
layout/reftests/w3c-css/received/css-writing-modes-3/text-align-vlr-007.xht
layout/reftests/w3c-css/received/css-writing-modes-3/text-combine-upright-value-all-001.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-combine-upright-value-digits2-001.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-mixed-vlr-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-mixed-vlr-100.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-mixed-vrl-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-mixed-vrl-100.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-sideways-vlr-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-sideways-vlr-100.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-sideways-vrl-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-sideways-vrl-100.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-upright-vlr-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-upright-vlr-100.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-upright-vrl-100-ref.html
layout/reftests/w3c-css/received/css-writing-modes-3/text-orientation-upright-vrl-100.html
layout/reftests/w3c-css/received/css21/reference/ref-filled-green-100px-square.xht
layout/reftests/w3c-css/received/import.log
layout/reftests/w3c-css/received/reftest.list
layout/reftests/w3c-css/received/selectors-4/focus-within-001-ref.html
layout/reftests/w3c-css/received/selectors-4/focus-within-001.html
layout/reftests/w3c-css/received/selectors-4/focus-within-002.html
layout/reftests/w3c-css/received/selectors-4/focus-within-003.html
layout/reftests/w3c-css/received/selectors-4/focus-within-004.html
layout/reftests/w3c-css/received/selectors-4/focus-within-005.html
layout/reftests/w3c-css/received/selectors-4/focus-within-006.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-001-ref.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-001.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-002.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-003.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-004.html
layout/reftests/w3c-css/received/selectors-4/focus-within-shadow-005.html
layout/reftests/w3c-css/received/selectors-4/of-type-selectors-ref.xhtml
layout/reftests/w3c-css/received/selectors-4/of-type-selectors.xhtml
layout/reftests/w3c-css/received/selectors-4/selector-required-ref.html
layout/reftests/w3c-css/received/selectors-4/selector-required.html
layout/reftests/w3c-css/received/selectors-4/selectors-dir-selector-ltr-001.html
layout/reftests/w3c-css/received/selectors-4/selectors-dir-selector-ref.html
layout/reftests/w3c-css/received/selectors-4/selectors-dir-selector-rtl-001.html
layout/reftests/w3c-css/received/selectors4/OWNERS
layout/reftests/w3c-css/received/selectors4/focus-within-001-ref.html
layout/reftests/w3c-css/received/selectors4/focus-within-001.html
layout/reftests/w3c-css/received/selectors4/focus-within-002.html
layout/reftests/w3c-css/received/selectors4/focus-within-003.html
layout/reftests/w3c-css/received/selectors4/focus-within-004.html
layout/reftests/w3c-css/received/selectors4/focus-within-005.html
layout/reftests/w3c-css/received/selectors4/focus-within-006-ref.html
layout/reftests/w3c-css/received/selectors4/focus-within-006.html
layout/reftests/w3c-css/received/selectors4/focus-within-007-ref.html
layout/reftests/w3c-css/received/selectors4/focus-within-007.html
layout/reftests/w3c-css/received/selectors4/focus-within-008.html
layout/reftests/w3c-css/received/selectors4/focus-within-010.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-001-ref.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-001.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-002.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-003.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-004.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-005.html
layout/reftests/w3c-css/received/selectors4/focus-within-shadow-006.html
layout/reftests/w3c-css/received/selectors4/of-type-selectors-ref.xhtml
layout/reftests/w3c-css/received/selectors4/of-type-selectors.xhtml
layout/reftests/w3c-css/received/selectors4/selector-required-ref.html
layout/reftests/w3c-css/received/selectors4/selector-required.html
layout/reftests/w3c-css/received/selectors4/selectors-dir-selector-ltr-001.html
layout/reftests/w3c-css/received/selectors4/selectors-dir-selector-rtl-001.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-conditional-3/OWNERS
@@ -0,0 +1,2 @@
+@dbaron
+@frivoal
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/OWNERS
@@ -0,0 +1,1 @@
+@frivoal
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-005.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 Multi-column Layout Test: -moz-columns as -moz-column-count (basic)</title>
+<link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com"/>
+<link rel="match" href="reference/multicol-basic-005-ref.xht"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#columns"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-count"/>
+<style type="text/css">
+div {
+  margin: 1em auto;
+  background: yellow;
+  border: thin solid black;
+  width: 600px;
+  -moz-columns: 3;
+  -moz-column-gap: 0;
+  -moz-column-rule: none;
+}
+</style>
+</head>
+<body>
+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three -moz-columns with no gap or rule between them.</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-006.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 Multi-column Layout Test: -moz-column-count (basic)</title>
+<link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com"/>
+<link rel="match" href="reference/multicol-basic-005-ref.xht"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-count"/>
+<style type="text/css">
+div {
+  margin: 1em auto;
+  background: yellow;
+  border: thin solid black;
+  width: 600px;
+  -moz-column-count: 3;
+  -moz-column-gap: 0;
+  -moz-column-rule: none;
+}
+</style>
+</head>
+<body>
+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three -moz-columns with no gap or rule between them.</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-007.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 Multi-column Layout Test: -moz-columns as -moz-column-width (basic)</title>
+<link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com"/>
+<link rel="match" href="reference/multicol-basic-005-ref.xht"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#columns"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-width"/>
+<style type="text/css">
+div {
+  margin: 1em auto;
+  background: yellow;
+  border: thin solid black;
+  width: 600px;
+  -moz-columns: 200px;
+  -moz-column-gap: 0;
+  -moz-column-rule: none;
+}
+</style>
+</head>
+<body>
+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three -moz-columns with no gap or rule between them.</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/multicol-basic-008.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 Multi-column Layout Test: -moz-column-width (basic)</title>
+<link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com"/>
+<link rel="match" href="reference/multicol-basic-005-ref.xht"/>
+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-width"/>
+<style type="text/css">
+div {
+  margin: 1em auto;
+  background: yellow;
+  border: thin solid black;
+  width: 600px;
+  -moz-column-width: 200px;
+  -moz-column-gap: 0;
+  -moz-column-rule: none;
+}
+</style>
+</head>
+<body>
+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three -moz-columns with no gap or rule between them.</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-multicol-1/reference/multicol-basic-005-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>multicol-000</title>
+<link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com"/>
+<style type="text/css">
+div {
+  margin: 1em auto;
+  background: yellow;
+  border: thin solid black;
+  width: 600px;
+  -moz-columns: 3;
+  -moz-column-gap: 0;
+  -moz-column-rule: none;
+}
+</style>
+</head>
+<body>
+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three -moz-columns with no gap or rule between them.</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-namespaces-3/OWNERS
@@ -0,0 +1,3 @@
+@plinss
+@dbaron
+@fantasai
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-values-3/OWNERS
@@ -0,0 +1,6 @@
+@frivoal
+@dbaron
+@FremyCompany
+@plinss
+@tabatkins
+@fantasai
--- a/layout/reftests/w3c-css/received/css-values-3/ch-unit-001.html
+++ b/layout/reftests/w3c-css/received/css-values-3/ch-unit-001.html
@@ -3,35 +3,35 @@
 <title>CSS Values and Units Test: support for the ch unit</title>
 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
 <link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths">
 <meta name="flags" content="">
 <link rel="match" href="reference/ch-unit-001-ref.html">
 <meta name="assert" content="The ch unit is equal to the used advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it.">
 <style>
 span {
-	background: green;
-	color: green;
-	top: 0; bottom: 0;
-	position: absolute;
+    background: green;
+    color: green;
+    top: 0; bottom: 0;
+    position: absolute;
 }
 div {
-	background: red;
-	color: red;
-	position: relative;
-	height: 10ch;
-	width: 5ch;
-	float: left;
+    background: red;
+    color: red;
+    position: relative;
+    height: 10ch;
+    width: 5ch;
+    float: left;
 }
 
 div + div {
-	width: auto;
+    width: auto;
 }
 
 div + div span {
-	width: 5ch;
+    width: 5ch;
 }
 </style>
 <body>
-  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
-  <div><span>00000</span></div>
-  <div><span></span>00000</div>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <div><span>00000</span></div>
+    <div><span></span>00000</div>
 </body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-values-3/ch-unit-002.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Values and Units Test: the ch unit in vertical orientation</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths">
+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#block-flow">
+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
+<link rel="match" href="reference/ch-unit-002-ref.html">
+<meta name="assert" content="In vertical upright, the ch unit is equal to the used vertical advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it.">
+<style>
+span {
+    background: green;
+    color: green;
+    left: 0; right: 0;
+    position: absolute;
+}
+div {
+    background: red;
+    color: red;
+    position: relative;
+    height: 5ch;
+    width: 10ch;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+}
+
+div + div {
+    height: auto;
+}
+
+div + div span {
+    height: 5ch;
+}
+</style>
+<body>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <div><span>00000</span></div>
+    <div><span></span>00000</div>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-values-3/ch-unit-003.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Values and Units Test: support for the ch unit</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths">
+<meta name="flags" content="">
+<link rel="match" href="reference/ch-unit-001-ref.html">
+<meta name="assert" content="In vertical mixed, The ch unit is equal to the used horizontal advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it.">
+<style>
+span {
+    background: green;
+    color: green;
+    left: 0; right: 0;
+    position: absolute;
+}
+div {
+    background: red;
+    color: red;
+    position: relative;
+    height: 5ch;
+    width: 10ch;
+    writing-mode: vertical-rl;
+    text-orientation: mixed;
+}
+
+div + div {
+    height: auto;
+}
+
+div + div span {
+    height: 5ch;
+}
+</style>
+<body>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <div><span>00000</span></div>
+    <div><span></span>00000</div>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-values-3/ch-unit-004.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Values and Units Test: support for the ch unit</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths">
+<meta name="flags" content="">
+<link rel="match" href="reference/ch-unit-001-ref.html">
+<meta name="assert" content="In vertical sideways, The ch unit is equal to the used horizontal advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it.">
+<style>
+span {
+    background: green;
+    color: green;
+    left: 0; right: 0;
+    position: absolute;
+}
+div {
+    background: red;
+    color: red;
+    position: relative;
+    height: 5ch;
+    width: 10ch;
+    writing-mode: vertical-rl;
+    text-orientation: sideways;
+}
+
+div + div {
+    height: auto;
+}
+
+div + div span {
+    height: 5ch;
+}
+</style>
+<body>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <div><span>00000</span></div>
+    <div><span></span>00000</div>
+</body>
--- a/layout/reftests/w3c-css/received/css-values-3/reference/ch-unit-001-ref.html
+++ b/layout/reftests/w3c-css/received/css-values-3/reference/ch-unit-001-ref.html
@@ -1,18 +1,11 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>CSS Values and Units Test Reference File</title>
 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
-<meta name="flags" content="">
 <style>
-div {
-	background: green;
-	height: 10ch;
-	width: 10ch;
-	float: left;
-}
-
+svg { width: 10ch; }
 </style>
 <body>
-  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
-  <div></div>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <svg viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="green"></svg>
 </body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-values-3/reference/ch-unit-002-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Values and Units Test Reference File</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<style>
+svg {
+    width: 10ch;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+}
+</style>
+<body>
+    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+    <svg viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="green"></svg>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/OWNERS
@@ -0,0 +1,8 @@
+@kojiishi
+@fantasai
+@hshiozawa
+@myakura
+@snsk
+@r12a
+@plinss
+@upsuper
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'left' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       direction: ltr;
@@ -84,19 +84,17 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-005.xht
@@ -89,19 +89,17 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-007.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-011.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-011.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'right' are 'auto' and 'width' is not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'right' are 'auto' and 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'ltr' must set left to static position and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       direction: ltr;
@@ -83,25 +83,23 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="green-overlapping-test"></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-013.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-013.xht
@@ -88,19 +88,17 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-019.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-019.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-021.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vlr-021.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'left' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       direction: ltr;
@@ -84,25 +84,23 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="green-overlapping-test"></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-004.xht
@@ -89,19 +89,17 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-006.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-010.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-010.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'right' are 'auto', 'width' is not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'right' are 'auto', 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'ltr' must set left to static position and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       direction: ltr;
@@ -83,25 +83,23 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="green-overlapping-test"></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-012.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-012.xht
@@ -88,19 +88,17 @@
         ====================
                 : width of containing block (width of Initial Containing Block)
   */
 
   div#red-overlapped-reference
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-018.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-018.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-020.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/abs-pos-non-replaced-icb-vrl-020.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert" />
 
   <style type="text/css"><![CDATA[
   object#overlapping-green
     {
       height: 116px;
@@ -38,9 +38,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
 
   <div id="red-overlapped-reference"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-018.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-018.xht
@@ -5,17 +5,17 @@
  <head>
 
   <title>CSS Writing Modes Test: 'background-position: left top' and 'vertical-rl' when document root element does not fill viewport width</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#physical-only" title="7.6 Purely Physical Mappings" />
   <link rel="match" href="background-position-vrl-018-ref.xht" />
 
-  <meta content="image interact" name="flags" />
+  <meta content="image" name="flags" />
   <meta content="This test checks that 'background-position: left top' will make background-image start at left side of document root element (even in case there is resizing of the window) because background properties should not be affected by vertical writing-mode." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       background-image: url("support/100x100-red.png");
       background-position: left top;
       background-repeat: repeat-y;
@@ -59,9 +59,9 @@
   The image says:
 
   Test passes if there is a <strong>no red</strong>.
 -->
 
   <div id="reference-overlapping-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-020.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-020.xht
@@ -5,17 +5,17 @@
  <head>
 
   <title>CSS Writing Modes Test: 'background-position: left center' and 'vertical-rl' when document root element does not fill viewport width</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#physical-only" title="7.6 Purely Physical Mappings" />
   <link rel="match" href="background-position-vrl-018-ref.xht" />
 
-  <meta content="image interact" name="flags" />
+  <meta content="image" name="flags" />
   <meta content="This test checks that 'background-position: left center' will make background-image start at left side of document root element (even in case there is resizing of the window) because background properties should not be affected by vertical writing-mode." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       background-image: url("support/100x100-red.png");
       background-position: left center;
       background-repeat: repeat-y;
@@ -59,9 +59,9 @@
   The image says:
 
   Test passes if there is a <strong>no red</strong>.
 -->
 
   <div id="reference-overlapping-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-022.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/background-position-vrl-022.xht
@@ -5,17 +5,17 @@
  <head>
 
   <title>CSS Writing Modes Test: 'background-position: left bottom' and 'vertical-rl' when document root element does not fill viewport width</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#physical-only" title="7.6 Purely Physical Mappings" />
   <link rel="match" href="background-position-vrl-018-ref.xht" />
 
-  <meta content="image interact" name="flags" />
+  <meta content="image" name="flags" />
   <meta content="This test checks that 'background-position: left bottom' will make background-image start at left side of document root element (even in case there is resizing of the window) because background properties should not be affected by vertical writing-mode." name="assert" />
 
   <style type="text/css"><![CDATA[
   html
     {
       background-image: url("support/100x100-red.png");
       background-position: left bottom;
       background-repeat: repeat-y;
@@ -59,9 +59,9 @@
   The image says:
 
   Test passes if there is a <strong>no red</strong>.
 -->
 
   <div id="reference-overlapping-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: baseline-alignment of empty non-replaced inline-block element and 'vertical-rl'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#replaced-baselines" title="4.3 Atomic Inline Baselines" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that the baseline-alignment of an empty inline-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central' and not 'alphabetic'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -43,9 +43,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div>
     <span></span>
     TL
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: baseline-alignment of empty non-replaced inline-block element and 'vertical-rl'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#replaced-baselines" title="4.3 Atomic Inline Baselines" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that the baseline-alignment of an empty inline-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central' and not 'alphabetic'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -43,9 +43,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div>
     TL
     <span></span>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: baseline-alignment of non-empty non-replaced inline-block element and 'vertical-rl'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#replaced-baselines" title="4.3 Atomic Inline Baselines" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that the baseline-alignment of a non-empty inline-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central' and not 'alphabetic'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -41,9 +41,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div>
     <span>FZ</span>
     TL
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/baseline-inline-non-replaced-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: baseline-alignment of non-empty non-replaced inline-block element and 'vertical-rl'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#replaced-baselines" title="4.3 Atomic Inline Baselines" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that the baseline-alignment of a non-empty inline-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central' and not 'alphabetic'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -41,9 +41,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div>
     TL
     <span>FZ</span>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-003.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-lr' table with 'direction: ltr' (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -61,9 +61,9 @@
 
     <tr>
       <td></td> <td></td> <td></td>
     </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-005.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-lr' table with 'direction: ltr' (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -61,9 +61,9 @@
 
     <tr>
       <td></td> <td id="eight"></td> <td></td>
     </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-007.xht
@@ -9,17 +9,17 @@
   <!--
   Original (and horizontal-tb) test is
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-conflict-element-001a.htm
   -->
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -143,9 +143,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-009.xht
@@ -9,17 +9,17 @@
   <!--
   Original (and horizontal-tb) test is
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-conflict-element-001c.htm
   -->
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -144,9 +144,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-011.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-011.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-lr' table with 'direction: rtl' (complex)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -138,9 +138,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-013.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vlr-013.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - cell wins over row, cell wins over rowgroup and cell wins over table (compound)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that, in border-collapsing model, when 'border-style' values and 'border-width' values are identical, then the 'border-color' set on a cell wins over the 'border-color' set on a row (5th table), the 'border-color' set on a cell wins over the 'border-color' set on a row group (tfoot in 4th table, thead in 3rd table, tbody in 2nd table) and the 'border-color' set on a cell wins over the 'border-color' set on a table element (1st table)." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -179,9 +179,9 @@
     </tbody>
 
   </table>
 
 
   <div id="reference-overlapped-red"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-002.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-rl' table with 'direction: ltr' (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -61,9 +61,9 @@
 
     <tr>
       <td></td> <td></td> <td></td>
     </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-004.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-rl' table with 'direction: ltr' (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -61,9 +61,9 @@
 
     <tr>
       <td></td> <td id="eight"></td> <td></td>
     </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-006.xht
@@ -9,17 +9,17 @@
   <!--
   Original (and horizontal-tb) test is
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-conflict-element-001a.htm
   -->
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -143,9 +143,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-008.xht
@@ -9,17 +9,17 @@
   <!--
   Original (and horizontal-tb) test is
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-conflict-element-001c.htm
   -->
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -144,9 +144,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-010.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-010.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - adjacent cells with same border styles in a 'vertical-rl' table with 'direction: rtl' (complex)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -138,9 +138,9 @@
 
       <tr>
           <td id="thirteen"></td> <td id="fourteen"></td> <td id="fifteen"></td> <td id="sixteen"></td>
       </tr>
 
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-012.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/border-conflict-element-vrl-012.xht
@@ -4,17 +4,17 @@
 
  <head>
 
   <title>CSS Writing Modes Test: Border conflict resolution - cell wins over row, cell wins over rowgroup and cell wins over table (compound)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that, in border-collapsing model, when 'border-style' values and 'border-width' values are identical, then the 'border-color' set on a cell wins over the 'border-color' set on a row (5th table), the 'border-color' set on a cell wins over the 'border-color' set on a row group (tfoot in 4th table, thead in 3rd table, tbody in 2nd table) and the 'border-color' set on a cell wins over the 'border-color' set on a table element (1st table)." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -179,9 +179,9 @@
     </tbody>
 
   </table>
 
 
   <div id="reference-overlapped-red"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'caption-side: top' and vertical-lr</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#logical-direction-layout" title="7.4. Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that when 'caption-side' is set to 'top' in a vertical-lr table, then the caption is placed at the block-start side of the table, which is on the lefthand side of such table." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -61,9 +61,9 @@
     <tr>
       <td>T</td><td>D</td>
     </tr>
   </table>
 
   <div id="reference-overlapped-red"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'caption-side: bottom' and vertical-lr</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#logical-direction-layout" title="7.4. Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that when 'caption-side' is set to 'bottom' in a vertical-lr table, then the caption is placed at the block-end side of the table, which is on the righthand side of such table." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -60,9 +60,9 @@
   <table id="test-overlapping-green">
     <caption>CA</caption>
     <tr>
       <td>T</td><td>D</td>
     </tr>
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'caption-side: top' and vertical-rl</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#logical-direction-layout" title="7.4. Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that when 'caption-side' is set to 'top' in a vertical-rl table, then the caption is placed at the block-start side of the table, which is on the righthand side of such table." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -60,9 +60,9 @@
   <table id="test-overlapping-green">
     <caption>CA</caption>
     <tr>
       <td>T</td><td>D</td>
     </tr>
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/caption-side-vrl-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'caption-side: bottom' and vertical-rl</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#logical-direction-layout" title="7.4. Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that when 'caption-side' is set to 'bottom' in a vertical-rl table, then the caption is placed at the block-end side of the table, which is on the lefthand side of such table." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -60,9 +60,9 @@
   <table id="test-overlapping-green">
     <caption>CA</caption>
     <tr>
       <td>T</td><td>D</td>
     </tr>
   </table>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: floated border-collapsing tables (vertical-lr)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that contiguous floated border-collapsing tables in a 'vertical-lr' context do not overlap." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-left: red solid 50px;
@@ -28,19 +28,17 @@
       border-left: green solid 50px;
       padding: 0px;
     }
 
   div#reference-overlapped-red
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
 
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: floated non-border-collapsing tables (vertical-lr)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that contiguous floated non-border-collapsing tables in a 'vertical-lr' context do not overlap." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: separate;
@@ -29,19 +29,17 @@
       border-left: green solid 25px;
       padding: 0px;
     }
 
   div#reference-overlapped-red
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
 
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-007.xht
@@ -8,17 +8,17 @@
   Test inspired by
   http://test.csswg.org/source/css-writing-modes-3/table-progression-vrl-004.html
   -->
 
   <title>CSS Writing Modes Test: vertical-lr - contiguous floated tables and horizontal margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that horizontal margins existing between contiguous floated tables with writing-mode set to 'vertical-lr' are not substracted by the amount of their borders. In this test, there should be an horizontal gap of 50px separating both tables. Margins between 2 floated boxes do not collapse." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: separate;
@@ -46,19 +46,17 @@
     }
 
   div#reference-overlapped
     {
       background-color: red;
       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
       background-repeat: no-repeat;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vlr-009.xht
@@ -8,17 +8,17 @@
   Test inspired by
   http://test.csswg.org/source/css-writing-modes-3/table-progression-vrl-004.html
   -->
 
   <title>CSS Writing Modes Test: vertical-lr - contiguous floated tables and horizontal margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that horizontal margins existing between contiguous floated tables with writing-mode set to 'vertical-lr' are not substracted by the amount of their horizontal padding. In this test, there should be an horizontal gap of 50px separating both tables. Margins between 2 floated boxes do not collapse." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       background-color: green;
@@ -47,19 +47,17 @@
     }
 
   div#reference-overlapped
     {
       background-color: red;
       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
       background-repeat: no-repeat;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: floated border-collapsing tables (vertical-rl)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that contiguous floated border-collapsing tables in a 'vertical-rl' context do not overlap." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: collapse;
@@ -28,19 +28,17 @@
       border-right: green solid 50px;
       padding: 0px;
     }
 
   div#reference-overlapped-red
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
 
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: floated non-border-collapsing tables (vertical-rl)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that contiguous floated non-border-collapsing tables in a 'vertical-rl' context do not overlap." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-right: green solid 25px;
@@ -29,19 +29,17 @@
       border-right: green solid 25px;
       padding: 0px;
     }
 
   div#reference-overlapped-red
     {
       background-color: red;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
 
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-006.xht
@@ -8,17 +8,17 @@
   Test inspired by
   http://test.csswg.org/source/css-writing-modes-3/table-progression-vrl-004.html
   -->
 
   <title>CSS Writing Modes Test: vertical-rl - contiguous floated tables and horizontal margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that horizontal margins existing between contiguous floated tables with writing-mode set to 'vertical-rl' are not substracted by the amount of their borders. In this test, there should be an horizontal gap of 50px separating both tables. Margins between 2 floated boxes do not collapse." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       border-collapse: separate;
@@ -46,19 +46,17 @@
     }
 
   div#reference-overlapped
     {
       background-color: red;
       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
       background-repeat: no-repeat;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/contiguous-floated-table-vrl-008.xht
@@ -8,17 +8,17 @@
   Test inspired by
   http://test.csswg.org/source/css-writing-modes-3/table-progression-vrl-004.html
   -->
 
   <title>CSS Writing Modes Test: vertical-rl - contiguous floated tables and horizontal margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that horizontal margins existing between contiguous floated tables with writing-mode set to 'vertical-rl' are not substracted by the amount of their horizontal padding. In this test, there should be an horizontal gap of 50px separating both tables. Margins between 2 floated boxes do not collapse." name="assert" />
 
   <style type="text/css"><![CDATA[
   table
     {
       background-color: green;
@@ -47,19 +47,17 @@
     }
 
   div#reference-overlapped
     {
       background-color: red;
       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
       background-repeat: no-repeat;
       height: 100px;
-      position: relative;
       width: 100px;
-      z-index: -1;
     }
   ]]></style>
  </head>
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-001.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-001.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: descendant inline with a different 'writing-mode' 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/css-writing-modes-3/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that if an inline box has a different block flow direction than its containing block then its display computes to 'inline-block' in which case its specified width and specified height are not ignored and have to be rendered." name="assert" />
 
   <style type="text/css"><![CDATA[
   span#inner
   {
   background-color: green;
@@ -42,9 +42,9 @@
 
   <div id="test-overlapping-green">
     <span id="outer"><span id="inner">I</span></span>
   </div>
 
   <div id="reference-overlapped-red"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/different-block-flow-dir-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: descendant inline with a different 'writing-mode' 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/css-writing-modes-3/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="" name="flags" />
   <meta content="This test checks that if an inline box has a different block flow direction than its containing block then its display computes to 'inline-block' in which case its specified width and specified height are not ignored and have to be rendered." name="assert" />
 
   <style type="text/css"><![CDATA[
   span#outer
   {
   vertical-align: top;
@@ -48,9 +48,9 @@
 
   <div id="test-overlapping-green">
     <span id="outer"><span id="inner">I</span></span>
   </div>
 
   <div id="reference-overlapped-red"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/direction-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/direction-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and 'direction: ltr'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that when a block box has 'direction' set to 'ltr' in a vertical writing-mode, then inlines boxes are aligned from line-left to line-right." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -39,9 +39,9 @@
 
  <body>
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div>T</div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' and 'clear: right' in 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
 }
@@ -48,9 +48,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>
     <div id="cleared-right"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'clear: left' in 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
 }
@@ -48,9 +48,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-left">L</div>
     <div id="cleared-left"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-007.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'clear: left' in 'vertical-lr' block formating context (intermediate)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that a block container box which has floats will not extend its logical height (it will appear to not be aware of its floats) unless it has a clearing block. This test is important for CSS columnar layout page based on floats." name="assert" />
 
   <style type="text/css"><![CDATA[
   div#wrapper
     {
       background: red url("support/pattern-gr-gr-100x100.png");
@@ -51,9 +51,9 @@
     <div id="container">
       <div class="floated-left"></div>
       <div class="floated-left"></div>
       <div id="clearing"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vlr-009.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right', 'float: left' and 'clear: both' in 'vertical-lr' block formating context (intermediate)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that a block container box which has floats will not extend its logical height (it will appear to not be aware of its floats) unless it has a clearing block. This test is important for CSS columnar layout page based on floats." name="assert" />
 
   <style type="text/css"><![CDATA[
   div#wrapper
     {
       background: red url("support/pattern-gr-gr-100x100.png");
@@ -58,9 +58,9 @@
     <div id="container">
       <div id="floated-right"></div>
       <div id="clearing"></div>
       <div id="floated-left"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' and 'clear: right' in 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
 }
@@ -48,9 +48,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>
     <div id="cleared-right"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'clear: left' in 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
 }
@@ -48,9 +48,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-left">L</div>
     <div id="cleared-left"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-006.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'clear: left' in 'vertical-rl' block formating context (intermediate)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that a block container box which has floats will not extend its logical height (it will appear to not be aware of its floats) unless it has a clearing block. This test is important for CSS columnar layout page based on floats." name="assert" />
 
   <style type="text/css"><![CDATA[
   div#wrapper
     {
       background: red url("support/pattern-rg-rg-100x100.png");
@@ -51,9 +51,9 @@
     <div id="container">
       <div class="floated-left"></div>
       <div class="floated-left"></div>
       <div id="clearing"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-clear-vrl-008.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right', 'float: left' and 'clear: both' in 'vertical-rl' block formating context (intermediate)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="image" name="flags" />
   <meta content="This test checks that a block container box which has floats will not extend its logical height (it will appear to not be aware of its floats) unless it has a clearing block. This test is important for CSS columnar layout page based on floats." name="assert" />
 
   <style type="text/css"><![CDATA[
   div#wrapper
     {
       background: red url("support/pattern-rg-rg-100x100.png");
@@ -58,9 +58,9 @@
     <div id="container">
       <div id="floated-right"></div>
       <div id="clearing"></div>
       <div id="floated-left"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vlr-011.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vlr-011.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: contiguous left-floating boxes with 'writing-mode' set to 'vertical-lr'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks the flow of contiguous left-floated boxes with 'writing-mode' set to 'vertical-lr'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -51,9 +51,9 @@
 
   <div class="floated-left">lmnor</div>
 
   <div class="floated-left">rstuv</div>
 
   <div class="floated-left">wxyzz</div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vrl-010.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-contiguous-vrl-010.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: contiguous left-floating boxes with 'writing-mode' set to 'vertical-rl'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks the flow of contiguous left-floated boxes with 'writing-mode' set to 'vertical-rl'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -51,9 +51,9 @@
 
   <div class="floated-left">lmnor</div>
 
   <div class="floated-left">rstuv</div>
 
   <div class="floated-left">wxyzz</div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vlr-002-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>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-horiz
+    {
+      background-color: blue;
+      color: white;
+      left: 16px;
+      position: absolute;
+      writing-mode: horizontal-tb;
+    }
+
+  span
+    {
+      position: relative;
+      top: 40px;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">
+    <div id="orthog-horiz">HTB floated left</div>
+    <span>VLR parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vlr-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>CSS Writing Modes Test: orthogonal floated left in vertical-lr context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-lft-orthog-htb-in-vlr-002-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the horizontal position of an orthogonal floated left block box inside a vertical-lr parent. The orthogonal floated left block box must be put as far to the left as possible inside the vertical-lr line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-htb-float-left
+    {
+      background-color: blue;
+      color: white;
+      float: left;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">VLR parent
+    <div id="orthog-htb-float-left">HTB floated left</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vrl-002-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>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-rl;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-horiz
+    {
+      background-color: blue;
+      color: white;
+      right: 16px;
+      position: absolute;
+      writing-mode: horizontal-tb;
+    }
+
+  span
+    {
+      position: relative;
+      top: 40px;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">
+    <div id="orthog-horiz">HTB floated left</div>
+    <span>VRL parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-htb-in-vrl-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>CSS Writing Modes Test: orthogonal floated left in vertical-rl context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-lft-orthog-htb-in-vrl-002-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the horizontal position of an orthogonal floated left block box inside an vertical-rl parent. The orthogonal floated left block box must be put as far to the right as possible inside the vertical-rl line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-rl;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-htb-float-left
+    {
+      background-color: blue;
+      color: white;
+      float: left;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">VRL parent
+    <div id="orthog-htb-float-left">HTB floated left</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vlr-in-htb-002-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>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vert
+    {
+      background-color: blue;
+      color: white;
+      left: 16px;
+      position: absolute;
+      writing-mode: vertical-lr;
+    }
+
+  span
+    {
+      left: 40px;
+      position: relative;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">
+    <div id="orthog-vert">VLR floated left</div>
+    <span>HTB parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vlr-in-htb-002.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 Writing Modes Test: orthogonal floated left in horizontal-tb context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-lft-orthog-vlr-in-htb-002-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the vertical position of an orthogonal floated left block box inside an horizontal-tb parent. The orthogonal floated left block box must be put as high as possible inside the horizontal-tb line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vlr-float-left
+    {
+      background-color: blue;
+      color: white;
+      float: left;
+      writing-mode: vertical-lr;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">HTB parent
+    <div id="orthog-vlr-float-left">VLR floated left</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vrl-in-htb-002-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>
+
+  <meta name="DC.date.created" content="2016-12-14T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vert
+    {
+      background-color: blue;
+      color: white;
+      left: 16px;
+      position: absolute;
+      writing-mode: vertical-rl;
+    }
+
+  span
+    {
+      left: 40px;
+      position: relative;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">
+    <div id="orthog-vert">VRL floated left</div>
+    <span>HTB parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-lft-orthog-vrl-in-htb-002.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 Writing Modes Test: orthogonal floated left in horizontal-tb context</title>
+
+  <meta name="DC.date.created" content="2016-11-08T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-lft-orthog-vrl-in-htb-002-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the vertical position of an orthogonal floated left block box inside an horizontal-tb parent. The orthogonal floated left block box must be put as high as possible inside the horizontal-tb line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vrl-float-left
+    {
+      background-color: blue;
+      color: white;
+      float: left;
+      writing-mode: vertical-rl;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">HTB parent
+    <div id="orthog-vrl-float-left">VRL floated left</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vlr-003-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>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-horiz
+    {
+      background-color: blue;
+      bottom: 16px;
+      color: white;
+      left: 16px;
+      position: absolute;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">
+    <div id="orthog-horiz">HTB floated right</div>
+    <span>VLR parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vlr-003.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 Writing Modes Test: orthogonal floated right in vertical-lr context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-rgt-orthog-htb-in-vlr-003-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the horizontal position of an orthogonal floated right block box inside a vertical-lr parent. The orthogonal floated right block box must be put as far to the left as possible inside the vertical-lr line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-htb-float-right
+    {
+      background-color: blue;
+      color: white;
+      float: right;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">VLR parent
+    <div id="orthog-htb-float-right">HTB floated right</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vrl-003-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>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-rl;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-horiz
+    {
+      background-color: blue;
+      bottom: 16px;
+      color: white;
+      position: absolute;
+      right: 16px;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">
+    <div id="orthog-horiz">HTB floated right</div>
+    <span>VRL parent</span>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-htb-in-vrl-003.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 Writing Modes Test: orthogonal floated right in vertical-rl context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-rgt-orthog-htb-in-vrl-003-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the horizontal position of an orthogonal floated right block box inside a vertical-rl parent. The orthogonal floated right block box must be put as far to the right as possible inside the vertical-rl line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-rl;
+    }
+
+  div#vertical-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-htb-float-right
+    {
+      background-color: blue;
+      color: white;
+      float: right;
+      writing-mode: horizontal-tb;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="vertical-parent">VRL parent
+    <div id="orthog-htb-float-right">HTB floated right</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vlr-in-htb-003-ref.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 Reftest Reference</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vert
+    {
+      background-color: blue;
+      color: white;
+      right: 16px;
+      position: absolute;
+      writing-mode: vertical-lr;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">
+    <div id="orthog-vert">VLR floated right</div>
+    HTB parent
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vlr-in-htb-003.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 Writing Modes Test: orthogonal floated right in horizontal-tb context</title>
+
+  <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-rgt-orthog-vlr-in-htb-003-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the vertical position of an orthogonal floated right block box inside an horizontal-tb parent. The orthogonal floated right block box must be put as high as possible inside the horizontal-tb line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vlr-float-right
+    {
+      background-color: blue;
+      color: white;
+      float: right;
+      writing-mode: vertical-lr;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">HTB parent
+    <div id="orthog-vlr-float-right">VLR floated right</div>
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vrl-in-htb-003-ref.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 Reftest Reference</title>
+
+  <meta name="DC.date.created" content="2016-12-14T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+  <meta content="" name="flags" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vert
+    {
+      background-color: blue;
+      color: white;
+      right: 16px;
+      position: absolute;
+      writing-mode: vertical-rl;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">
+    <div id="orthog-vert">VRL floated right</div>
+    HTB parent
+  </div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-rgt-orthog-vrl-in-htb-003.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 Writing Modes Test: orthogonal floated right in horizontal-tb context</title>
+
+  <meta name="DC.date.created" content="2016-11-08T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" />
+
+  <!--
+  Inspired by the test in
+  http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#auto-multicol" title="7.3.2 Auto-sizing Block Containers in Orthogonal Flows" />
+  <link rel="match" href="float-rgt-orthog-vrl-in-htb-003-ref.xht" />
+
+  <meta content="" name="flags" />
+  <meta content="This test checks the vertical position of an orthogonal floated right block box inside an horizontal-tb parent. The orthogonal floated right block box must be put as high as possible inside the horizontal-tb line box." name="assert" />
+
+  <style type="text/css"><![CDATA[
+  div#horiz-parent
+    {
+      border: orange solid 8px;
+      font-size: 32px;
+      line-height: 1.25; /* computes to 40px */
+    }
+
+  div#orthog-vrl-float-right
+    {
+      background-color: blue;
+      color: white;
+      float: right;
+      writing-mode: vertical-rl;
+    }
+  ]]></style>
+
+ </head>
+
+ <body>
+
+  <div id="horiz-parent">HTB parent
+    <div id="orthog-vrl-float-right">VRL floated right</div>
+  </div>
+
+ </body>
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'vertical-lr' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -50,9 +50,9 @@
 
   <div class="floated-left">
     <div class="left-border"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'vertical-lr' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -55,9 +55,9 @@
 
   <div class="floated-left">
     <div class="left-border right-border"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-007.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'vertical-lr' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -65,9 +65,9 @@
 
   <div class="floated-left">
     <div class="left-border right-border left-padding right-padding"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vlr-009.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width (height: auto) in 'vertical-lr' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' applying on logical width must not reduce content but size to fit to its content. In this test, 'L' and 'R' glyphs must be rendered." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -55,9 +55,9 @@
 
     <div class="inner-green-border-bottom">R</div>
 
   </div>
 
   <div id="reference-red-overlapped"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'vertical-rl' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -50,9 +50,9 @@
 
   <div class="floated-left">
     <div class="left-border"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test:  'float' and 'shrink-to-fit' logical width in 'vertical-rl' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -55,9 +55,9 @@
 
   <div class="floated-left">
     <div class="left-border right-border"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-006.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'vertical-rl' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -65,9 +65,9 @@
 
   <div class="floated-left">
     <div class="left-border right-border left-padding right-padding"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-008.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width (height: auto) in 'vertical-rl' context</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' applying on logical width must not reduce content but size to fit to its content. In this test, 'L' and 'R' glyphs must be rendered." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -55,9 +55,9 @@
 
     <div class="inner-green-border-bottom">R</div>
 
   </div>
 
   <div id="reference-red-overlapped"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-vlr-016.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-shrink-to-fit-vrl-vlr-016.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width (16 sub-tests)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that 'shrink-to-fit' rule (CSS2.1, §10.3.5) is applied onto logical width in vertical writing-modes. This test thoroughly checks systematically the 16 combinations of 'writing-mode: vertical-rl', 'writing-mode: vertical-lr', with 'float: left', with 'float: right' and with left and/or right border(s). Not tested here is 'padding-left' and 'padding-right'." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -133,9 +133,9 @@
 
   <div class="test floated-left vrl">
     <div class="right-border"></div>
   </div>
 
   <div id="reference-overlapped-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated right box in a containing block with 'writing-mode' set to 'vertical-lr' will be floated at the line-right side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>A
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-005.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-005.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated right box in a containing block with 'writing-mode' set to 'vertical-lr' will be floated at the line-right side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">A
     <div id="floated-right">R</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-007.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-007.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box in a containing block with 'writing-mode' set to 'vertical-lr' will be floated at the line-left side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">A
     <div id="floated-left">L</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-009.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box in a containing block with 'writing-mode' set to 'vertical-lr' will be floated at the line-left side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-left">L</div>A
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-011.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-011.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'float: right' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box and a floated right box in a containing block with 'writing-mode' set to 'vertical-lr' will be respectively floated at the line-left side of its line box and floated at line-right of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -48,9 +48,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>A B <div id="floated-left">L</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-013.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vlr-013.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'float: right' in a 'vertical-lr' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box and a floated right box in a containing block with 'writing-mode' set to 'vertical-lr' will be respectively floated at the line-left side of its line box and floated at line-right of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -48,9 +48,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     A <div id="floated-left">L</div> <div id="floated-right">R</div> B
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated right box in a containing block with 'writing-mode' set to 'vertical-rl' will be floated at the line-right side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>A
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-004.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-004.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: right' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated right box in a containing block with 'writing-mode' set to 'vertical-rl' will be floated at the line-right side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">A
     <div id="floated-right">R</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-006.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-006.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box in a containing block with 'writing-mode' set to 'vertical-rl' will be floated at the line-left side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">A
     <div id="floated-left">L</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-008.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box in a containing block with 'writing-mode' set to 'vertical-rl' will be floated at the line-left side of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -42,9 +42,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-left">L</div>A
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-010.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-010.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'float: right' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box and a floated right box in a containing block with 'writing-mode' set to 'vertical-rl' will be respectively floated at the line-left side of its line box and floated at line-right of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -48,9 +48,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="floated-right">R</div>A B <div id="floated-left">L</div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-012.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/float-vrl-012.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'float: left' and 'float: right' in a 'vertical-rl' block formating context (basic)</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta content="This test checks that a floated left box and a floated right box in a containing block with 'writing-mode' set to 'vertical-rl' will be respectively floated at the line-left side of its line box and floated at line-right of its line box." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -48,9 +48,9 @@
 
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     A <div id="floated-left">L</div> <div id="floated-right">R</div> B
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/height-width-inline-non-replaced-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/height-width-inline-non-replaced-vlr-003.xht
@@ -5,17 +5,17 @@
  <head>
 
   <title>CSS Writing Modes Test: height and width - inline non-replaced element in vertical writing-mode</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
   <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#inline-width" title="10.3.1 Inline, non-replaced elements" />
   <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#inline-non-replaced" title="10.6.1 Inline, non-replaced elements" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem" name="flags" />
   <meta content="This test checks that height and width declarations do not apply to inline non-replaced elements in vertical writing-modes." name="assert" />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -56,9 +56,9 @@
 
   <div id="block">
     <div id="inline">A</div>
   </div>
 
   <div id="overlapping-green"></div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-003.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-003.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - maximum of 2 adjoining margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-002.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -66,9 +66,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="leftmost"></div>
     <div id="rightmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-009.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-009.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - adjoining margins of non-siblings or ancestors</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-005.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -66,9 +66,9 @@
   <div id="wrapper">
     <div>
       <div id="leftmost"></div>
     </div>
     <div id="rightmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-011.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-011.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - floated elements do not collapse margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-006.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -67,9 +67,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="leftmost"></div>
     <div id="rightmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-015.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-015.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - elements with 'overflow' set to 'visible'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-008.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -68,9 +68,9 @@
 
   <div id="wrapper">
     <div id="overflow">
       <div id="nested"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-017.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-017.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - elements with 'overflow' set to 'hidden'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted and modified from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -66,9 +66,9 @@
 
   <div id="wrapper">
     <div id="overflow">
       <div id="nested"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-025.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-025.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - collapse through empty siblings</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-016.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -57,9 +57,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div class="widthless"></div>
     <div class="widthless"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-031.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-031.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - collapse through sibling</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta name="assert" content="This test checks that horizontal margins of boxes can collapse through a sibling box whose left and right margins collapse in 'vertical-lr' writing-mode." />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -61,9 +61,9 @@
 
   <div id="wrapper">
     <div id="left-most-sibling"></div>
     <div id="middle-sibling"></div>
     <div id="right-most-sibling"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-035.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-035.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - left margin of a block collapses with left margin of its first child</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-017.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -64,9 +64,9 @@
 
   <div id="wrapper">
     <div id="parent">
       <div id="first-child"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-037.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vlr-037.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-lr' and margin collapsing - right margin of a block collapses with right margin of its last child</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
   -->
 
   <meta content="ahem image" name="flags" />
@@ -68,9 +68,9 @@
     <div id="parent">
       <div id="widthless-child"></div>
       <div id="last-child"></div>
     </div>
     <div id="following-parent"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-002.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-002.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - maximum of 2 adjoining margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-002.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -66,9 +66,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="rightmost"></div>
     <div id="leftmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-008.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-008.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - adjoining margins of non-siblings or ancestors</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-005.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -66,9 +66,9 @@
   <div id="wrapper">
     <div>
       <div id="rightmost"></div>
     </div>
     <div id="leftmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-010.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-010.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - floated elements do not collapse margins</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-006.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -67,9 +67,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div id="rightmost"></div>
     <div id="leftmost"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-014.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-014.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - elements with 'overflow' set to 'visible'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-008.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -68,9 +68,9 @@
 
   <div id="wrapper">
     <div id="overflow">
       <div id="nested"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-016.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-016.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - elements with 'overflow' set to 'hidden'</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted and modified from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -65,9 +65,9 @@
 
   <div id="wrapper">
     <div id="overflow">
       <div id="nested"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-024.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-024.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - collapse through empty siblings</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-016.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -57,9 +57,9 @@
   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
 
   <div id="wrapper">
     <div class="widthless"></div>
     <div class="widthless"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-030.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-030.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - collapse through sibling</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <meta content="ahem image" name="flags" />
   <meta name="assert" content="This test checks that horizontal margins of boxes can collapse through a sibling box whose left and right margins collapse in 'vertical-rl' writing-mode." />
 
 <style type="text/css"><![CDATA[
 @font-face {
   font-family: Ahem;
   src: url("../../../fonts/Ahem.ttf");
@@ -61,9 +61,9 @@
 
   <div id="wrapper">
     <div id="right-most-sibling"></div>
     <div id="middle-sibling"></div>
     <div id="left-most-sibling"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-034.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-034.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - right margin of a block collapses with right margin of its first child</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   Test adapted from
   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-017.htm
 
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
@@ -64,9 +64,9 @@
 
   <div id="wrapper">
     <div id="parent">
       <div id="first-child"></div>
     </div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
--- a/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-036.xht
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/margin-collapse-vrl-036.xht
@@ -3,17 +3,17 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
 
   <title>CSS Writing Modes Test: 'vertical-rl' and margin collapsing - left margin of a block collapses with left margin of its last child</title>
 
   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
-  <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
+  <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
 
   <!--
   "
   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
   "
   -->
 
   <meta content="ahem image" name="flags" />
@@ -68,9 +68,9 @@
     <div id="parent">
       <div id="widthless-child"></div>
       <div id="last-child"></div>
     </div>
     <div id="following-parent"></div>
   </div>
 
  </body>
-</html>
\ No newline at end of file
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vlr-003.xht
@@ -0,0 +1,159 @@
+<!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 Writing Modes Test: non-replaced block in normal flow with 'direction: ltr' in vertical-lr (overconstrained)</title>
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
+  <link rel="match" href="abs-pos-non-replaced-vlr-007-ref.xht" />
+
+  <meta name="flags" content="ahem image" />
+  <meta name="assert" content="This test checks that when an inline dimension of a non-replaced block in normal flow is over-constrained, the inline-end margin is dropped and recalculated so that the equation involving inline-size is balanced; such equation takes under account the inline's direction (ltr or rtl). In this test, the inline-end margin (physical margin-bottom) is recalculated." />
+
+  <!--
+  "
+  the margin that is dropped when a box’s inline dimension is over-constrained is the end margin as determined by the writing mode of the containing block.
+  "
+  7.4 Flow-Relative Mappings
+  http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
+
+  "
+  'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block
+
+  If all of the above have a computed value other than 'auto', the values are said to be "over-constrained" and one of the used values will have to be different from its computed value. If the 'direction' property of the containing block has the value 'ltr', the specified value of 'margin-right' is ignored and the value is calculated so as to make the equality true. If the value of 'direction' is 'rtl', this happens to 'margin-left' instead.
+  "
+  CSS 2.1, section 10.3.3 Block-level, non-replaced elements in normal flow
+  http://www.w3.org/TR/CSS21/visudet.html#blockwidth
+  -->
+
+  <meta name="DC.date.created" content="2015-10-16T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-18T09:54:03+11:00" scheme="W3CDTF" />
+
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  body#containing-block
+    {
+      background-image: url("support/bg-red-3col-3row-320x320.png");
+      background-position: 198px 8px;
+      /* first value represents the horizontal position and the second represents the vertical position */
+
+      /*
+         16px (p's margin-left)
+     +
+        246px (img's width)
+     +
+         16px (p's margin-right)
+      ========
+        278px
+     -
+         80px (1 column of 80px)
+      ========
+        198px
+      */
+      background-repeat: no-repeat;
+      direction: ltr;
+      height: 320px;
+      margin: 8px;
+    }
+
+  p
+    {
+      margin-left: 16px;
+      margin-right: 16px;
+    }
+
+  div
+    {
+      background-color: green;
+      margin-top: 160px;
+      border-top: green solid 20px;
+      padding-top: 20px;
+      height: 0px;
+      padding-bottom: 20px;
+      border-bottom: green solid 20px;
+      margin-bottom: -160px;
+
+      margin-left: 96px; /* 80px + 16px necessary so that we can reuse an already created and available reference file */
+      width: 80px;
+    }
+
+/*
+"
+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
+"
+7.1 Principles of Layout in Vertical Writing Modes
+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
+
+So here, *-top and *-bottom properties are input into the §10.3.3 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
+
+'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' = height of containing block
+
+So:
+
+     160px : margin-top
+  +
+      20px : border-top-width
+  +
+      20px : padding-top
+  +
+       0px : height
+  +
+      20px : padding-bottom
+  +
+      20px : border-bottom-width
+  +
+    -160px : margin-bottom
+   ========================
+      80px : while the height of containing block of div is 320px
+
+So, here, the specified value of 'margin-bottom' is ignored and the value is calculated so as to make the equality true
+
+     160px : margin-top
+  +
+      20px : border-top-width
+  +
+      20px : padding-top
+  +
+       0px : height
+  +
+      20px : padding-bottom
+  +
+      20px : border-bottom-width
+  +
+   (solve) : margin-bottom
+   ========================
+     320px : height of containing block
+
+And so computed margin-bottom value must be 80px .
+*/
+
+  ]]></style>
+
+ </head>
+
+ <body id="containing-block">
+
+  <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
+  <!--
+  The image says:
+  Test passes if there is a filled
+  green square and <strong>no red</strong>.
+  -->
+
+  <div></div>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/received/css-writing-modes-3/normal-flow-overconstrained-vlr-005.xht
@@ -0,0 +1,160 @@
+<!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 Writing Modes Test: non-replaced block in normal flow with 'direction: rtl' in vertical-lr (overconstrained)</title>
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+  <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
+  <link rel="match" href="abs-pos-non-replaced-vlr-013-ref.xht" />
+
+  <meta name="flags" content="ahem image" />
+  <meta name="assert" content="This test checks that when an inline dimension of a non-replaced block in normal flow is over-constrained, the inline-end margin is dropped and recalculated so that the equation involving inline-size is balanced; such equation takes under account the inline's direction (ltr or rtl). In this test, the inline-end margin (physical margin-top) is recalculated." />
+
+  <!--
+  "
+  the margin that is dropped when a box’s inline dimension is over-constrained is the end margin as determined by the writing mode of the containing block.
+  "
+  7.4 Flow-Relative Mappings
+  http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
+
+  "
+  'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block
+
+  If all of the above have a computed value other than 'auto', the values are said to be "over-constrained" and one of the used values will have to be different from its computed value. If the 'direction' property of the containing block has the value 'ltr', the specified value of 'margin-right' is ignored and the value is calculated so as to make the equality true. If the value of 'direction' is 'rtl', this happens to 'margin-left' instead.
+  "
+  CSS 2.1, section 10.3.3 Block-level, non-replaced elements in normal flow
+  http://www.w3.org/TR/CSS21/visudet.html#blockwidth
+  -->
+
+  <meta name="DC.date.created" content="2015-10-16T09:54:03+11:00" scheme="W3CDTF" />
+  <meta name="DC.date.modified" content="2017-02-18T09:54:03+11:00" scheme="W3CDTF" />
+
+<style type="text/css"><![CDATA[
+@font-face {
+  font-family: Ahem;
+  src: url("../../../fonts/Ahem.ttf");
+}
+]]></style>
+  <style type="text/css"><![CDATA[
+  html
+    {
+      writing-mode: vertical-lr;
+    }
+
+  body#containing-block
+    {
+      background-image: url("support/bg-red-3col-2row-320x320.png");
+      background-position: 198px 8px;
+      /* first value represents the horizontal position and the second represents the vertical position */
+
+      /*
+         16px (p's margin-left)
+     +
+        246px (img's width)
+     +
+         16px (p's margin-right)
+      ========
+        278px
+     -
+         80px (1 column of 80px)
+      ========
+        198px
+      */
+      background-repeat: no-repeat;
+      direction: rtl;
+      height: 320px;
+      margin: 8px;
+    }
+
+  p
+    {
+      direction: ltr;
+      margin-left: 16px;
+      margin-right: 16px;
+    }
+
+  div
+    {
+      background-color: green;
+      margin-top: 160px;
+      border-top: green solid 20px;
+      padding-top: 20px;</