My web site has navigation, presented as a list of rectengular buttons with round corners.
Each button should have it's own custom background, which is a photo. Photo is bigger than button and should move in response to mouse movement over this button. We have an effect, like we are looking through the window.
Navigation has following HTML structure: "ul > li > a > img".
I think, each "ul > li" should be a rectangle with round corner and acting as clipping mask for image.
Setting "overflow: hidden;" does't works, because clipping area is simple rectangle without round corners.
CSS properties, like below, does working under Webkit-browsers, but not Firefox.
mask-image: url(/images/mask.png);
mask-position: 0 0;
mask-repeat: no-repeat no-repeat;
mask-size: 125pt 77pt;
What is a cross-browser way to do it ?