Bug 1258916 part 12 - Remove some of duplicate writing modes tests in tree. r?jfkthame draft
authorXidorn Quan <me@upsuper.org>
Fri, 11 Nov 2016 20:41:42 +1100
changeset 441095 9d599d4ebe5793a51c832097a7f1f254f78c43ca
parent 441094 e7eac296f7ceeccc8c29f0423fdc93ffeeb57054
child 537492 5cdce6400c8658c646ed3e4f3e4a14daea7bed42
push id36356
push userxquan@mozilla.com
push dateFri, 18 Nov 2016 11:41:49 +0000
reviewersjfkthame
bugs1258916
milestone53.0a1
Bug 1258916 part 12 - Remove some of duplicate writing modes tests in tree. r?jfkthame MozReview-Commit-ID: nebe2a6lFe
layout/reftests/writing-mode/1172774-percent-horizontal-ref.html
layout/reftests/writing-mode/1172774-percent-margin-1.html
layout/reftests/writing-mode/1172774-percent-margin-2.html
layout/reftests/writing-mode/1172774-percent-margin-3.html
layout/reftests/writing-mode/1172774-percent-margin-4.html
layout/reftests/writing-mode/1172774-percent-padding-1.html
layout/reftests/writing-mode/1172774-percent-padding-2.html
layout/reftests/writing-mode/1172774-percent-padding-3.html
layout/reftests/writing-mode/1172774-percent-padding-4.html
layout/reftests/writing-mode/1172774-percent-vertical-ref.html
layout/reftests/writing-mode/abspos/reftest-stylo.list
layout/reftests/writing-mode/abspos/reftest.list
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-003-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-003.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-005-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-005.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-007-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-007.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-009-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-009.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-011-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-011.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-013-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-013.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-015-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-015.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-017-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-017.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-019-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-019.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-021-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-021.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-023-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-023.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-025-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-025.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-027-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-027.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-029-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-029.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-031-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-031.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-033-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-033.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-035-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-035.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-037-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-037.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-039-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-039.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-041-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-041.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-043-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-043.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-045-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-045.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-047-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-047.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-049-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-049.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-051-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-051.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-053-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-053.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-055-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-055.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-057-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-057.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-059-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-059.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-061-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-061.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-063-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-063.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-065-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-065.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-067-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-067.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-069-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-069.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-071-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-071.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-073-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-073.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-075-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-075.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-077-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-077.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-079-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-079.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-081-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-081.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-083-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-083.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-085-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-085.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-087-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-087.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-089-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-089.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-091-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-091.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-093-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-093.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-095-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-095.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-097-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-097.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-002-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-002.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-004-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-004.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-006-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-006.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-008-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-008.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-010-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-010.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-012-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-012.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-014-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-014.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-016-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-016.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-018-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-018.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-020-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-020.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-022-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-022.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-024-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-024.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-026-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-026.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-028-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-028.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-030-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-030.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-032-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-032.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-034-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-034.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-036-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-036.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-038-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-038.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-040-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-040.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-042-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-042.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-044-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-044.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-046-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-046.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-048-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-048.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-050-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-050.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-052-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-052.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-054-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-054.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-056-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-056.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-058-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-058.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-060-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-060.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-062-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-062.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-064-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-064.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-066-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-066.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-068-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-068.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-070-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-070.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-072-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-072.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-074-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-074.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-076-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-076.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-078-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-078.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-080-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-080.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-082-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-082.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-084-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-084.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-086-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-086.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-088-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-088.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-090-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-090.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-092-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-092.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-094-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-094.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-096-ref.xht
layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-096.xht
layout/reftests/writing-mode/abspos/support/bg-red-2col-2row-320x320.png
layout/reftests/writing-mode/abspos/support/bg-red-2col-3row-320x320.png
layout/reftests/writing-mode/abspos/support/bg-red-3col-2row-320x320.png
layout/reftests/writing-mode/abspos/support/bg-red-3col-3row-320x320.png
layout/reftests/writing-mode/abspos/support/pass-cdts-abs-pos-non-replaced.png
layout/reftests/writing-mode/blue-yellow-165w-206h.png
layout/reftests/writing-mode/blue-yellow-206w-165h.png
layout/reftests/writing-mode/reftest-stylo.list
layout/reftests/writing-mode/reftest.list
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-horizontal-ref.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
- </head>
- <body>
-  <div id="reference"><img src="blue-yellow-206w-165h.png" width="206" height="165" alt="Image download support must be enabled"></div>
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-margin-1.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the margin are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      width: 200px;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      height: 3px;
-      margin: 0.5em auto;
-    }
-
-  div.inner
-    {
-      background-color: yellow;
-      height: 50px;
-      width: 50px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div.foo
-    {
-      margin-bottom: 2.5%; /* 5px */
-      margin-left: 50%; /* 100px */
-      margin-right: 25%; /* 50px */
-      margin-top: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      margin-bottom: 10%;
-      margin-left: 25%;
-      margin-right: 50%;
-      margin-top: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner foo"></div>
-    <hr>
-    <div class="inner bar"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-margin-2.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-lr'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the margin are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      width: 200px;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      height: 3px;
-      margin: 0.5em auto;
-    }
-
-  div.inner
-    {
-      background-color: yellow;
-      height: 50px;
-      width: 50px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div.foo
-    {
-      margin-bottom: 2.5%; /* 5px */
-      margin-left: 50%; /* 100px */
-      margin-right: 25%; /* 50px */
-      margin-top: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      margin-bottom: 10%;
-      margin-left: 25%;
-      margin-right: 50%;
-      margin-top: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner foo"></div>
-    <hr>
-    <div class="inner bar"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-margin-3.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the margin are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-rl'. In this test, div.outer's computed 'writing-mode' value is 'vertical-rl' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      height: 200px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      width: 3px;
-      margin: auto 0.5em;
-    }
-
-  div.inner
-    {
-      background-color: yellow;
-      height: 50px;
-      width: 50px;
-      -ah-writing-mode: horizontal-tb;
-      -webkit-writing-mode: horizontal-tb;
-      writing-mode: lr-tb; /* IE11 */
-      writing-mode: horizontal-tb;
-    }
-
-  div.foo
-    {
-      margin-left: 2.5%; /* 5px */
-      margin-top: 50%; /* 100px */
-      margin-bottom: 25%; /* 50px */
-      margin-right: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      margin-left: 10%;
-      margin-top: 25%;
-      margin-bottom: 50%;
-      margin-right: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner foo"></div>
-    <hr>
-    <div class="inner bar"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-margin-4.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-lr'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the margin are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-lr'. In this test, div.outer's computed 'writing-mode' value is 'vertical-lr' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      height: 200px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      width: 3px;
-      margin: auto 0.5em;
-    }
-
-  div.inner
-    {
-      background-color: yellow;
-      height: 50px;
-      width: 50px;
-      -ah-writing-mode: horizontal-tb;
-      -webkit-writing-mode: horizontal-tb;
-      writing-mode: lr-tb; /* IE11 */
-      writing-mode: horizontal-tb;
-    }
-
-  div.foo
-    {
-      margin-left: 2.5%; /* 5px */
-      margin-top: 50%; /* 100px */
-      margin-bottom: 25%; /* 50px */
-      margin-right: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      margin-left: 10%;
-      margin-top: 25%;
-      margin-bottom: 50%;
-      margin-right: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner bar"></div>
-    <hr>
-    <div class="inner foo"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-padding-1.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the padding are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      width: 200px;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      height: 3px;
-      margin: 3px auto;
-    }
-
-  div.inner
-    {
-      background-color: transparent;
-      height: 50px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div.foo
-    {
-      padding-bottom: 2.5%; /* 5px */
-      padding-left: 50%; /* 100px */
-      padding-right: 25%; /* 50px */
-      padding-top: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      padding-bottom: 10%;
-      padding-left: 25%;
-      padding-right: 50%;
-      padding-top: 2.5%;
-    }
-  </style>
- </head>
- <body>
-  <div class="outer">
-    <div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-    <hr>
-    <div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-padding-2.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the padding are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      width: 200px;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      height: 3px;
-      margin: 3px auto;
-    }
-
-  div.inner
-    {
-      background-color: transparent;
-      height: 50px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div.foo
-    {
-      padding-bottom: 2.5%; /* 5px */
-      padding-left: 50%; /* 100px */
-      padding-right: 25%; /* 50px */
-      padding-top: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      padding-bottom: 10%;
-      padding-left: 25%;
-      padding-right: 50%;
-      padding-top: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-    <hr>
-    <div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-padding-3.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the padding are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-rl'. In this test, div.outer's computed 'writing-mode' value is 'vertical-rl' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      height: 200px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      width: 3px;
-      margin: auto 3px;
-    }
-
-  div.inner
-    {
-      background-color: transparent;
-      width: 50px;
-      -ah-writing-mode: horizontal-tb;
-      -webkit-writing-mode: horizontal-tb;
-      writing-mode: lr-tb; /* IE11 */
-      writing-mode: horizontal-tb;
-    }
-
-  div.foo
-    {
-      padding-left: 2.5%; /* 5px */
-      padding-top: 50%; /* 100px */
-      padding-bottom: 25%; /* 50px */
-      padding-right: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      padding-left: 10%;
-      padding-top: 25%;
-      padding-bottom: 50%;
-      padding-right: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-    <hr>
-    <div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-padding-4.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
-  <meta content="This test checks that percentages on the padding are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-lr'. In this test, div.outer's computed 'writing-mode' value is 'vertical-lr' and it is the div.inner's containing block." name="assert">
-  <style type="text/css">
-  div.outer
-    {
-      background-color: blue;
-      border: blue solid 3px;
-      height: 200px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  hr
-    {
-      background-color: transparent;
-      border: transparent none 0px;
-      width: 3px;
-      margin: auto 3px;
-    }
-
-  div.inner
-    {
-      background-color: transparent;
-      width: 50px;
-      -ah-writing-mode: horizontal-tb;
-      -webkit-writing-mode: horizontal-tb;
-      writing-mode: lr-tb; /* IE11 */
-      writing-mode: horizontal-tb;
-    }
-
-  div.foo
-    {
-      padding-left: 2.5%; /* 5px */
-      padding-top: 50%; /* 100px */
-      padding-bottom: 25%; /* 50px */
-      padding-right: 10%; /* 20px */
-    }
-
-  div.bar
-    {
-      padding-left: 10%;
-      padding-top: 25%;
-      padding-bottom: 50%;
-      padding-right: 2.5%;
-    }
-  </style>
- </head>
-
- <body>
-  <div class="outer">
-    <div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-    <hr>
-    <div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
-  </div>
- </body>
-</html>
deleted file mode 100644
--- a/layout/reftests/writing-mode/1172774-percent-vertical-ref.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-  <title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
-  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
- </head>
- <body>
-  <div id="reference"><img src="blue-yellow-165w-206h.png" width="165" height="206" alt="Image download support must be enabled"></div>
- </body>
-</html>
\ No newline at end of file
--- a/layout/reftests/writing-mode/abspos/reftest-stylo.list
+++ b/layout/reftests/writing-mode/abspos/reftest-stylo.list
@@ -1,112 +1,14 @@
 # DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
 # This directory contains tests for position:absolute and vertical writing modes.
 # They require the vertical-text pref to be true, otherwise lots of them will fail.
 # (See bug 1079151 for the origin of these testcases by Gérard Talbot.)
 
 
-# All of these are fuzzy-if on skia content on OS X due to subpixel text positioning.
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-003.xht s71-abs-pos-non-replaced-vlr-003.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-005.xht s71-abs-pos-non-replaced-vlr-005.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-007.xht s71-abs-pos-non-replaced-vlr-007.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-009.xht s71-abs-pos-non-replaced-vlr-009.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-011.xht s71-abs-pos-non-replaced-vlr-011.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-013.xht s71-abs-pos-non-replaced-vlr-013.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-015.xht s71-abs-pos-non-replaced-vlr-015.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-017.xht s71-abs-pos-non-replaced-vlr-017.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-019.xht s71-abs-pos-non-replaced-vlr-019.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-021.xht s71-abs-pos-non-replaced-vlr-021.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-023.xht s71-abs-pos-non-replaced-vlr-023.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-025.xht s71-abs-pos-non-replaced-vlr-025.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-027.xht s71-abs-pos-non-replaced-vlr-027.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-029.xht s71-abs-pos-non-replaced-vlr-029.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-031.xht s71-abs-pos-non-replaced-vlr-031.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-033.xht s71-abs-pos-non-replaced-vlr-033.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-035.xht s71-abs-pos-non-replaced-vlr-035.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-037.xht s71-abs-pos-non-replaced-vlr-037.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-039.xht s71-abs-pos-non-replaced-vlr-039.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-041.xht s71-abs-pos-non-replaced-vlr-041.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-043.xht s71-abs-pos-non-replaced-vlr-043.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-045.xht s71-abs-pos-non-replaced-vlr-045.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-047.xht s71-abs-pos-non-replaced-vlr-047.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-049.xht s71-abs-pos-non-replaced-vlr-049.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-051.xht s71-abs-pos-non-replaced-vlr-051.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-053.xht s71-abs-pos-non-replaced-vlr-053.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-055.xht s71-abs-pos-non-replaced-vlr-055.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-057.xht s71-abs-pos-non-replaced-vlr-057.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-059.xht s71-abs-pos-non-replaced-vlr-059.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-061.xht s71-abs-pos-non-replaced-vlr-061.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-063.xht s71-abs-pos-non-replaced-vlr-063.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-065.xht s71-abs-pos-non-replaced-vlr-065.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-067.xht s71-abs-pos-non-replaced-vlr-067.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-069.xht s71-abs-pos-non-replaced-vlr-069.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-071.xht s71-abs-pos-non-replaced-vlr-071.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-073.xht s71-abs-pos-non-replaced-vlr-073.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-075.xht s71-abs-pos-non-replaced-vlr-075.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-077.xht s71-abs-pos-non-replaced-vlr-077.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-079.xht s71-abs-pos-non-replaced-vlr-079.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-081.xht s71-abs-pos-non-replaced-vlr-081.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-083.xht s71-abs-pos-non-replaced-vlr-083.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-085.xht s71-abs-pos-non-replaced-vlr-085.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-087.xht s71-abs-pos-non-replaced-vlr-087.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-089.xht s71-abs-pos-non-replaced-vlr-089.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-091.xht s71-abs-pos-non-replaced-vlr-091.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-093.xht s71-abs-pos-non-replaced-vlr-093.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-095.xht s71-abs-pos-non-replaced-vlr-095.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-097.xht s71-abs-pos-non-replaced-vlr-097.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-002.xht s71-abs-pos-non-replaced-vrl-002.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-004.xht s71-abs-pos-non-replaced-vrl-004.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-006.xht s71-abs-pos-non-replaced-vrl-006.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-008.xht s71-abs-pos-non-replaced-vrl-008.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-010.xht s71-abs-pos-non-replaced-vrl-010.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-012.xht s71-abs-pos-non-replaced-vrl-012.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-014.xht s71-abs-pos-non-replaced-vrl-014.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-016.xht s71-abs-pos-non-replaced-vrl-016.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-018.xht s71-abs-pos-non-replaced-vrl-018.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-020.xht s71-abs-pos-non-replaced-vrl-020.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-022.xht s71-abs-pos-non-replaced-vrl-022.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-024.xht s71-abs-pos-non-replaced-vrl-024.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-026.xht s71-abs-pos-non-replaced-vrl-026.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-028.xht s71-abs-pos-non-replaced-vrl-028.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-030.xht s71-abs-pos-non-replaced-vrl-030.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-032.xht s71-abs-pos-non-replaced-vrl-032.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-034.xht s71-abs-pos-non-replaced-vrl-034.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-036.xht s71-abs-pos-non-replaced-vrl-036.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-038.xht s71-abs-pos-non-replaced-vrl-038.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-040.xht s71-abs-pos-non-replaced-vrl-040.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-042.xht s71-abs-pos-non-replaced-vrl-042.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-044.xht s71-abs-pos-non-replaced-vrl-044.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-046.xht s71-abs-pos-non-replaced-vrl-046.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-048.xht s71-abs-pos-non-replaced-vrl-048.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-050.xht s71-abs-pos-non-replaced-vrl-050.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-052.xht s71-abs-pos-non-replaced-vrl-052.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-054.xht s71-abs-pos-non-replaced-vrl-054.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-056.xht s71-abs-pos-non-replaced-vrl-056.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-058.xht s71-abs-pos-non-replaced-vrl-058.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-060.xht s71-abs-pos-non-replaced-vrl-060.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-062.xht s71-abs-pos-non-replaced-vrl-062.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-064.xht s71-abs-pos-non-replaced-vrl-064.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-066.xht s71-abs-pos-non-replaced-vrl-066.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-068.xht s71-abs-pos-non-replaced-vrl-068.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-070.xht s71-abs-pos-non-replaced-vrl-070.xht
-fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-072.xht s71-abs-pos-non-replaced-vrl-072.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-074.xht s71-abs-pos-non-replaced-vrl-074.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-076.xht s71-abs-pos-non-replaced-vrl-076.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-078.xht s71-abs-pos-non-replaced-vrl-078.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-080.xht s71-abs-pos-non-replaced-vrl-080.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-082.xht s71-abs-pos-non-replaced-vrl-082.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-084.xht s71-abs-pos-non-replaced-vrl-084.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-086.xht s71-abs-pos-non-replaced-vrl-086.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-088.xht s71-abs-pos-non-replaced-vrl-088.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-090.xht s71-abs-pos-non-replaced-vrl-090.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-092.xht s71-abs-pos-non-replaced-vrl-092.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-094.xht s71-abs-pos-non-replaced-vrl-094.xht
-fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-096.xht s71-abs-pos-non-replaced-vrl-096.xht
-
 == 1183431-orthogonal-modes-1a.html 1183431-orthogonal-modes-1a.html
 == 1183431-orthogonal-modes-1b.html 1183431-orthogonal-modes-1b.html
 == 1183431-orthogonal-modes-1c.html 1183431-orthogonal-modes-1c.html
 == 1183431-orthogonal-modes-2a.html 1183431-orthogonal-modes-2a.html
 == 1183431-orthogonal-modes-2b.html 1183431-orthogonal-modes-2b.html
 == 1183431-orthogonal-modes-2c.html 1183431-orthogonal-modes-2c.html
 == 1183431-orthogonal-modes-3a.html 1183431-orthogonal-modes-3a.html
 == 1183431-orthogonal-modes-3b.html 1183431-orthogonal-modes-3b.html
--- a/layout/reftests/writing-mode/abspos/reftest.list
+++ b/layout/reftests/writing-mode/abspos/reftest.list
@@ -1,112 +1,8 @@
-# This directory contains tests for position:absolute and vertical writing modes.
-# (See bug 1079151 for the origin of these testcases by Gérard Talbot.)
-
-# All of these are fuzzy-if on skia content on OS X due to subpixel text positioning.
-# Frequent Windows 7 load failed: timed out waiting for test to complete (waiting for onload scripts to complete), bug 1167155 and friends
-# Even though the whole reftest.list here is skipped, it doesn't actually work because reftests match the last
-# **-if, which means even though we tried to skip this list,the fuzzy-if still matched forcing us to run the test.
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-003.xht s71-abs-pos-non-replaced-vlr-003-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-005.xht s71-abs-pos-non-replaced-vlr-005-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-007.xht s71-abs-pos-non-replaced-vlr-007-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-009.xht s71-abs-pos-non-replaced-vlr-009-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-011.xht s71-abs-pos-non-replaced-vlr-011-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-013.xht s71-abs-pos-non-replaced-vlr-013-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-015.xht s71-abs-pos-non-replaced-vlr-015-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-017.xht s71-abs-pos-non-replaced-vlr-017-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-019.xht s71-abs-pos-non-replaced-vlr-019-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-021.xht s71-abs-pos-non-replaced-vlr-021-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-023.xht s71-abs-pos-non-replaced-vlr-023-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-025.xht s71-abs-pos-non-replaced-vlr-025-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-027.xht s71-abs-pos-non-replaced-vlr-027-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-029.xht s71-abs-pos-non-replaced-vlr-029-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-031.xht s71-abs-pos-non-replaced-vlr-031-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-033.xht s71-abs-pos-non-replaced-vlr-033-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-035.xht s71-abs-pos-non-replaced-vlr-035-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-037.xht s71-abs-pos-non-replaced-vlr-037-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-039.xht s71-abs-pos-non-replaced-vlr-039-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-041.xht s71-abs-pos-non-replaced-vlr-041-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-043.xht s71-abs-pos-non-replaced-vlr-043-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-045.xht s71-abs-pos-non-replaced-vlr-045-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-047.xht s71-abs-pos-non-replaced-vlr-047-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-049.xht s71-abs-pos-non-replaced-vlr-049-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-051.xht s71-abs-pos-non-replaced-vlr-051-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-053.xht s71-abs-pos-non-replaced-vlr-053-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-055.xht s71-abs-pos-non-replaced-vlr-055-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-057.xht s71-abs-pos-non-replaced-vlr-057-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-059.xht s71-abs-pos-non-replaced-vlr-059-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-061.xht s71-abs-pos-non-replaced-vlr-061-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-063.xht s71-abs-pos-non-replaced-vlr-063-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-065.xht s71-abs-pos-non-replaced-vlr-065-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-067.xht s71-abs-pos-non-replaced-vlr-067-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-069.xht s71-abs-pos-non-replaced-vlr-069-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-071.xht s71-abs-pos-non-replaced-vlr-071-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-073.xht s71-abs-pos-non-replaced-vlr-073-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-075.xht s71-abs-pos-non-replaced-vlr-075-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-077.xht s71-abs-pos-non-replaced-vlr-077-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-079.xht s71-abs-pos-non-replaced-vlr-079-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-081.xht s71-abs-pos-non-replaced-vlr-081-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-083.xht s71-abs-pos-non-replaced-vlr-083-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-085.xht s71-abs-pos-non-replaced-vlr-085-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-087.xht s71-abs-pos-non-replaced-vlr-087-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-089.xht s71-abs-pos-non-replaced-vlr-089-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-091.xht s71-abs-pos-non-replaced-vlr-091-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-093.xht s71-abs-pos-non-replaced-vlr-093-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-095.xht s71-abs-pos-non-replaced-vlr-095-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-097.xht s71-abs-pos-non-replaced-vlr-097-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-002.xht s71-abs-pos-non-replaced-vrl-002-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-004.xht s71-abs-pos-non-replaced-vrl-004-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-006.xht s71-abs-pos-non-replaced-vrl-006-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-008.xht s71-abs-pos-non-replaced-vrl-008-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-010.xht s71-abs-pos-non-replaced-vrl-010-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-012.xht s71-abs-pos-non-replaced-vrl-012-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-014.xht s71-abs-pos-non-replaced-vrl-014-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-016.xht s71-abs-pos-non-replaced-vrl-016-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-018.xht s71-abs-pos-non-replaced-vrl-018-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-020.xht s71-abs-pos-non-replaced-vrl-020-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-022.xht s71-abs-pos-non-replaced-vrl-022-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-024.xht s71-abs-pos-non-replaced-vrl-024-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-026.xht s71-abs-pos-non-replaced-vrl-026-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-028.xht s71-abs-pos-non-replaced-vrl-028-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-030.xht s71-abs-pos-non-replaced-vrl-030-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-032.xht s71-abs-pos-non-replaced-vrl-032-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-034.xht s71-abs-pos-non-replaced-vrl-034-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-036.xht s71-abs-pos-non-replaced-vrl-036-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-038.xht s71-abs-pos-non-replaced-vrl-038-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-040.xht s71-abs-pos-non-replaced-vrl-040-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-042.xht s71-abs-pos-non-replaced-vrl-042-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-044.xht s71-abs-pos-non-replaced-vrl-044-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-046.xht s71-abs-pos-non-replaced-vrl-046-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-048.xht s71-abs-pos-non-replaced-vrl-048-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-050.xht s71-abs-pos-non-replaced-vrl-050-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-052.xht s71-abs-pos-non-replaced-vrl-052-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-054.xht s71-abs-pos-non-replaced-vrl-054-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-056.xht s71-abs-pos-non-replaced-vrl-056-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-058.xht s71-abs-pos-non-replaced-vrl-058-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-060.xht s71-abs-pos-non-replaced-vrl-060-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-062.xht s71-abs-pos-non-replaced-vrl-062-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-064.xht s71-abs-pos-non-replaced-vrl-064-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-066.xht s71-abs-pos-non-replaced-vrl-066-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-068.xht s71-abs-pos-non-replaced-vrl-068-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-070.xht s71-abs-pos-non-replaced-vrl-070-ref.xht
-fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-072.xht s71-abs-pos-non-replaced-vrl-072-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-074.xht s71-abs-pos-non-replaced-vrl-074-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-076.xht s71-abs-pos-non-replaced-vrl-076-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-078.xht s71-abs-pos-non-replaced-vrl-078-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-080.xht s71-abs-pos-non-replaced-vrl-080-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-082.xht s71-abs-pos-non-replaced-vrl-082-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-084.xht s71-abs-pos-non-replaced-vrl-084-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-086.xht s71-abs-pos-non-replaced-vrl-086-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-088.xht s71-abs-pos-non-replaced-vrl-088-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-090.xht s71-abs-pos-non-replaced-vrl-090-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-092.xht s71-abs-pos-non-replaced-vrl-092-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-094.xht s71-abs-pos-non-replaced-vrl-094-ref.xht
-fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-096.xht s71-abs-pos-non-replaced-vrl-096-ref.xht
-
 == 1183431-orthogonal-modes-1a.html 1183431-orthogonal-modes-1-ref.html
 == 1183431-orthogonal-modes-1b.html 1183431-orthogonal-modes-1-ref.html
 == 1183431-orthogonal-modes-1c.html 1183431-orthogonal-modes-1-ref.html
 == 1183431-orthogonal-modes-2a.html 1183431-orthogonal-modes-2-ref.html
 == 1183431-orthogonal-modes-2b.html 1183431-orthogonal-modes-2-ref.html
 == 1183431-orthogonal-modes-2c.html 1183431-orthogonal-modes-2-ref.html
 == 1183431-orthogonal-modes-3a.html 1183431-orthogonal-modes-3-ref.html
 == 1183431-orthogonal-modes-3b.html 1183431-orthogonal-modes-3-ref.html
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-003-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-003.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-005-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-005.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then set 'left' to the static position, the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-007-ref.xht
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-007.xht
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-009-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-009.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-011-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-011.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto', then set 'right' to the static position, the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto: set to static position
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto: set to static position
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-013-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-013.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-015-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-015.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-017-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-017.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 2em;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-019-ref.xht
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-019.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-021-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-021.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-023-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-023.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 2em;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-025-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-025.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-027-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      color: transparent;
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-027.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-   (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-029-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-029.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'left' to the static position and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-031-ref.xht
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-031.xht
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-033-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-033.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-035-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-035.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'right' to the static position and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-037-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-037.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-039-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-039.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-041-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-041.xht
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-043-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-043.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-   (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-045-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-045.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-047-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-047.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-049-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-049.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-051-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-051.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-053-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-053.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 1em;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-055-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-055.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-057-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-057.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-059-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-059.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left', then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 1em;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-4.'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-061-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-061.xht
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-063-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-063.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-065-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and  'width' is 'auto', 'left' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-065.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and  'width' is 'auto', 'left' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      height: 1em;
-      left: 2em;
-      position: absolute;
-      right: 1em;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (solve) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed width value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-067-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-067.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-069-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-069.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-071-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-071.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      height: 1em;
-      left: 2em;
-      position: absolute;
-      right: 1em;
-      width: auto;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (solve) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed width value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-073-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-073.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-075-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-075.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-077-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-077.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-079-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-079.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-081-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-081.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-083-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-083.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'" />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-085-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-085.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-087-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-087.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-089-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-089.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained), then ignore 'right' and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 2em;
-      margin-left: 0em;
-      margin-right: 0em;
-      position: absolute;
-      right: 2em;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-091-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-091.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-093-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-093.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'top' and solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-095-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-095.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are not 'auto' and if the values are overconstrained, then ignore 'left' and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 2em;
-      margin-left: 0em;
-      margin-right: 0em;
-      position: absolute;
-      right: 2em;
-      width: 1em;
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-/*
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-097-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vlr-097.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'top' and solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-lr;
-      -webkit-writing-mode: vertical-lr;
-      writing-mode: tb-lr; /* IE11 */
-      writing-mode: vertical-lr;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-002-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-002.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-004-ref.xht
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>
-
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-004.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then set 'left' to the static position, the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-006-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-006.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-008-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-008.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-010-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-010.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto', then set 'right' to the static position, the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto: set to static position
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto: set to static position
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-012-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-012.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
-
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-014-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-014.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-016-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-016.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 2em;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-018-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-018.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-020-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-020.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-022-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-022.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 2em;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-024-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-024.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-026-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-026.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-028-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-028.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'left' to the static position and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left: auto: set to static position
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-030-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-030.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top: auto: set to static position
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-032-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-032.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-034-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-034.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'right' to the static position and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right: auto: set to static position
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-036-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-036.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom: auto: set to static position
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-038-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-038.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-040-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-040.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-042-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-042.xht
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-044-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-044.xht
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-046-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-046.xht
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-gives us:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : (shrink-to-fit) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-048-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-048.xht
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: auto;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-gives us:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : (based on the content) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-050-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-050.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-052-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-052.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 1em;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-054-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-054.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-056-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-056.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-058-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-058.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left', then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: auto;
-      position: absolute;
-      right: 1em;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-4.'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-  (solve) : left: auto
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-060-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-060.xht
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 1em;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: auto;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-  (solve) : top: auto
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 160px .
-*/
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-062-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-062.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-064-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and  'width' is 'auto', 'left' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-064.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and  'width' is 'auto', 'left' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      height: 1em;
-      left: 2em;
-      position: absolute;
-      right: 1em;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (solve) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed width value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-066-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-066.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-068-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-068.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-070-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-070.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      height: 1em;
-      left: 2em;
-      position: absolute;
-      right: 1em;
-      width: auto;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-  (solve) : width: auto
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-     80px : right
-    =====================
-    320px : width of containing block
-
-And so computed width value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-072-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-072.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: green;
-      bottom: 1em;
-      height: auto;
-      position: absolute;
-      top: 2em;
-      width: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-  (solve) : height: auto
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-     80px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed height value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span></span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-074-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-074.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-076-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-076.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-078-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-078.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-080-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-080.xht
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-082-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-082.xht
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'" />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 1em;
-      position: absolute;
-      right: auto;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-     80px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right: auto
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-084-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-084.xht
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</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/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: auto;
-      color: green;
-      height: 1em;
-      position: absolute;
-      top: 1em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-     80px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom: auto
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 160px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-086-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-086.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-002-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-088-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-088.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained), then ignore 'right' and then solve for 'right'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 2em;
-      margin-left: 0em;
-      margin-right: 0em;
-      position: absolute;
-      right: 2em;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-left-width
-  +
-      0px : padding-left
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-  (solve) : right
-    =====================
-    320px : width of containing block
-
-And so computed right value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-090-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 2em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-090.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-006-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'bottom' and solve for 'bottom'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-3row-320x320.png");
-      color: transparent;
-      direction: ltr;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-  (solve) : bottom
-    =====================
-    320px : height of containing block
-
-And so computed bottom value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-092-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (overconstrained)</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-092.xht
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'top' and solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-094-ref.xht
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 1em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-094.xht
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are not 'auto' and if the values are overconstrained, then ignore 'left' and then solve for 'left'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  div#containing-block
-    {
-      background: red url("support/bg-red-2col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      left: 2em;
-      margin-left: 0em;
-      margin-right: 0em;
-      position: absolute;
-      right: 2em;
-      width: 1em;
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-/*
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
-
-So:
-
-    160px : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-gives us:
-
-  (solve) : left
-  +
-      0px : margin-left
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : width
-  +
-      0px : padding-right
-  +
-      0px : border-right-width
-  +
-      0px : margin-right
-  +
-    160px : right
-    =====================
-    320px : width of containing block
-
-And so computed left value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-096-ref.xht
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto'</title>
-
-
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      -ah-writing-mode: initial;
-      -webkit-writing-mode: initial;
-      writing-mode: initial;
-      direction: ltr;
-      color: transparent;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      color: green;
-      position: absolute;
-      left: 2em; top: 1em;
-    }
-
-
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/layout/reftests/writing-mode/abspos/s71-abs-pos-non-replaced-vrl-096.xht
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD 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: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto' (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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
-  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
-  <link rel="match" href="s71-abs-pos-non-replaced-vrl-012-ref.xht" />
-
-  <meta name="flags" content="ahem image" />
-  <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are not 'auto' and if the values are overconstrained, then ignore 'top' and solve for 'top'." />
-
-  <link type="text/css" rel="stylesheet" href="support/ahem.css" />
-
-  <style type="text/css"><![CDATA[
-  html
-    {
-      -ah-writing-mode: vertical-rl;
-      -webkit-writing-mode: vertical-rl;
-      writing-mode: tb-rl; /* IE11 */
-      writing-mode: vertical-rl;
-    }
-
-  div#containing-block
-    {
-      background: red url("support/bg-red-3col-2row-320x320.png");
-      color: transparent;
-      direction: rtl;
-      font: 80px/1 Ahem;
-      height: 320px;
-      position: relative;
-      width: 320px;
-    }
-
-  div#containing-block > span
-    {
-      background-color: red;
-      bottom: 2em;
-      color: green;
-      height: 1em;
-      margin-bottom: 0em;
-      margin-top: 0em;
-      position: absolute;
-      top: 2em;
-    }
-
-/*
-"
-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.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
-
-"
-If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-"
-
-'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
-
-So:
-
-    160px : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-gives us:
-
-  (solve) : top
-  +
-      0px : margin-top
-  +
-      0px : border-top-width
-  +
-      0px : padding-top
-  +
-     80px : height
-  +
-      0px : padding-bottom
-  +
-      0px : border-bottom-width
-  +
-      0px : margin-bottom
-  +
-    160px : bottom
-    =====================
-    320px : height of containing block
-
-And so computed top value must be 80px .
-*/
-
-  ]]></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>
-
-  <div id="containing-block">1 2 34<span>X</span></div>
-
- </body>
-</html>
\ No newline at end of file
deleted file mode 100644
index 4f354e93527e237aa40e5db31a919695ab849329..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 6eded69a4a3ac9e6b98cfea08c9163997d6224c3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 5f4b53c46b742536eb779d589d78eb951468a41f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 4c2f6c8e632989ca42ba4f36f5d6c979b55a74b1..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 15fd6065ef670fcab7e0b662285c19bdd881da1d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 3d70889ee25e01a2036b5bd49c189e700325deb6..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
deleted file mode 100644
index 47ceb84d3fbd2b09831616b9b53f565cf18bec07..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
--- a/layout/reftests/writing-mode/reftest-stylo.list
+++ b/layout/reftests/writing-mode/reftest-stylo.list
@@ -149,24 +149,16 @@ test-pref(dom.meta-viewport.enabled,true
 == 1147834-relative-overconstrained-vertical-rl-rtl.html 1147834-relative-overconstrained-vertical-rl-rtl.html
 == 1151993-1-orthogonal-block-size.html 1151993-1-orthogonal-block-size.html
 == 1152941-1-orthogonal-blocksize-overflow.html 1152941-1-orthogonal-blocksize-overflow.html
 == 1156021-text-indent-percent.html 1156021-text-indent-percent.html
 == 1157752-upright-bidi.html 1157752-upright-bidi.html
 == 1157758-1-vertical-arabic.html 1157758-1-vertical-arabic.html
 == 1158549-1-vertical-block-size-constraints.html 1158549-1-vertical-block-size-constraints.html
 == 1163238-orthogonal-auto-margins.html 1163238-orthogonal-auto-margins.html
-== 1172774-percent-margin-1.html 1172774-percent-margin-1.html
-== 1172774-percent-margin-2.html 1172774-percent-margin-2.html
-== 1172774-percent-margin-3.html 1172774-percent-margin-3.html
-== 1172774-percent-margin-4.html 1172774-percent-margin-4.html
-random == 1172774-percent-padding-1.html 1172774-percent-padding-1.html
-== 1172774-percent-padding-2.html 1172774-percent-padding-2.html
-random == 1172774-percent-padding-3.html 1172774-percent-padding-3.html
-== 1172774-percent-padding-4.html 1172774-percent-padding-4.html
 == 1174450-intrinsic-sizing.html 1174450-intrinsic-sizing.html
 == 1175789-underline-overline-1.html 1175789-underline-overline-1.html
 == 1188061-1-nsChangeHint_ClearAncestorIntrinsics.html 1188061-1-nsChangeHint_ClearAncestorIntrinsics.html
 == 1188061-2-nsChangeHint_UpdateComputedBSize.html 1188061-2-nsChangeHint_UpdateComputedBSize.html
 
 # tests involving sideways-lr mode
 == 1193519-sideways-lr-1.html 1193519-sideways-lr-1.html
 == 1193519-sideways-lr-2.html 1193519-sideways-lr-2.html
--- a/layout/reftests/writing-mode/reftest.list
+++ b/layout/reftests/writing-mode/reftest.list
@@ -133,24 +133,16 @@ test-pref(dom.meta-viewport.enabled,true
 == 1147834-relative-overconstrained-vertical-rl-rtl.html 1147834-top-left-ref.html
 == 1151993-1-orthogonal-block-size.html 1151993-1-orthogonal-block-size-ref.html
 == 1152941-1-orthogonal-blocksize-overflow.html 1152941-1-orthogonal-blocksize-overflow-ref.html
 == 1156021-text-indent-percent.html 1156021-text-indent-percent-ref.html
 == 1157752-upright-bidi.html 1157752-upright-bidi-ref.html
 == 1157758-1-vertical-arabic.html 1157758-1-vertical-arabic-ref.html
 == 1158549-1-vertical-block-size-constraints.html 1158549-1-vertical-block-size-constraints-ref.html
 == 1163238-orthogonal-auto-margins.html 1163238-orthogonal-auto-margins-ref.html
-== 1172774-percent-margin-1.html 1172774-percent-horizontal-ref.html
-== 1172774-percent-margin-2.html 1172774-percent-horizontal-ref.html
-== 1172774-percent-margin-3.html 1172774-percent-vertical-ref.html
-== 1172774-percent-margin-4.html 1172774-percent-vertical-ref.html
-== 1172774-percent-padding-1.html 1172774-percent-horizontal-ref.html
-== 1172774-percent-padding-2.html 1172774-percent-horizontal-ref.html
-== 1172774-percent-padding-3.html 1172774-percent-vertical-ref.html
-== 1172774-percent-padding-4.html 1172774-percent-vertical-ref.html
 == 1174450-intrinsic-sizing.html 1174450-intrinsic-sizing-ref.html
 == 1175789-underline-overline-1.html 1175789-underline-overline-1-ref.html
 == 1188061-1-nsChangeHint_ClearAncestorIntrinsics.html 1188061-1-nsChangeHint_ClearAncestorIntrinsics-ref.html
 == 1188061-2-nsChangeHint_UpdateComputedBSize.html 1188061-2-nsChangeHint_UpdateComputedBSize-ref.html
 
 # tests involving sideways-lr mode
 == 1193519-sideways-lr-1.html 1193519-sideways-lr-1-ref.html
 == 1193519-sideways-lr-2.html 1193519-sideways-lr-2-ref.html