Firefox DevTools flags CSS that is valid but has no effect
DevTools warnings for invalid CSS are familiar ground. A declaration like colr: red; fails because colr is not a real property, and color: rd; fails because rd is not a real value. In most cases the tools show the declaration struck through with a warning icon (
). Telling the developer which part of the declaration was wrong, or offering a likely fix, would be a nice extra — but that's not something to complain about.
Firefox is moving toward covering a different kind of failure: declarations that are syntactically fine yet still don't apply because they fail other conditions. The example given: a grid-column-gap: 1rem dropped onto an arbitrary <p> produces a popup with this message:
grid-column-gaphas no effect on this element since it's not a flex container, a grid container, or a multi-column container.Try adding either
display:grid,display:flex, orcolumns:2. Learn more
That is a genuinely convenient bit of feedback.
Elijah Manor has a blog post and a video that look into the feature further.



