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;
}

8 comments

What PhpStorm version do you work with? Works fine for me in 2018.2.1:

 

0

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

1

Should I stick to using align-self and justify-self then?

0

well, you can, as place-self property is a shorthand for align-self and justify-self properties, and they seem to be fully supported by browsers...

1

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-self property 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!

0

align-self and justify-self properties are supported, place-self property is still a draft.

2

Please sign in to leave a comment.