CSS parameters validation. Also fixed a bug so stupid it could only happen in PHP.