- From: Valtteri Laitinen via GitHub <sysbot+gh@w3.org>
- Date: Fri, 15 Feb 2019 14:32:12 +0000
- To: public-css-archive@w3.org
valtlai has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-logical] More shorthands, e.g. margin-start == Spec: https://drafts.csswg.org/css-logical/#box I would propose more flow-relative shorthand properties: | Property | Corresponds to |---|--- | margin-start | margin-block-start, margin-inline-start | margin-end | margin-block-end, margin-inline-end | inset-start | inset-block-start, inset-inline-start | inset-end | inset-block-end, inset-inline-end | padding-start | padding-block-start, padding-inline-start | padding-end | padding-block-end, padding-inline-end | border-start | border-block-start, border-inline-start | border-end | border-block-end, border-inline-end They could make CSS more DRY. ```css /* For example, the following: */ inset-start: 0; /* would be equivalent to: */ inset-block-start: 0; inset-inline-start: 0; /* and sometimes to: */ inset: 0 auto auto 0; ``` There’s already shorthands for the block and inline directions (e.g. `margin-block`, `margin-inline`) but not for the start or end directions (`margin-start`, `margin-end`). Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3651 using your GitHub account
Received on Friday, 15 February 2019 14:32:15 UTC