button with display:block not stretched
The initial defination of Button Layout was committed on 2019, which solved the rendering problem of button elements. https://github.com/whatwg/html/pull/4143. we could refer to the HTML Living Standard to see an important rule of Button Layout as follows: If the computed value of ‘inline-size’ is ‘auto’, then the used value is the fit-content inline size. https://developer.mozilla.org/en-US/docs/Web/CSS/inline-size … Read more