box-decoration-break-with-inset-box-shadow-1.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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>CSS Test: Testing box-decoration-break:clone with inset box-shadow</title>
  9. <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=613659">
  10. <link rel="help" href="http://dev.w3.org/csswg/css-break/#break-decoration">
  11. <link rel="match" href="box-decoration-break-with-inset-box-shadow-1-ref.html">
  12. <meta charset="utf-8">
  13. <style>
  14. span { border:3px dashed pink; margin:0 1em; line-height:4em; box-decoration-break:clone; }
  15. span {
  16. font-family:monospace;
  17. padding:1em 1em;
  18. background-image: url(green-circle-alpha-32x32.png);
  19. }
  20. .o0 {
  21. border-radius: 12px;
  22. -webkit-box-shadow: inset 0px 0px 0px 10px #00F;
  23. box-shadow: inset 0px 0px 0px 10px #00F;
  24. }
  25. .o10 {
  26. border-radius: 12px;
  27. -webkit-box-shadow: inset 0px 0px 7px 10px #00F;
  28. box-shadow: inset 0px 0px 7px 10px #00F;
  29. }
  30. .o10x {
  31. border-radius: 12px;
  32. -webkit-box-shadow: inset 0px 0px 7px 0px #00F;
  33. box-shadow: inset 0px 0px 7px 0px #00F;
  34. }
  35. .p0 {
  36. border-radius: 12px;
  37. -webkit-box-shadow: inset 15px 9px 0px 10px #00F;
  38. box-shadow: inset 15px 9px 0px 10px #00F;
  39. }
  40. .p10 {
  41. border-radius: 12px;
  42. -webkit-box-shadow: inset 15px 9px 7px 10px #00F;
  43. box-shadow: inset 15px 9px 7px 10px #00F;
  44. }
  45. .p10x {
  46. border-radius: 12px;
  47. -webkit-box-shadow: inset 15px 9px 7px 0px #00F;
  48. box-shadow: inset 15px 9px 7px 0px #00F;
  49. }
  50. .so0 {
  51. border-radius: 0px;
  52. -webkit-box-shadow: inset 0px 0px 0px 10px #00F;
  53. box-shadow: inset 0px 0px 0px 10px #00F;
  54. }
  55. .so10 {
  56. border-radius: 0px;
  57. -webkit-box-shadow: inset 0px 0px 7px 10px #00F;
  58. box-shadow: inset 0px 0px 7px 10px #00F;
  59. }
  60. .so10x {
  61. border-radius: 0px;
  62. -webkit-box-shadow: inset 0px 0px 7px 0px #00F;
  63. box-shadow: inset 0px 0px 7px 0px #00F;
  64. }
  65. .sp0 {
  66. border-radius: 0px;
  67. -webkit-box-shadow: inset 15px 9px 0px 10px #00F;
  68. box-shadow: inset 15px 9px 0px 10px #00F;
  69. }
  70. .sp10 {
  71. border-radius: 0px;
  72. -webkit-box-shadow: inset 15px 9px 7px 10px #00F;
  73. box-shadow: inset 15px 9px 7px 10px #00F;
  74. }
  75. .sp10x {
  76. border-radius: 0px;
  77. -webkit-box-shadow: inset 15px 9px 7px 0px #00F;
  78. box-shadow: inset 15px 9px 7px 0px #00F;
  79. }
  80. .m b { visibility:hidden; }
  81. .m { box-shadow:none; background:none; border-style:solid; border-radius:0; border-color:transparent; }
  82. .m.o0, .m.o10, .m.o10x, .m.p0, .m.p10, .m.p10x { border-bottom-color: black; }
  83. </style>
  84. </head>
  85. <body style="margin:49px 50px;">
  86. <div style="position:relative">
  87. <table border=1 cellpadding=10><tr><td>
  88. <span class="o0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  89. <span class="o10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  90. <span class="o10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  91. </td><td>
  92. <span class="p0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  93. <span class="p10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  94. <span class="p10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  95. </td><td>
  96. <span class="so0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  97. <span class="so10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  98. <span class="so10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  99. </td><td>
  100. <span class="sp0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  101. <span class="sp10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  102. <span class="sp10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  103. </td></tr>
  104. </table>
  105. <div style="position:absolute; top:0px;left:0;">
  106. <!-- mask out 1px of outer edge of the rounded borders at some places due to rounding errors -->
  107. <table border=1 cellpadding=10><tr><td>
  108. <span class="m o0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  109. <span class="m o10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  110. <span class="m o10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  111. </td><td>
  112. <span class="m p0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  113. <span class="m p10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  114. <span class="m p10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  115. </td><td>
  116. <span class="m so0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  117. <span class="m so10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  118. <span class="m so10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  119. </td><td>
  120. <span class="m sp0"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  121. <span class="m sp10"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  122. <span class="m sp10x"><b>&nbsp;&nbsp;a&nbsp;&nbsp;<br>&nbsp;&nbsp;b&nbsp;&nbsp;<br>&nbsp;&nbsp;c&nbsp;&nbsp;</b></span><br>
  123. </td></tr>
  124. </table>
  125. </div>
  126. </div>
  127. </body>
  128. </html>