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

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

From: cork via GitHub <sysbot+gh@w3.org>
Date: Thu, 27 Apr 2017 06:08:04 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-297620739-1493273283-sysbot+gh@w3.org>
Why not go the same route as for box-sizing? So something like `margin-mode: relative;`

Then when the support gets common you could just do:
```
* { margin-mode: relative; }

div {
  margin: 1em 2em 3em 4em;
}

#exception {
  margin-mode: physical;
  margin: 1em 2em 3em 4em;
}
```

-- 
GitHub Notification of comment by cork
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1282#issuecomment-297620739 using your GitHub account
Received on Thursday, 27 April 2017 06:08:12 UTC

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