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

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

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Thu, 27 Apr 2017 23:46:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-297869431-1493336799-sysbot+gh@w3.org>
I suspect `margin-mode` might be hard to implement - it's easier if you know at parse time how a property is supposed to be interpreted.

I like the `!relative` or `!` proposal best so far. It would make it possible for multi-value properties to have both physical/logical values in the same declaration (if we want that). For example:
`background-position: 10px, ! 20px, 30px, ! 40px;`

I'm concerned though, that this might lead to new CSS properties being defined as physical-first and require `!` for logical values. This would be unfortunate since logical values are superior in most cases.  Perhaps `!` could be interpreted as a general physical/logical switch though, so that for example `grid-gap: ! 10px 20px;` would set 10px on the longhand that corresponds to the vertical axis?

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

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