Top box should have gray part extending outside the black outline. Lower box should lie inside the outline

box-sizing: auto
box-sizing: border-box