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

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

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Thu, 27 Apr 2017 05:35:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-297616530-1493271357-sysbot+gh@w3.org>
I like the idea of !keyword that could be added to any 4-value clockwise shorthand (and their 3-value, 2-value, and 1-value versions). How about just an unadorned `!`, to make it an even easier, quicker switch? So...
```
border-radius: 2em 1em 4em / 0.5em 3em !;
```
is equivalent to
```
border-block-start-inline-start-radius:  2em 0.5em;
border-block-start-inline-end-radius:    1em 3em;
border-block-end-inline-end-radius:      4em 0.5em;
border-block-end-inline-start-radius:    1em 3em;
```
Adding the `!` to a 1-value version, like `margin: 0 !` wouldn't have any noticeable effect, but should be allowed.

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

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