LibWeb: Use generic <color-interpolation-method> parsing for gradients

See previous commit for details

We now support parsing of `display-p3-linear` (although it just falls
back to using Oklab since Skia doesn't support it)
This commit is contained in:
Callum Law
2026-03-18 21:51:26 +13:00
committed by Tim Ledbetter
parent d8c38a294c
commit 9db607b1a7
Notes: github-actions[bot] 2026-03-18 13:23:27 +00:00
13 changed files with 141 additions and 311 deletions

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<script src="../include.js"></script>
<style>
#foo {
background-image: linear-gradient(in display-p3-linear, red, blue);
}
</style>
<script>
test(() => {
println(document.styleSheets[0].cssRules[0].cssText);
});
</script>