Bug 1025669 - part 3, Tests for box-decoration-break:clone on block margins. a=lmandel
authorMats Palmgren <mats@mozilla.com>
Tue, 24 Jun 2014 17:52:19 +0000
changeset 208958 917551649830181bb741ba9ab4dcb87693d29985
parent 208957 98deeb8e384349d9b7b4dd4e13b18be8413d6ecf
child 208959 0ddffe80f653826d18056f76f6bd7e5f419795b4
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslmandel
bugs1025669
milestone32.0a2
Bug 1025669 - part 3, Tests for box-decoration-break:clone on block margins. a=lmandel
layout/reftests/css-break/box-decoration-break-block-margin-ref.html
layout/reftests/css-break/box-decoration-break-block-margin.html
layout/reftests/css-break/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-block-margin-ref.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html>
+<head>
+  <title>Testcase for box-decoration-break:clone, block margin</title>
+  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1025669">
+  <meta charset="utf-8">
+  <style type="text/css">
+    html,body {
+      color:black; background-color:white; font-size:16px; padding:10px; margin:0;
+    }
+
+    .inner {
+      border: 5px dashed blue;
+      height: 26px;
+      width: 40px;
+      background: lime;
+      background-clip: padding-box;
+      margin: 0px 3px 15px 1px;
+      position: relative;
+      top: 7px;
+    }
+
+    .columns {
+      -moz-columns: 3;
+      width: 250px;
+      height: 50px;
+      background: grey;
+    }
+
+    .outer {
+      margin-top: 2px;
+      height: 50px;
+      width: 250px;
+      background: grey;
+    }
+
+    .unbalanced {
+      -moz-column-fill: auto;
+    }
+
+    .unbalanced .inner { height: 28px; }
+    .x .inner { height: 28px; }
+    .x.unbalanced .inner { height: 28px; }
+
+    #t2 .inner { border-style:none; height: 38px; }
+  </style>
+</head>
+<body>
+
+<div class="outer"><div class="columns"><div class="inner"></div><div class="inner"></div><div class="inner"></div></div></div>
+<div class="outer"><div class="columns unbalanced"><div class="inner"></div><div class="inner"></div><div class="inner" style="height:22px"></div></div></div>
+<div class="outer"><div class="columns x"><div class="p inner"></div><div class="inner"></div><div class="inner" style="height:31px"></div></div></div>
+<div class="outer"><div class="columns x unbalanced"><div class="p inner"></div><div class="inner"></div><div class="inner"></div></div></div>
+
+<div id="t2">
+<div class="outer"><div class="columns unbalanced"><div class="inner"></div><div class="inner"></div><div class="inner" style="height:2px"></div></div></div>
+<div class="outer"><div class="columns unbalanced"><div style="height:4px"></div><div class="inner" style="height:34px"></div><div class="inner"></div><div class="inner" style="height:6px"></div></div></div>
+<div class="outer"><div class="columns unbalanced x"><div class="p inner"></div><div class="inner"></div><div class="inner" style="height:2px"></div></div></div>
+<div class="outer"><div class="columns unbalanced"><div style="height:4px"></div><div class="inner" style="height:34px"></div><div class="inner"></div><div class="inner" style="height:6px"></div></div></div>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-block-margin.html
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML>
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<html>
+<head>
+  <title>Testcase for box-decoration-break:clone, block margin</title>
+  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1025669">
+  <link rel="help" href="http://dev.w3.org/csswg/css-break/#break-decoration">
+  <link rel="match" href="box-decoration-break-block-margin-ref.html">
+  <meta charset="utf-8">
+  <style type="text/css">
+    html,body {
+      color:black; background-color:white; font-size:16px; padding:10px; margin:0;
+    }
+
+    .inner {
+      box-decoration-break: clone;
+      border: 5px dashed blue;
+      margin: 7px 3px 5px 1px;
+      height: 78px;
+      width: 40px;
+      background: lime;
+      background-clip: content-box;
+    }
+
+    .columns {
+      -moz-columns: 3;
+      width: 250px;
+      height: 50px;
+      background: grey;
+      margin-top: 2px;
+    }
+
+    .unbalanced {
+      -moz-column-fill: auto;
+    }
+
+    .inner.p { height:87px; }
+    .inner.p2 { height:84px; }
+
+    .p3, .p4, .p5, .p6 { border-style:none; }
+    .inner div { height:16px;  }
+    .inner.p3 div { margin: 3px; }
+    .inner.p4 div { margin: 11px 3px 5px 1px; }
+    .inner.p5 div { box-decoration-break: clone; margin: 3px; }
+    .inner.p6 div { box-decoration-break: clone; margin: 11px 3px 5px 1px; }
+  </style>
+</head>
+<body>
+
+<div class="columns"><div class="inner"></div></div>
+<div class="columns unbalanced"><div class="inner"></div></div>
+<div class="columns"><div class="p inner"></div></div>
+<div class="columns unbalanced"><div class="p2 inner"></div></div>
+
+<!-- margin collapsing with innermost DIV -->
+<div class="columns unbalanced"><div class="p3 inner"><div></div></div></div>
+<div class="columns unbalanced"><div class="p4 inner"><div></div></div></div>
+<div class="columns unbalanced"><div class="p5 inner"><div></div></div></div>
+<div class="columns unbalanced"><div class="p6 inner"><div></div></div></div>
+
+</body>
+</html>
--- a/layout/reftests/css-break/reftest.list
+++ b/layout/reftests/css-break/reftest.list
@@ -1,7 +1,8 @@
 default-preferences pref(layout.css.box-decoration-break.enabled,true)
 
 == box-decoration-break-1.html box-decoration-break-1-ref.html
 fuzzy(1,20) == box-decoration-break-with-inset-box-shadow-1.html box-decoration-break-with-inset-box-shadow-1-ref.html
 fuzzy(16,460) == box-decoration-break-with-outset-box-shadow-1.html box-decoration-break-with-outset-box-shadow-1-ref.html
 random-if(!gtk2Widget) HTTP(..) == box-decoration-break-border-image.html box-decoration-break-border-image-ref.html
 == box-decoration-break-block-border-padding.html box-decoration-break-block-border-padding-ref.html
+== box-decoration-break-block-margin.html box-decoration-break-block-margin-ref.html