I'm working with some css-grid formatted content. I have a rule like the one below, applied to an element within the grid:
<some selector here> {
grid-column-end: span 4;
}
When I do this, what I see in Chrome devtools (Chrome 108) is the following:
Mousing over the "circle-i" gives the following message: "The display: block property prevents grid-column-end from having an effect. Try setting display to something other than block."
I do not understand this message, and I have not been able to find any documentation that would explain it. I can't see what other display type would be appropriate in this context. Is this a thing, or a Chrome bug?
While I'm not certain whether this is a Chrome bug or not it's worth noting that the examples of using grid-column-end
on MDN don't include any information about ensuring that the display
property isn't set to block
even though they're using <div>
s in their example. You can see the sample code here: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end#examples
Looks like a Chrome bug. I can replicate the issue in Chrome, but not in Firefox, with the latter being a more reputable source of styling hints for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With