<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>mixed border with mixed radius</title> <style> .box { position: relative; width: 420px; height: 420px; } .mask { position: absolute; top: 0px; left: 0px; } table { border-collapse: separate; border-spacing: 10px; empty-cells: show; } td { border-color: black; border-width: 12px 18px 8px 24px; border-style: dotted dotted dashed double; height: 120px; width: 120px; box-sizing: border-box; } .A { } .B { border-radius: 8px; } .C { border-radius: 16px; } .D { border-radius: 32px; } .E { border-radius: 48px; } .F { border-radius: 60px; } .G { border-radius: 60px/24px; } .H { border-radius: 0px 60px; } .I { border-radius: 60px 0px; } </style> </head> <body> <div class="box"> <table> <tr><td class="A"></td><td class="B"></td><td class="C"></td></tr> <tr><td class="D"></td><td class="E"></td><td class="F"></td></tr> <tr><td class="G"></td><td class="H"></td><td class="I"></td></tr> </table> <img class="mask" src="border-mixed-filled-mask.png"> </div> <div class="box"> <table> <tr><td class="A"></td><td class="B"></td><td class="C"></td></tr> <tr><td class="D"></td><td class="E"></td><td class="F"></td></tr> <tr><td class="G"></td><td class="H"></td><td class="I"></td></tr> </table> <img class="mask" src="border-mixed-unfilled-mask.png"> </div> </body> </html>