[csswg-drafts] [css-box-4] Longhand values of `margin-trim` allow more combinations than shorthand values (#7884)

SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-box-4] Longhand values of `margin-trim` allow more combinations than shorthand values ==
With the change of #6643 we can now have different combinations of `block-*` and `inline-*` values for the `margin-trim` property.

The current syntax is:

```
none | block | inline | [ inline-start || inline-end || block-start || block-end ]
```

This syntax allows combinations of `*-start` and `*-end` values that for both block and inline directions. Currently, those cannot be represented by the longhand values `block` and `inline`.

To allow to express those cases in a more condense way, I suggest to allow to combine the longhand and shorthand values.

The syntax would then be:

```
none |
[ block || inline ] |
[ block || inline-start || inline-end ] |
[ inline || block-start || block-end ] |
[ inline-start || inline-end || block-start || block-end ]
```

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7884 using your GitHub account


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

Received on Saturday, 15 October 2022 07:41:22 UTC