Bug 1163238 - Reftest for auto margins on orthogonal flow.
authorJonathan Kew <jkew@mozilla.com>
Wed, 03 Jun 2015 11:17:27 +0100
changeset 246980 3cbe1f9d3557576631ee67de686e57ea6d581403
parent 246979 272c05b16d7654a14c3bce4bf85381a58e4d7555
child 246981 05411d0a95ad05108ec468fbc12bb84ddaee7d4b
push id28848
push userryanvm@gmail.com
push dateWed, 03 Jun 2015 20:00:13 +0000
treeherdermozilla-central@0920f2325a6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1163238
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1163238 - Reftest for auto margins on orthogonal flow.
layout/reftests/writing-mode/1163238-orthogonal-auto-margins-ref.html
layout/reftests/writing-mode/1163238-orthogonal-auto-margins.html
layout/reftests/writing-mode/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1163238-orthogonal-auto-margins-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+    body {
+      border: 1px solid blue;
+    }
+    .vlr {
+      border: 5px solid green;
+      width: 200px;
+      height: 400px;
+      margin: 0px auto;
+    }
+    .h1 {
+      border: 10px solid red;
+      width: 100px;
+      height: 200px;
+      margin-top: 90px;
+    }
+    .vrl {
+      background: yellow;
+      width: 50px;
+      height: 75px;
+      padding-top: 25px;
+      margin-left: 25px;
+    }
+    .h2 {
+      background: black;
+      width: 20px;
+      height: 50px;
+      margin-left: 30px;
+    }
+  </style>
+</head>
+<body>
+  <div class="vlr">
+    <div class="h1">
+      <div class="vrl">
+        <div class="h2">
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1163238-orthogonal-auto-margins.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+    body {
+      border: 1px solid blue;
+    }
+    .vlr {
+      border: 5px solid green;
+      width: 200px;
+      height: 400px;
+      writing-mode: vertical-lr;
+      margin: auto;
+    }
+    .h1 {
+      border: 10px solid red;
+      width: 100px;
+      height: 200px;
+      writing-mode: horizontal-tb;
+      margin: auto;
+    }
+    .vrl {
+      background: yellow;
+      width: 50px;
+      height: 100px;
+      writing-mode: vertical-rl;
+      margin: auto;
+    }
+    .h2 {
+      background: black;
+      width: 20px;
+      height: 50px;
+      writing-mode: horizontal-tb;
+      margin: auto;
+    }
+  </style>
+</head>
+<body>
+  <div class="vlr">
+    <div class="h1">
+      <div class="vrl">
+        <div class="h2">
--- a/layout/reftests/writing-mode/reftest.list
+++ b/layout/reftests/writing-mode/reftest.list
@@ -128,11 +128,12 @@ test-pref(dom.meta-viewport.enabled,true
 == 1144501-1a-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
 == 1144501-1b-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-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
 
 # Suite of tests from GĂ©rard Talbot in bug 1079151
 include abspos/reftest.list