(I’m not sure whether that’s a bug or as per specification. Atleast for me, it is unexpected.)
An element specifies display: grid and some maximum width (e.g. 400px)
A child pre element has overflow: auto or overflow: scroll. If it overflows, it triggers scrollbars. The one grid column will then grow to the specified maximum width
Now, another pre element is wrapped in another element (it’s no longer a direct child of the grid container). It has the same properties as the other pre element. If it overflows, it grows as wide as its content demands. The one grid column will then grow just as wide.
(I’m not sure whether that’s a bug or as per specification. Atleast for me, it is unexpected.)
display: grid
and some maximum width (e.g. 400px)pre
element hasoverflow: auto
oroverflow: scroll
. If it overflows, it triggers scrollbars. The one grid column will then grow to the specified maximum widthpre
element is wrapped in another element (it’s no longer a direct child of the grid container). It has the same properties as the otherpre
element. If it overflows, it grows as wide as its content demands. The one grid column will then grow just as wide.Is this to be expected?
Let me know if additional info is needed. :)