[WIP] [popup] add specs for calcPossibleDrawingParams

Fixes #1006
> I think it does work in browsers [..]

My comment was about hard coded `width`, `height` and other values in your asserts. Where this 400 and 276 come from? Aren't they specific for exact browser window dimensions?