layout: If the border style is "none", treat its width as 0.

Closes #1383.

r? @kmcallister