diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-12-11 17:03:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 17:03:59 +0100 |
| commit | 343a423e9f07f4bccc41bc0a60a3a2251c8a228a (patch) | |
| tree | 99371e1980b3e6b62fce3ec7863f0f1c777d26cb /tests/typ | |
| parent | ce9d4204723a41abb62c3d0600a5c02900006866 (diff) | |
Fix #2902 (#2913)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/bugs/2902-gradient-oklch-panic.typ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/bugs/2902-gradient-oklch-panic.typ b/tests/typ/bugs/2902-gradient-oklch-panic.typ new file mode 100644 index 00000000..6e09df52 --- /dev/null +++ b/tests/typ/bugs/2902-gradient-oklch-panic.typ @@ -0,0 +1,20 @@ +// Minimal reproduction of #2902 +// Ref: false + +--- +#set page(width: 15cm, height: auto, margin: 1em) +#set block(width: 100%, height: 1cm, above: 2pt) + +// Oklch +#block(fill: gradient.linear(red, purple, space: oklch)) +#block(fill: gradient.linear(..color.map.rainbow, space: oklch)) +#block(fill: gradient.linear(..color.map.plasma, space: oklch)) + +--- +#set page(width: 15cm, height: auto, margin: 1em) +#set block(width: 100%, height: 1cm, above: 2pt) + +// Oklab +#block(fill: gradient.linear(red, purple, space: oklab)) +#block(fill: gradient.linear(..color.map.rainbow, space: oklab)) +#block(fill: gradient.linear(..color.map.plasma, space: oklab)) |
