From http://www.html5rocks.com/en/tutorials/masking/adobe/?redirect_from_locale=zh