Re: [csswg-drafts] [css-logical] Flow-relative syntax for `margin`-like shorthands

Just in case, how this is made in Sciter:
1. Sciter is not using logical properties.
2. Instead I've added `mapping` property:
margin: 1em 1em 1em 2em;
mapping: left-to-right( margin );
that above is interpreted as 
margin: 1em 2em 1em 1em;
`left-to-right(...)` function accepts list of following keywords: `none` , `inherit`, `all`, `margin`, `padding`, `border`, `layout`, `alignment` and `image`.

Practice shows that development is made almost always in LTR mode. And then RTL is added to existing design this way:
ul:dir(rtl) { mapping: left-to-right( margin ); }

GitHub Notification of comment by c-smile
Please view or discuss this issue at using your GitHub account

Received on Monday, 27 August 2018 22:58:19 UTC