Re: [csswg-drafts] [css-flexbox] new flex wrap value that changes the flex direction (#6366)

Some developers are getting around the lack of flex-wrap detection using the _albatross hack_ (pictured here):

![Image](https://github.com/user-attachments/assets/af05e58d-fed1-4fc8-a15d-b4d58da2b854)

Here's the initial post describing the _first albatross hack_ and the problem it solves: https://heydonworks.com/article/the-flexbox-holy-albatross/

Here's the follow-up post showing the _simplified albatross hack_: <https://heydonworks.com/article/the-flexbox-holy-albatross-reincarnated/>

And here's a separate post breaking down the _albatross hack_, how it works, extending it, and it's limitations: <https://snook.ca/archives/html_and_css/understanding-the-flexbox-albatross>

If the circular issue can be resolved, a `:wrap` pseudo-class / `flex-wrap: wrap all` extension or other similar solution would remove the need for the albatross hack and it's limitations

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 24 June 2025 05:18:14 UTC