If it only fails in Firefox it's probably because Firefox needs -moz-box-sizing: border-box (yeah, why does Firefox still need that prefix!)
Fixing it with that is less likely to break something else.