The Shrinkwrap Problem: Possible Future Solutions
with tags: #Anchor Positioning #Future CSS #CSS Round #Experiment #CSS
There is one old, yet unsolved, CSS problem: shrinking containers to fit the content when it automatically wraps. While not intentional, anchor positioning allows us to come closer to solving it, at least for a few cases. In this article, I’ll demonstrate how we can use anchor positioning to neatly decorate wrapping text or elements in flex or grid contexts.