[WIP] [popup] add specs for calcPossibleDrawingParams

Fixes #1006
We write specs to work in all supported browsers