typst/tests/ref/compiler
frozolotl b0e81d4b3f
Remove restrictions to chroma and improve clamping (#2690)
This PR does a few small things:
- Oklab's a*/b* and Oklch's chroma components can be as large as desired.
- In PDF, when encoding Oklab, the range is widened from [-0.4,0.4] to [-0.5,0.5].
- In PDF, clamping is now performed on Oklch's chroma instead of a* and b*.
  This causes hue not to be distorted when clamping.

SVG and PNG export remain unchanged:
- SVG itself never had any restrictions on chroma.
  We directly use the `oklab` and `oklch` CSS colors, which should work fine for the most part.
  In the future, embedded ICC profiles might be nice. Further research is likely necessary.
- While PNG does not support color spaces like Oklab or Oklch, certain useful features exist.
  One can define gamma (gAMA) and chromacities&whitepoint (cHRM) chunks and even embed ICC profiles.
  While `image` crate does not support these features for encoding, its backend crate `png` does support gAMA and cHRM.
  It does not allow embedding ICC profiles yet, though.

As it stands, to fully support wide gamuts and more accurate colors, more work is necessary.
This PR should help a bit though.
2023-11-17 10:41:45 +01:00
..
array.png Use/allow U+2212 MINUS SIGN instead of U+002D HYPHEN MINUS everywhere (#2318) 2023-10-09 15:30:40 +02:00
block.png New default style 2023-02-25 20:04:30 +01:00
break-continue.png Check for control flow event before let binding (#1912) 2023-08-21 16:21:37 +02:00
call.png Update tests for type system changes 2023-09-11 14:42:43 +02:00
closure.png New default style 2023-02-25 20:04:30 +01:00
color.png Remove restrictions to chroma and improve clamping (#2690) 2023-11-17 10:41:45 +01:00
comment.png New default style 2023-02-25 20:04:30 +01:00
construct.png Default enum number alignment to 'end' (#1042) 2023-05-11 16:36:41 +02:00
content-field.png support optical sizes for script/scriptscript when available (#1580) 2023-06-26 13:51:27 +02:00
dict.png New default style 2023-02-25 20:04:30 +01:00
for.png Let dictionaries respect insertion order 2023-04-11 21:59:02 +02:00
highlight.png Treat function-looking code in attachment as function (#985) 2023-06-09 11:36:44 +02:00
if.png New default style 2023-02-25 20:04:30 +01:00
import.png Function scopes (#1032) 2023-05-03 14:20:53 +02:00
include.png New default style 2023-02-25 20:04:30 +01:00
label.png New default style 2023-02-25 20:04:30 +01:00
let.png New default style 2023-02-25 20:04:30 +01:00
ops.png New default style 2023-02-25 20:04:30 +01:00
repr-color-gradient.png Fix cmyk repr (#2682) 2023-11-15 14:49:45 +01:00
repr.png Gradient Part 2 - Linear gradients (#2279) 2023-10-03 19:31:02 +02:00
return.png New default style 2023-02-25 20:04:30 +01:00
selector-logical.png Support selectors with and/or followed by before/after (#1883) 2023-08-22 12:23:55 +02:00
set.png New default style 2023-02-25 20:04:30 +01:00
shorthand.png Add tests for shorthand (#2660) 2023-11-13 11:54:48 +01:00
show-bare.png New default style 2023-02-25 20:04:30 +01:00
show-node.png Update to usvg 0.35 (#2113) 2023-09-13 16:41:45 +02:00
show-recursive.png New default style 2023-02-25 20:04:30 +01:00
show-selector.png Resolve spacing before comparing (#2235) 2023-09-26 11:42:05 +02:00
show-text.png Update to usvg 0.35 (#2113) 2023-09-13 16:41:45 +02:00
while.png New default style 2023-02-25 20:04:30 +01:00