FIXED: further subtleties with the handling of viewports and viewboxes (this commit is MUCH MORE ROBUST than previous one, it handles more edge-cases, better)