Hacker News new | past | comments | ask | show | jobs | submit login

Because that implies you could have the display and display-contents properties have values at the same time that can conflict with each other.

The thing is, display: flex does control some aspects of the element it is applied to. Because there is display: inline-flex. It is roughly the equivalent of block and inline-block. It's just an added bonus that display: flex also affects the immediate children, making them flex items to be manipulated. For instance, make a div display: table and imagine its immediate children are automatically display: table-row, or something of that nature.




Doesn't that redundancy kinda suggest that there are two orthogonal things going on here?

ie,

    block | inline
      ---------
    flex  | inline-flex
What could you label the axes here? Or is this not a valid way to frame the relationship between these things?


I'm not sure I understand what it is your asking.

I'm guessing maybe I can say flex = block and inline-flex = inline-block? Except that the flex properties also affect its immediate children.


inline and inline-block are not the same thing. inline-flex behaves like inline-block


Brainfart. You're right, thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: