Node editor - Show Flex not working

Hi, I have set up a simple block to show on Successful Form Submission, I set the block to ‘Display none’ and set it to display flex in the node editor.

The block does show on successful submission, but it shows as display: block, not display: flex.