support border-box.Fixes #531