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

I wrote a similar idea, https://github.com/w3c/csswg-drafts/issues/1282#issuecomment-298143962:
> How about `margin-bi` (suffix `-bi`, stands for "block and inline")? I know this is exceptional in CSS property naming convention (avoid abbreviations and use complete words), but has the following advantages:
> 
> * easy to type, only three additional characters to the original name
> * we have `*-block` and `*-inline` properties, and making the combined shorthand names using the first letters of "block" and "inline" will be easy to understand
> * "bi" indicates the order of values, block is first then inline, and convenient to remember the value syntax

I think the naming `margin-*` is better than `lmargin` because:
- we have already `margin-block` and `margin-inline` shorthand properties, and the naming `lmargin` is not consistent with those.
- `lmargin` will be mistaken for the left margin.
- when property names are alphabetically sorted, `lmargin` and other margin properties become separated, so suffix is better than prefix.

If "-bi" suffix is not good, other candidates would be:
- `margin-fr` - "fr" stands for "flow relative"
- `marginf` - shorter suffix for "flow relative". I think the suffix "f" is be better than "l" (logical) or "r" (relative) that will be mistaken for "left" or "right"

-- 
GitHub Notification of comment by MurakamiShinyu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1282#issuecomment-701294373 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 September 2020 10:05:55 UTC