Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Chrome warning about using justify-content on grid layouts
Post Body

Please look at this Code Pen: https://codepen.io/will_beaumont/pen/GRGazMr

As you can see, the ul element has a grid layout, and in particular it has justify-content set to space-between. The latter behaves exactly as you would expect it to if this were a flex layout, spreading out the columns and ensuring that the last column's right edge lines up with the right edge of the container.

Yet, Chrome grumbles about this when you inspect the list. In the Styles tab, it grays out justify-content: space-between; and puts an icon next to it that when you mouseover shows this message: The display: grid property prevents justify-content from having an effect. Try setting the display: grid property to display: flex. Clearly this is not true. Just uncheck justify-content and you'll see it has an effect. What is the meaning of this warning really? Is it trying to hint that justify-content will no longer be supported on grid layouts in future versions? That's what I worry about.

EDIT: Fixed grammatical error

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,125
Link Karma
983
Comment Karma
4,129
Profile updated: 3 days ago
Posts updated: 8 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago