Updated the flex property for the latest chrome version to fix #4602 and #4870

The latest version of chrome started supporting the unprefixed version of flex and fixed some issues, which broke the fixes done for #4602 and #4870. This PR fixes that.

Test this using a shell with the new sprint, although it is also fixed with a previous shell.