Parse viewport rules