Files
ladybird/Tests/LibWeb/Text/input/interpolate-alpha-premultiplied.html
norbiros 783ae44462 LibWeb: Fix color interpolation by premultiplying alpha
The current Color::interpolate_color method does not follow the specs
properly. Started improving it by handling premultiplied alpha in color
interpolation.

Only one WPT test covers this (color-transition-premultiplied), which we
currently pass due to a different approach in Color.mixed_with.
2025-08-14 11:09:05 +02:00

12 lines
324 B
HTML

<!DOCTYPE html>
<script src="include.js"></script>
<script>
test(() => {
const div = document.createElement('div');
div.style.backgroundColor = 'color-mix(in oklab, red 10%, transparent)';
document.body.appendChild(div);
println(getComputedStyle(div).backgroundColor);
});
</script>