Check dimensions with rules.