JavaFx Browser usually handles calling Context.setLineDash for any 2D canvas, but it does NOT work for when canvas is using a "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:
var ctx = canvas.getContext('2d');
ctx.lineWidth = 4;
ctx.strokeStyle = '#f00';