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

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