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
in the following example I cannot determine the color obtained from the formula
explained in the note at the end of the following chapter: https://www.w3.org/TR/compositing-1/#blending
In the following example I will try to apply the formula from the link above to calculate the color obtained
It seems like both Safari and Chrome (with experimental web features flag turned on) on my mac does blending in a color space that yields similar results as if blending was done in display-p3. Adding a filter property like filter: contrast(100%) seems to force the blending to happen in srgb.
It seems like the color space used for blending varies both depending on the UA, the output device and on properties like filter, yielding very different results.
It would be helpful if the spec stated which color space blending and composition should be done in, or explicitly stated that it's undefined behaviour. Maybe authors could explicitly set which color space blending and composition should be done in through a property.
in the following example I cannot determine the color obtained from the formula
explained in the note at the end of the following chapter:
https://www.w3.org/TR/compositing-1/#blending
In the following example I will try to apply the formula from the link above to calculate the color obtained
co = as x (1 - ab) x Cs + as x ab x B(Cb, Cs) + (1 - as) x ab x Cb
as= 0.7
Cs= [100/255, 200/255, 60/255]
ab= 0.4
Cb=[150/255, 50/255, 100/255]
B = | Cb - Cs | = ( 50/255 , 150/255 , 40/255 )
co = as * (1 - ab) * Cs + as * ab * B + (1 - as) * ab * Cb
ao= as+ ab*(1-as)
co = [ 0.29 , 0.52, 0.19 ]
ao = 0.82
Co = co/ao
Co = 0.35 0.63 0.23
this color does not match the one read with a screenshot
The text was updated successfully, but these errors were encountered: