CSS Grid properties not being recognized
PhpStorm isn't recognizing the CSS grid property "place-self". The error reads, "Unknown CSS property 'place-self'" My usage of the property is correct.
Example below.
.container {
display: grid;
}
.container a {
place-self: center;
}
Please sign in to leave a comment.
What PhpStorm version do you work with? Works fine for me in 2018.2.1:
I'm running 2018.1.5
Ups.. My fault - i had inspections disabled for the file. reproduced, logged as https://youtrack.jetbrains.com/issue/WEB-34342
Note that https://drafts.csswg.org/css-align-3/#place-self-property is still a draft, not yet supported by most browsers
Should I stick to using align-self and justify-self then?
well, you can, as
place-selfproperty is a shorthand for align-self and justify-self properties, and they seem to be fully supported by browsers...I'm confused. Your previous comment said "Note that https://drafts.csswg.org/css-align-3/#place-self-property is still a draft, not yet supported by most browsers" but now you say "
place-selfproperty is a shorthand for align-self and justify-self properties, and they seem to be fully supported by browsers".I don't think I'm understanding.
btw, thank for your help on all my other posts!
align-self and justify-self properties are supported,
place-selfproperty is still a draft.Got it, thank you! :)