mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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.
12 lines
324 B
HTML
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>
|