Webkit bug with `:hover` and multiple adjacent-sibling selectors

前端 未结 3 552
时光取名叫无心
时光取名叫无心 2020-11-27 17:24

Safari and Chrome, as well as Opera and Firefox, can handle the :hover pseudo-class and adjacent-sibling selectors:

a:hover + div {}

<
3条回答
  •  有刺的猬
    2020-11-27 18:18

    Alternatively, the fix can be applied only to the elements that are having the update issue rather than to the body element:

    http://jsfiddle.net/ds2yY/12/

    .force-repaint { -webkit-animation: bugfix infinite 1s; }
    
    @-webkit-keyframes bugfix {
        from { fill: 0; }
        to { fill: 0; }
    }
    

提交回复
热议问题