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

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

From: Jen Simmons via GitHub <sysbot+gh@w3.org>
Date: Thu, 17 Nov 2016 18:39:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-261330842-1479407950-sysbot+gh@w3.org>
Well, the order will be writing-mode dependent, because it's defining 
a shortcut for `align-*` and `justify-*` which do change based on 
either the writing-mode or the flex/grid direction. But I agree, the 
order `justify / align` or 'align / justify` should always be the 
same, and not change. It's just that whether each affects X or Y axis 
directions will change.

Ah, complexity.

I'm hearing folks advocate that this is more consistent with other 
place-items: <'justify-items'> / <'align-items'>;
place-self: <'justify-self'> / <'align-self'>;
place-content: <'justify-content'> / <'align-content'>;

Handle what is (in the defaults of `horizontal-tb` writing mode with 
`flex-direction: row` or `grid-auto-flow: row`) typically in the 
X-direction first, followed by the Y-direction.

Just for reference, `making` and `padding` start with top, and rotate 
clockwise, while `grid-area` starts with top and rotates 
counter-clockwise. It makes sense to me to make `place-*` follow the 
patterns set by CSS that has X & Y, rather than four values, if in 
fact those aren't consistent. 

I'm going to ask around what people think would be better for this, to
 get some more voices.

GitHub Notification of comment by jensimmons
Please view or discuss this issue at 
using your GitHub account
Received on Thursday, 17 November 2016 18:39:29 UTC

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