I have a kids web application for colouring butterflies, which uses a clipping path to set the boundary of the painting area.
The application works fine on desktop browsers, Opera Mobile and iOS devices, but the Android default browser seems to treat the clipping area as empty, preventing any subsequent canvas actions from taking effect.
You can find the source code here:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/butterfly/
However the main actions are:
context.beginPath();
(lots of context.bezierCurveTo statements to draw a butterfly shape)
context.closePath();
context.stroke();
context.fillStyle = "rgb(255,255,255)";
context.fill();
context.clip();
I've tried changing the order around, e.g. clipping before trying to stroke or fill the shape, but in that case on Android it doesn't actually draw anything - again its treating the clipping path as empty.
Any ideas? Is it me, or is there an undocumented limitation in the Android webview on clipping paths?