Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There is such a feature - border-corner-shape, although it seems to have been cut out of the spec. Here Lea Verou talks about her. But the demo is also from Lea Verou, in the code you will see how these corners are implemented through SVG.
Here , too, the dude asks how to make corners, through the border-corner-shape, they answer him that this is not yet in the specs and offer working options)
Can be done via border-image
: a background color image with transparent segments in the corners. And with the help border-image-outset
adjust the contact between the border and the background.
This is the “new” way, but still with pictures.
There is an option that will only work in chrome.
svgmask.svg file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 80 40"
width="80"
height="40"
id="svg2">
<path
id="c2"
d="
M5,0
L5,0
l70,0
v0
c0,2.8,2.2,5,5,5
h0
v30
h0
c-2.8,0-5,2.2-5,5
v0
H5
v0
c0-2.8-2.2-5-5-5
h0
V5
h0
C2.8,5,5,2.8,5,0
z"/>
</svg>
.mask01{
mask-box-image: url("svgmask.svg") 5 round;
-webkit-mask-box-image: url("svgmask.svg") 5 round;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question