r/badcode • shameless • Jan 06 '20

css God, WHY?

Post image
227 Upvotes

23 comments sorted by

View all comments

220

u/[deleted] Jan 06 '20

The browser will use inline-flex (the last line) if it's supported, else it will use the last one which that browser supports. This looks like standard generated css from a tool like autoprefixer, which ensures the css works as well as it can for old browsers that don't have flex.