summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-break/box-decoration-break-block-margin-ref.html
blob: 53cf02ad741fb0bc81b8955f784fd25b3cce6a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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>