update flex style to support new standard for mozilla