Bug 743402, Part 6: Add unit tests for functionality of bug 743402. [r=roc]
☠☠ backed out by 91356879fbfd ☠ ☠
authorScott Johnson <sjohnson@mozilla.com>
Wed, 24 Jul 2013 12:47:24 -0500
changeset 139867 19848fff857e5652ef04d78c9ab06e5b2fb8a8a9
parent 139866 049168537ae07a051c426cf2ed23350c1cb9be83
child 139868 49939eb7372e2a72eb14b1373cdd9281131685c9
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersroc
bugs743402
milestone25.0a1
Bug 743402, Part 6: Add unit tests for functionality of bug 743402. [r=roc]
layout/reftests/columns/columnrule-padding-ref.html
layout/reftests/columns/columnrule-padding.html
layout/reftests/w3c-css/submitted/multicol3/multicol-height-001.xht
layout/reftests/w3c-css/submitted/multicol3/reference/multicol-height-001.xht
layout/reftests/w3c-css/submitted/multicol3/reftest.list
--- a/layout/reftests/columns/columnrule-padding-ref.html
+++ b/layout/reftests/columns/columnrule-padding-ref.html
@@ -1,29 +1,30 @@
 <body style="overflow:hidden">
 <div style="position: absolute;
   top: 40px; left: 337px;
   width: 6px;
-  background-color: red;
+  background-color: green;
   height: 100px;">
 </div>
 <div style="position: absolute;
   top: 40px; left: 637px;
   width: 6px;
-  background-color: red;
+  background-color: green;
   height: 100px;">
 </div>
 <div style="position: absolute;
   top: 40px; left: 937px;
   width: 6px;
-  background-color: red;
+  background-color: green;
   height: 100px;">
 </div>
 <div style="position: absolute;
   top: 40px; left: 40px;
+  height: 100px;
   -moz-column-count: 4;
   -moz-column-gap: 0px;">
 <div style="height:400px;
   width: 300px;
   font-size: 16px;">
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed feugiat libero vel diam. Pellentesque pulvinar commodo lacus. Sed fringilla. Sed lectus. Praesent laoreet orci vitae nisi. Duis venenatis tristique massa.
 </div>
 </div>
--- a/layout/reftests/columns/columnrule-padding.html
+++ b/layout/reftests/columns/columnrule-padding.html
@@ -1,14 +1,15 @@
+<!doctype html>
 <body style="overflow:hidden">
 <div style="padding: 20px;
   position: absolute;
   top: 20px; left: 20px;
   -moz-column-count: 4;
   -moz-column-gap: 0px;
-  -moz-column-rule: 6px red solid;">
+  -moz-column-rule: 6px green solid;">
 <div style="height:400px;
   width: 300px;
   font-size: 16px;">
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed feugiat libero vel diam. Pellentesque pulvinar commodo lacus. Sed fringilla. Sed lectus. Praesent laoreet orci vitae nisi. Duis venenatis tristique massa.
 </div>
 </div>
 </body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/multicol3/multicol-height-001.xht
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head class="reftest-print">
+  <title>CSS Test: Percentage Computed Height on Multicol Child (Definite Multicol Height)</title>
+  <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />
+  <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" />
+  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>
+  <meta name="flags" content="" />
+  <meta name="assert" content="Percentage heights with a multi-column element are relative to the computed height of the multicolumn box, and this works even when the multi-column element is paginated." />
+  <link rel="match" href="reference/multicol-height-001.xht" />
+  <style type="text/css"><![CDATA[
+    html, body { height: 100%; }
+    * { margin: 0; }
+    div {
+      border: double blue 12px;
+      -moz-column-count:2;
+      -moz-column-gap:0;
+      -moz-column-fill: balance;
+      height: 150%;
+    }
+    div > p {
+      border-right: solid orange 12px;
+      width: 0;
+      margin: 0 auto;
+      height: 200%;
+    }
+    blockquote {
+      border: solid thick yellow;
+    }
+  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if even when printed:</p>
+  <ul>
+    <li>Two vertical orange stripes stretch exactly
+    from the inner top edge to the inner bottom edge of the blue box below.</li>
+    <li>There is a yellow stripe immediately below the blue box.</li>
+  </ul>
+  <div>
+    <p></p>
+  </div>
+  <blockquote></blockquote>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/multicol3/reference/multicol-height-001.xht
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head class="reftest-print">
+  <title>CSS Reftest Reference</title>
+  <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />
+  <style type="text/css"><![CDATA[
+    html, body { height: 100%; }
+    * { margin: 0; }
+    div {
+      border: double blue 12px;
+      height: 150%;
+      padding: 0 12px;
+    }
+    div > p {
+      border-right: solid orange 12px;
+      border-left: solid orange 12px;
+      width: 50%;
+      margin: 0 auto;
+      height: 100%;
+    }
+    blockquote {
+      border: solid thick yellow;
+    }  ]]></style>
+ </head>
+ <body>
+  <p>Test passes if even when printed:</p>
+  <ul>
+    <li>Two vertical orange stripes stretch exactly
+    from the inner top edge to the inner bottom edge of the blue box below.</li>
+    <li>There is a yellow stripe immediately below the blue box.</li>
+  </ul>
+  <div>
+    <p></p>
+  </div>
+  <blockquote></blockquote>
+ </body>
+</html>
--- a/layout/reftests/w3c-css/submitted/multicol3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/multicol3/reftest.list
@@ -1,1 +1,2 @@
 == moz-multicol3-column-balancing-break-inside-avoid-1.html moz-multicol3-column-balancing-break-inside-avoid-1-ref.html
+== multicol-height-001.xht reference/multicol-height-001.xht