Weird dark border :after css arrow in Firefox

后端 未结 1 1203
后悔当初
后悔当初 2020-12-10 14:54

In an attempt to make an arrow in pure CSS for my tooltip, I ran across a problem in Firefox:

\"enter

相关标签:
1条回答
  • 2020-12-10 15:57

    2015's EDIT

    Now it works by using both RGBa and transparent; appearently, the Bug has been resolved (maybe incidentally, because it is still in state NEW , instead that on FIXED).

    If it still happens to you, you're probably running an old FireFox version (the current one is 38.0.5), and you can use the workaround in the answer to overcome the problem.


    It is the

    Bug 646053 - dark diagonals at corner joins adjacent to transparent borders

    The workaround is to use RGBa instead of transparent:

    /* old */
    border: transparent solid 6px;
    border-right-color: #fff;
    
    /* new */
    border: rgba(255,255,255,0) solid 6px;
    border-right-color: #fff;
    
    0 讨论(0)
提交回复
热议问题