W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

Re: [csswg-drafts] [css-align] Add shorthands for alignment properties

From: Una Kravets via GitHub <sysbot+gh@w3.org>
Date: Thu, 17 Nov 2016 19:03:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-261337272-1479409380-sysbot+gh@w3.org>
To start, I want to say that I like the idea of the `place-*` prefix, 
and I can see the consistency here with other CSS conventions. 

However, I'm worried that this can get confusing though  (the 
existence of all of these properties):

```
justify-content: space-between;
align-content: center;
place-content: space-between
```

Looking at those without prior knowledge, it's hard to understand what
 they all mean individually, and how to remember the nuances. Maybe 
prepending with `grid` might help?

```
grid-place-items: <'justify-items'> / <'align-items'>;
grid-place-self: <'justify-self'> / <'align-self'>;
grid-place-content: <'justify-content'> / <'align-content'>;
```

And then a shortcut for all of them can be:

```
grid-placement: <grid-place-items> <grid-place-self> 
<grid-place-content>
```

^ These will likely all be used together anyway to build layouts.

-- 
GitHub Notification of comment by una
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/595#issuecomment-261337272 
using your GitHub account
Received on Thursday, 17 November 2016 19:03:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC