border-dotted-radius.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>dotted border with radius</title>
  6. <style>
  7. .box {
  8. position: relative;
  9. width: 420px;
  10. height: 420px;
  11. }
  12. .mask {
  13. position: absolute;
  14. top: 0px;
  15. left: 0px;
  16. }
  17. table {
  18. border-collapse: separate;
  19. border-spacing: 10px;
  20. empty-cells: show;
  21. }
  22. td {
  23. border-style: dotted;
  24. border-radius: 24px;
  25. border-color: black;
  26. height: 120px;
  27. width: 120px;
  28. box-sizing: border-box;
  29. }
  30. /* Bug 1303094 - Disable unreliable 1px and 2px tests. */
  31. .no-fill {
  32. border-style: solid;
  33. }
  34. .no-unfill {
  35. border-style: none;
  36. }
  37. .A {
  38. border-width: 1px;
  39. }
  40. .B {
  41. border-width: 2px;
  42. }
  43. .C {
  44. border-width: 6px;
  45. }
  46. .D {
  47. border-width: 8px;
  48. }
  49. .E {
  50. border-width: 16px;
  51. }
  52. .F {
  53. border-width: 24px;
  54. }
  55. .G {
  56. border-width: 32px;
  57. }
  58. .H {
  59. border-width: 48px;
  60. }
  61. .I {
  62. border-width: 60px;
  63. }
  64. </style>
  65. </head>
  66. <body>
  67. <div class="box">
  68. <table>
  69. <tr><td class="A no-fill"></td><td class="B no-fill"></td><td class="C"></td></tr>
  70. <tr><td class="D"></td><td class="E"></td><td class="F"></td></tr>
  71. <tr><td class="G"></td><td class="H"></td><td class="I"></td></tr>
  72. </table>
  73. <img class="mask" src="border-dotted-radius-filled-mask.png">
  74. </div>
  75. <div class="box">
  76. <table>
  77. <tr><td class="A no-unfill"></td><td class="B no-unfill"></td><td class="C"></td></tr>
  78. <tr><td class="D"></td><td class="E"></td><td class="F"></td></tr>
  79. <tr><td class="G"></td><td class="H"></td><td class="I"></td></tr>
  80. </table>
  81. <img class="mask" src="border-dotted-radius-unfilled-mask.png">
  82. </div>
  83. </body>
  84. </html>