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

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

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Wed, 12 Oct 2016 22:59:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-253364049-1476313187-sysbot+gh@w3.org>
I tend to think these shorthands should have a separator other
than space.  Otherwise, the following two snippets leads to
different results:

```
element.style.alignItems = A;
element.style.justifyItems = B;
```
vs.

`element.style.placeItems = A + " " + B;`

... when B starts with `safe`.

Same problem also occurs for `placeContent` with `A="end"` and
`B="stretch end"`, etc.


-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/595#issuecomment-253364049 
using your GitHub account
Received on Wednesday, 12 October 2016 22:59:56 UTC

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