checking for canvas style element