Re: [csswg-drafts] more options beside of `column` and `row` for `flex-direction` and `flex-auto-flow` (#3622)

A simplest use-case is when your responsive layout differs from the placement of elements in DOM.

```html
<div class="columns">
  <div class="item">FOO</div>
  <div class="item">BAR</div>
</div>

<style>
.columns
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 600px)
{
  .columns
  {
    grid-template-columns: auto;
    grid-auto-flow: row-reverse;
    /* BAR renders before FOO */
  }
}
</style>
```

And I actually need that a lot. Writing `.columns > :nth-child(1)` is cumbersome.

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

Received on Friday, 12 July 2019 20:43:01 UTC