W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [css-logical] Syntax for `margin`-like shorthands

From: Chris Harvey via GitHub <sysbot+gh@w3.org>
Date: Sun, 07 May 2017 22:33:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-299739990-1494196398-sysbot+gh@w3.org>
If the keyword route is decided upon, can the syntax allow it to be at the beginning or end of the declaration? Inspired by `box-shadow` `inset` (that is, inset of the box-shadow, not the new [`inset`](https://drafts.csswg.org/css-logical/#propdef-inset) positioning property).

So for `margin` it would be
```
relative? && [ <length> | <percentage> | auto ]{1,4}
```


-- 
GitHub Notification of comment by chharvey
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1282#issuecomment-299739990 using your GitHub account
Received on Sunday, 7 May 2017 22:33:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC