it's not a bug, it's a feature.
CSS Box SizingMar 2019

It's a CSS property is used to determine if padding and border should be included in an element's total width & height.

lxVx3yO