-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Labels
Description
In #7245 we resolved to add the full set of longhands to overflow-clip-margin, but didn't resolve on what we want the shorthand syntax to look like. As a reminder, the current syntax looks like this:
overflow-clip-margin*: <visual-box> || <length [0,∞]>
Since the keyword and length are reorderable and each is optional, we can't simply quadruple the single-value syntax as it would be ambiguous. Possible options are:
- Use a different delimiter, e.g. /, as we did in the grid properties.
- Allow for {1,4} on length but not keyword:
<visual-box> || <length [0,∞]>{1,4} - Allow for {1,4} on keyword but not length:
<visual-box>{1,4} || <length [0,∞]>
The middle option gives us syntax that's closest to margin so my suggestion would be to take that. But that does mean some combinations of longhands are not representable in the shorthand.