tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

mix-blend-mode not working as expected #356

Open tayfunerbilen opened 3 years ago

tayfunerbilen commented 3 years ago

I used this code to test library

<div></div>
<style>
body {
    background: #19191A;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    margin: 0;
}
div {
    width: 150px;
    height: 150px;
    background: #4F77FF;
    border-radius: 50%;
    margin-bottom: 50px;
    position: relative
}
div::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    background: #F9E492;
    width: 75px;
    height: 125px;
    z-index: 1;
    mix-blend-mode: overlay;
}
</style>

Expected behavior

Actual behavior

Library version

current version

Browsers

any suggestion?

rcobiella commented 3 years ago

I'm experiencing the same problem here. Any workaround?

Thanks!