On https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing#values I read that content-box should be the default box-content mode ("as specified by the CSS standard"). However, for <button>, I see border-box (both in the devtools and in the rendered result) both in Chrome and Firefox.
I use the following HTML to test it. Why are the green areas not the same length?
I noticed that <button> has display: inline-block and thought that may be related, but no – even if I set the same display for a <div>, it still doesn't change the box-sizing automatically.
<html>
<style>div, button {background: green; width: 100px; padding: 0 30px;}</style>
<body>
<div>ha</div>
<button>bu</button><br>
<div style="display: inline-block">ga</div>
</body>
</html>