[csswg-drafts] [css-align] Allow authors to choose a fallback alignment for distributed alignments (#11259)

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

== [css-align] Allow authors to choose a fallback alignment for distributed alignments ==
The [fallback alignment](https://drafts.csswg.org/css-align/#fallback-alignment) for [distributed alignments](https://drafts.csswg.org/css-align/#distribution-values) is:

 - `space-between`: `safe flex-start`
 - `space-around`: `safe center`
 - `space-evenly`: `safe center`
 - `stretch`: `flex-start`

However, authors may want different fallbacks, e.g. #11244 wants `space-between` but falling back to `safe center` instead of `safe flex-start`. I could also imagine wanting e.g. `space-evenly` but falling back to `unsafe center`.

So we could generalize the syntax from https://drafts.csswg.org/css-align/#align-justify-content, e.g.

```
<'align-content'> = normal | <content-distribution> | <foo> | <content-distribution>, <foo>
<foo> = <baseline-position> | <overflow-position>? <content-position>

<'justify-content'> = normal | <content-distribution> | <bar> | <content-distribution>, <bar>
<bar> = <overflow-position>? [ <content-position> | left | right ]
```




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


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

Received on Thursday, 21 November 2024 19:12:53 UTC