JavaFx Browser usually handles calling Context.setLineDash for any 2D canvas, but it does NOT work for when canvas is using a "strokeRect",
strokeRect.
We allow our customers to configure line dash for rectangles so it won't work right when using javafx WebView as the browser, but it works for all other browsers.
Please, refer to attached PNG image for this problem too.
This problem can be reproduced with following simple jsfiddle:
https://jsfiddle.net/8tHDf/3/
{code}
var ctx = canvas.getContext('2d');
ctx.lineWidth = 4;
ctx.setLineDash([4,4]);
ctx.strokeStyle = '#f00';
ctx.strokeRect(10,30,70,70);
{code}