Hello!
I ran into what I believe to be a bug when I add elements with borders to container elements with a specified padding. The child elements are set to have box-sizing: border-box, which should include the border in the calculated width.
However, while it appears that the padding-left is correctly calculated, there is extra padding on the right side that amounts to the correct padding + 2* the border width. (Seen in attached screenshots)
While I managed a workaround, this seemed like incorrect behavior and I thought it useful to bring to your attention.
Test case + Workaround
https://gist.github.com/ehzhang/fd6cf7948dd3be82675f518ba0cb0dcd
Thanks!
I ran into what I believe to be a bug when I add elements with borders to container elements with a specified padding. The child elements are set to have box-sizing: border-box, which should include the border in the calculated width.
However, while it appears that the padding-left is correctly calculated, there is extra padding on the right side that amounts to the correct padding + 2* the border width. (Seen in attached screenshots)
While I managed a workaround, this seemed like incorrect behavior and I thought it useful to bring to your attention.
Test case + Workaround
https://gist.github.com/ehzhang/fd6cf7948dd3be82675f518ba0cb0dcd
Thanks!