You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The computed values of ‘overflow-x’ and ‘overflow-y’ are the same as their specified values, except that some combinations with ‘visible’ are not possible: if one is specified as ‘visible’ and the other is ‘scroll’ or ‘auto’, then ‘visible’ is set to ‘auto’. The computed value of ‘overflow’ is equal to the computed value of ‘overflow-x’ if ‘overflow-y’ is the same; otherwise it is the pair of computed values of ‘overflow-x’ and ‘overflow-y’.
期望结果
希望在 context-menu 的 overflow 为 scroll 的情况下 sub-menu 中的 sub-item 能够正常显示
实际结果
长菜单时会遇到要把 context-menu 的 overflow-y 置为 scroll 的情况,可是 w3c 标准下不允许出现 overflow-y: scroll 时 overflow-x: visible 的情况。这种情况下 sub-menu 里的子菜单再使用相对定位会出现遮挡情况
复现步骤
codepen 复现链接:
https://codepen.io/liubasara/pen/PoJQZjN
环境说明
Vue
版本:2.6.12The text was updated successfully, but these errors were encountered: