Post

The CSSWG just resolved to add this to the spec 🥳 github.com/w3c/csswg-dr...

github.com[css-flexbox-2] Add flex-wrap: balance; · Issue #3070 · w3c/csswg-draftsWe discussed having a flex-wrap:balance value, similar to text-wrap:balance, to even out the length of pre-flexed lines. We should add to level 2.

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!)

23 reposts157 likes

I wish you could @import stylesheets into scope() selectors, like you can with layers. Would really help with linking component styles to specific elements without having to resort to physically placing the stylesheet inside the HTML element.

developer.mozilla.org@scope - CSS | MDNThe @scope CSS at-rule enables you to select elements in specific DOM subtrees, targeting elements precisely without writing overly-specific selectors that are hard to override, and without coupling y...