In the scenario presented below, all modern web browsers that support flexbox display the page as intended.
Check out the jsfiddle example here.
Thanks to the align-items: center;
property, the three colored blocks are evenly spaced within the section
element:
https://i.sstatic.net/yHvoR.jpg
However, in the most recent versions of Chrome Beta (54) and Canary (55), the layout appears differently:
https://i.sstatic.net/jWDBi.jpg
Is this change in behavior regarding align-items
expected in future Chrome updates? Or is it a potential bug...
UPDATE
Michael_B's explanation clarifies the distinction between align-items
and align-content
within this particular design. Refer to his updated jsfiddle for testing purposes.
Even with the correct implementation of flexbox properties, Chrome Beta and Canary still fail to render the layout correctly: