Missing CSS

What's missing in CSS layout

Patrick Brosset -

I recently spent time asking for and reviewing feedback about CSS layout.

I'm interested in learning more about pain points which developers face with layout in CSS, and what they're missing.

For the first part, pain points, I went over the results of the 2025 State of CSS survey, and focused specifically on grid and flexbox, which are the topmost responses to the Layout Pain Points question.

For the second part, what's missing, I ran a mini survey of my own on Mastodon, Bluesky, and LinkedIn, asking people what they were missing in CSS layout.

Let's dive into my findings.

CSS Grid pain points

This is my interpretation of the free-form responses on Layout Pain Points - State of CSS 2025.

Flexbox pain points

This is my interpretation of the free-form responses on Layout Pain Points - State of CSS 2025.

What's missing in CSS layout?

This is my interpretation of the responses to a question I asked on Mastodon, Bluesky, and LinkedIn, sorted by number of mentions.

  1. Overflow and wrap detection (~12 mentions)

    No way to know, in CSS alone, when content overflows or wraps to a new line. People need to adapt layouts reactively (e.g. collapse nav items that don't fit, show a "+3" badge, add scroll affordances, style wrapped rows differently). Currently requires JS.

  2. CSS Regions / flowing content across elements (~5 mentions)

    No way to have text content flow from one layout box into another (like InDesign linked text frames). Needed for editorial/article layouts with pull quotes, sidebars, multi-column magazine-style designs.

  3. CSS Exclusions and non-rectangular text wrapping (~5 mentions)

    Cannot wrap text fully around an element (all sides), wrap inside a shape, or have text flow around elements with clip-paths/border-radii. Editorial layouts that print handles easily are impossible on the web.

  4. Repositioning elements independent of DOM structure (~5 mentions)

    Cannot move an element to a different visual position without changing the DOM or duplicating markup. Needed for responsive reordering (e.g. TOC in sidebar on desktop, above content on mobile) and assigning children to grid areas across nesting boundaries.

  5. Content-aware grid sizing and spanning (~3 mentions)

    Grid items can't automatically span columns based on their content size or snap to column edges. Developers resort to JS to calculate spans dynamically.

  6. Page/column floats (~2 mentions)

    Cannot float an element to the top or bottom of a column or page/section — a basic print-layout feature missing from CSS.

  7. Anchor positioning extensions (~2 mentions)

    Anchor positioning doesn't yet work relative to cursors, selected text, or text-line start/end positions.

  8. Shadow DOM / slot styling (~2 mentions)

    New CSS features don't consider shadow DOM boundaries; no :has-slotted or proper slot-level layout control.

  9. Text fit-to-width / dynamic text scaling (~2 mentions)

    No native way to scale text to fill its container width without JS hacks.

  10. Per-line flex-wrap control (~2 mentions)

    Cannot apply different alignment or styles to individual wrapped lines in a flex container.

  11. Grid gap and empty cell styling (~2 mentions)

    No way to style grid gaps or empty cells directly; requires extra wrapper divs.

  12. Other single mentions

    • masonry layout
    • inline icon attachment to words
    • soft line-break indication
    • decimal-aligned columns
    • circular/polar layout
    • curved text
    • connectors/flow-chart arrows between boxes
    • mesh/non-linear transforms
    • safe-area-aware expansion
    • sticky table columns without JS
    • virtual keyboard viewport handling
    • border-offset
    • editable context menus

Conclusion

There's a lot of things in this list that could lead to significant improvements for web developers. If I had to start with one, it would be overflow and wrapping detection, as it would unlock a lot of responsive design possibilities without needing JS.