[WIP] [popup] add specs for calcPossibleDrawingParams

Fixes #1006
I think it doesn't work in browser?