CSS FAB 按钮在转换后保留背景颜色(仅在 Safari 中)

CSS FAB Button Leaving Background Colour After Transitioning (Only in Safari)

我目前正在重新设计this FAB button,当时我注意到在 Safari 中,从打开过渡到关闭后,它会留下白色背景标记。

这是它在 Safari 上的工作方式after opening and after closing

我很难过。我怀疑这可能与 background-colour 有关。我试过改变它,但事实并非如此。诊断是什么?

你能删除过渡:不透明度 120ms cubic-bezier(0.4, 0, 1, 1);从你的风格

css

.fab::before {
    content: attr(data-tooltip);
    /*transition: opacity 120ms cubic-bezier(0.4, 0, 1, 1);*/
    position: absolute;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    color:#333333;
    right: 26px;
    top: 19%;
    background-color:
    #FFD057;
    font-size: .6em;
    line-height: 1.2em;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    -ms-border-radius: 15px;
    border-radius: 15px;
    padding: 7px 32px 6px 18px;
    max-width: 200px;
    text-overflow: ellipsis;
    vertical-align: middle;
}