html - CSS inset border radius with solid border -


i know create inset/inverted borders playing radial-gradient, here: inset border-radius css3, want know if can draw solid border of 1px around resulting shape, in image:
enter image description here

i don't want bottom-left radius inverted border, , background color inside remaining space must transparent. possible css3 , html (i not interested in canvas or svg now)?

the demo:

http://jsfiddle.net/j8gua/1/

the markup:

<figure></figure>  

enter image description here

the style:

figure{     position:relative;     width:200px;     height:120px;     margin:100px auto;     overflow:hidden;     border:1px solid black;     border-right:none;     border-bottom:none;     border-bottom-left-radius: 5px;     border-top-left-radius: 5px; } figure:before,figure:after{     content: '';     position: absolute;   } figure:before{     right: -50%;     top: 0;     background: transparent;     width: 172px;     height: 200px;     border: 1px solid black;     border-radius: 100%;     box-shadow: 0 0 0 100em red; } figure:after{     left: -1px;     bottom: 0px;     height: 16px;     width: 128px;     border-top-left-radius: 0;     border-bottom-left-radius: 5px;     border-left: 1px solid black;     border-bottom: 1px solid black;     } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -