Compatibility issues between flex-item and overflow-x/y

problem description

After

flex-item (parent element flex positioning, flex-item refers to its child elements) sets overflow-x: visible; overflow-y: auto , the x-axis beyond the container is not displayed. This is obviously not in line with the setting of overflow, so I want to know the reason under the phenomenon ~

problem advance

after testing, it is found that flex-item will prevent the display of content beyond the container as long as the overflow value is set to non-visible, on either axis. So maybe this is because flex-item does not support overflow-x/y, so it will only take effect of one of the values, etc.

Test example

< hr >
  .container
  display flex
  height 200px
  .menu-c
    position relative
    flex-shrink 0
    width 40px
    background yellow
    /* display inline-block */
    /* overflow visible */
    overflow-y auto 
    overflow-x visible
    .test
      width 200px
      position absolute
      top 20px
      left 10px
      height 30px
      background black   

  .main-c
    flex 1 1 auto
    background blue
A ladder is needed to see the example, so adding
display inline-block to the code is to test whether the bfc feature affects
.
Mar.12,2021

your code has nothing to do with flex
it should be said that setting overflow-y will affect x axis similarly overflow-x also y axis
css_overflow-y


clipboard.png

clipboard.png

as described above, this is what I saw in chrome (the latter is the calculated property)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36769-2b86a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36769-2b86a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?