Re: [csswg-drafts] [css-flexbox] When omitted from the flex shorthand the flex-basis value is... (#5742)

> Is there value in making this change?

I would like to cast a vote for "yes". I've tripped over this a lot because `0%` height can get translated to "auto". The fact that `0` and `0%` are different is highly confusing. A unitless default would be better for the principle of least surprise.

[Example sandbox](https://codesandbox.io/p/sandbox/flex-shorthand-y9l4rv?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cm01izfzr00063b6j3ong2150%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cm01izfzq00023b6jj9hvqfnb%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522P)

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


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

Received on Monday, 19 August 2024 22:03:05 UTC