I've played with this nice CSS Flexbox demo page and I understand most of the concepts, however I was not able to see flex-shrink
in work. Whatever settings I apply there, I see no difference on the page.
From the spec:
<‘flex-grow’>
This component sets ‘flex-grow’ longhand and specifies the flex grow factor, which determines how much the flex item will grow relative to the rest of the flex items in the flex container when positive free space is distributed. When omitted, it is set to ‘1’.
<‘flex-shrink’>
This component sets ‘flex-shrink’ longhand and specifies the flex shrink factor, which determines how much the flex item will shrink relative to the rest of the flex items in the flex container when negative free space is distributed. When omitted, it is set to ‘1’. The flex shrink factor is multiplied by the flex basis when distributing negative space.
In what circumstances will flex-shrink
be applied (i.e. when the negative space is distributed)? I've tried custom page with setting widths on the flexbox element and (min-)widths of the elements inside it to make an overflow, but it seems it's not the described case.
Is it supported at all already?
As a solution, either a set of options on the linked demo, or JSFiddle-like live demo will be highly appreciated.