views:

32

answers:

1

It's a known bug that -moz-border-radius doesnt work on images in firefox. What's a way to get this functionality without resorting to putting the image as a background on a rounded div?

A: 

In current Firefox you can use SVG filters. Have an SVG file clip.svg like this:

<svg:svg height="0">
    <svg:clipPath id="c1" clipPathUnits="objectBoundingBox">
        <svg:rect x="0" y="0" rx="0.05" ry="0.05" width="1" height="1"/>
    </svg:clipPath>
</svg:svg>

And apply it in CSS like this:

.target { clip-path: url(clip.svg#c1); }
robertc