It’s possible to screenshot any html element from the Safari inspector (Firefox and Chrome have similar features). They’re completely isolated and transparencies are preserved in the png.