Post

Did I mention that `flex-wrap: balance` landed in Chrome stable last month!? πŸ‘€πŸ‘€πŸ‘€

Introducing 🀯 flex-wrap: balance 🀯 Would you use this? ⚠️ Not a real feature yet, just something one of our engineers has been working on. (You can try it out in the latest Chrome Canary with the experimental web platform features flag though!)

16 reposts118 likes

Wish <div> was a valid descendant of <ul> (like in <dl>), so it could be simple to polyfill this in for older browsers (by creating a bunch of wrapping flex containers with even-numbered elements)

Well, then I would need to do this: <ul> <li role="presentation"> <ul role="presentation"> <li>1</li> <li>2</li> </ul> </li> <li role="presentation"> <ul role="presentation"> <li>3</li> <li>4</li> </ul> </li> </ul> Which personally feels weird even if it's technically fine

You can have the role=presentation elements (children of the li) be divs unless you need another set of list items?