CSS implementation for sketch recognition