Re: [csswg-drafts] [css-flexbox][css-grid] Providing authors with a method of opting into following the visual order, rather than logical order (#7387)

Drafted up css-display-4 ED with `reading-order` and `layout-order` longhands for `order`: https://drafts.csswg.org/css-display-4/
Agenda+ to request CSSWG review of the text and the following details:
* `order` as shorthand for `reading-order` and `layout-order`
* `reading-order` applied to all elements, not just flex and grid
* `order` shorthand syntax defined as:
    ```
    [ <'layout-order'> <'reading-order'>? ] | /* reading defaults to 0 */
    [ reading && <'reading-order'> ] |        /* set reading to value, layout to value */
    [ layout && <'layout-order'> ] |          /* set layout to value, reading to zero */
    [ reading-and-layout && <integer> ] `     /* set both to same value */
    ```
    Note: We are deliberately making it uncomfortable to set both, since in most cases where you want to change both you're supposed to fix the source order.
* https://github.com/w3c/csswg-drafts/pull/8257

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


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

Received on Friday, 23 December 2022 22:19:13 UTC