It turns out that there isn't that much foam in a shaving cream can. However, I wonder what would happen if you did this with one of that hard setting foam filler stuff. (Apart from ruining whatever you filled with foam).
Too bad. The imagining was better than the reality, eh?
Runky Funky