Hi to all, this is a related Firefox problem.
I have a menu in which is applied typeface script.
Typeface 0.11 version doesn't support hover on links. There is an experimental version but doesn't work very well for me, so i tried to implement hover by myself.
Problem is: hover works pretty well changing canvas context property fillColor and then calling fill(), but the stroke on hovered voice remains on another color.
Difficult to explain, so i put some test code online: TEST CODE
As you can see, passing with mouse on the menu voices triggers the hover and the element change, but remains bordered in red.
I tried in many ways, without success.
The core of the hover is this:
var ctx = vectorElement.getContext('2d');
if (ctx.fillStyle.toUpperCase() != '#DF1C1C') { //control if it's already in that color
ctx.fillStyle = '#DF1C1C';
//ctx.strokeStyle = '#DF1C1C'; //tried this to change the stroke style
//ctx.clearRect(0, 0, 1000, 1000); //tried this to clean the rectangle
ctx.fill();
//ctx.stroke(); //tried this to repaint the stroke
}
Any ideas?? Thanks in advance to all!