box-decoration-break-border-image-ref.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <html>
  7. <head>
  8. <title>Testcase for border-image + box-decoration-break</title>
  9. <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=988653">
  10. <meta charset="utf-8">
  11. <style type="text/css">
  12. @font-face {
  13. font-family: DejaVuSansMono;
  14. src: url(../fonts/DejaVuSansMono.woff),url(DejaVuSansMono.woff);
  15. }
  16. * { font-family: DejaVuSansMono; }
  17. html,body {
  18. color:black; background-color:white; font-size:16px; padding:0; padding-left:10px; margin:0;
  19. }
  20. b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,.b.clone {
  21. border: 5px solid red;
  22. border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD%2FgAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAoUlEQVR42u3bwQ0AIAgEwcOmtXttgScmsxWQCTyp3EysJo61IliwYMGCBUuwYMGCBQuWYMGCBQsWLMGCBQsWLFiCBQsWLFiwBAsWLFiwYAkWLFiwYMESLFiwYMGCpXaVka%2BsO8dmOUNYggULFixYsAQLFixYsGAJFixYsGDBEixYsGDBgiVYsGDBggVLsGDBggULlmDBggULFizBggUL1t89N%2FYEtBGStpoAAAAASUVORK5CYII%3D) 10 10 repeat;
  23. border-image-outset: 7px 3px 5px 9px;
  24. }
  25. .b {
  26. border: 5px solid transparent;
  27. background: pink;
  28. }
  29. .b.clone {
  30. background: pink;
  31. height:28px;
  32. }
  33. .col3 .b.clone {
  34. height:32px;
  35. }
  36. .columns {
  37. -moz-columns: 2;
  38. width: 200px;
  39. height: 50px;
  40. background: grey;
  41. margin-right: 20px;
  42. margin-bottom: 20px;
  43. float:left;
  44. }
  45. .col3 {
  46. -moz-columns: 3;
  47. }
  48. .unbalanced { -moz-column-fill:auto; }
  49. .vbreak { height:65px; width:41px; }
  50. .unbalanced .vbreak { height:40px; }
  51. .h { width:30px;height:30px; background:grey; }
  52. .m { margin-left:15px; }
  53. .col3 .vbreak { height:115px; }
  54. .unbalanced.col3 .vbreak { height:40px; }
  55. x { display:inline-block; width:31px; height:18px; line-height:1; }
  56. y { display:inline-block; width:47px; height:18px; line-height:1; }
  57. pos1 { position:absolute; top:50px; width:700px; }
  58. pos2 { position:absolute; top:150px; width:700px; }
  59. pos3 { position:absolute; top:380px; width:700px; }
  60. pos4 { position:absolute; top:510px; width:700px; }
  61. b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10 {position:absolute;}
  62. c1,c2,c3,c4,c5,c6,c7,c8,c9,c10 {position:absolute; overflow:hidden; z-index:1;}
  63. b1 { top:50px; left:20px; height:65px; width:41px; }
  64. c1 { top:0; left:0; height:88px; width:200px; }
  65. b2 { top:-38px; left:128px; height:66px; width:41px; }
  66. c2 { top:50px; left:0; height:61px; width:200px; }
  67. b3 { top:50px; left:240px; height:115px; width:41px; }
  68. c3 { top:0; left:0; height:92px; width:600px; }
  69. b4 { top:-42px; left:312px; height:115px; width:41px; }
  70. c4 { top:50px; left:0; height:42px; width:600px; }
  71. b5 { top:-84px; left:384px; height:116px; width:41px; }
  72. c5 { top:50px; left:0; height:100px; width:600px; }
  73. b6 { top:148px; left:20px; height:19px; z-index:1; }
  74. m6 { top:135px; left:56px; height:55px; width:100px; background:white; z-index:2; }
  75. b7 { top:30px; left:-36px; width:78px; height:19px; }
  76. c7 { top:170px; left:20px; height:300px; width:200px; }
  77. b8 { top:30px; left:77px; width:125px; height:19px; }
  78. m8 { top:15px; left:113px; width:125px; height:55px; background:white; }
  79. c8 { top:170px; left:20px; height:300px; width:600px; }
  80. b9 { top:30px; left:-36px; width:125px; height:19px; }
  81. c9 { top:222px; left:20px; height:300px; width:47px; }
  82. b10 { top:30px; left:-83px; width:125px; height:19px; }
  83. c10 { top:274px; left:20px; height:300px; width:156px; }
  84. </style>
  85. </head>
  86. <body>
  87. <c1><b1></b1></c1>
  88. <c2><b2></b2></c2>
  89. <c3><b3></b3></c3>
  90. <c4><b4></b4></c4>
  91. <c5><b5></b5></c5>
  92. <b6><x></x><y></y><br></b6><m6></m6>
  93. <c7><b7><x></x><y></y></b7></c7>
  94. <c8><b8><x></x><y></y><y></y></b8><m8></m8></c8>
  95. <c9><b9><x></x><y></y><y></y></b9></c9>
  96. <c10><b10><x></x><y></y><y></y></b10></c10>
  97. <pre>box-decoration-break:slice</pre>
  98. <pos1>
  99. <div class="columns"><div class="b vbreak slice"></div></div>
  100. <div class="columns col3"><div class="b vbreak slice"></div></div>
  101. </pos1>
  102. <pos2>
  103. <span class="b slice"><x></x><div class="h"></div><y></y></span>
  104. <span class="b slice m"><x></x><div class="h"></div><y></y><div class="h"></div><y></y></span>
  105. <pre>box-decoration-break:clone</pre>
  106. </pos2>
  107. <pos3>
  108. <div class="unbalanced columns"><div class="b vbreak clone"></div><div class="b vbreak clone" style="height:25px"></div></div>
  109. <div class="unbalanced columns col3"><div class="b vbreak clone"></div><div class="b vbreak clone"></div><div class="b vbreak clone" style="height:35px"></div></div>
  110. </pos3>
  111. <pos4>
  112. <span class="b clone"><x></x></span><div class="h"></div><span class="b clone"><y></y></span>
  113. <span class="b clone m"><x></x></span><div class="h"></div><span class="b clone m"><y></y></span><div class="h"></div><span class="b clone m"><y></y></span>
  114. </pos4>
  115. </body>
  116. </html>