gtk/testsuite
Benjamin Otte a05a021fd1 rendernode: Fix Cairo rendering of repeating gradients
Cairo and the GL renderer have a different idea of how to handle
transitioning of colors outside the defined range.

Consider these stops:
  black 50%, white 50%

What color is at 0%?

Cairo would transition between the last and first stop, ie it'd do a
white-to-black transition and end up at rgb(0.5,0.5,0.5) at 0%.
GL would behave as it would for non-repeating gradients and use black
for the range [0%..50%] and white for [50%..100%].
The web would rescale the range so the first stop would be at 0% and
the last stop would be at 100%, so this gradient would be illegal.

Considering that it's possible for code to transition between the
different behaviors by adding explicit stops at 0%/100%, I could choose
any method.
So I chose the simplest one, which is what the GL renderer does and
which treats repeating and non-repeating gradients the same.

Tests attached.
2023-09-07 16:19:20 +02:00
..
a11y a11y: Fix some GtkATContext reference leaks 2023-07-01 16:40:11 +02:00
css testsuite: Set GIO_USE_VFS=local everywhere 2023-06-09 02:29:24 +02:00
gdk ci: Mark the clipboard test as flaky 2023-07-28 09:06:14 +03:00
gsk rendernode: Fix Cairo rendering of repeating gradients 2023-09-07 16:19:20 +02:00
gtk Add test case for single char compose sequence 2023-08-29 13:30:05 -04:00
headless testsuite: Set GIO_USE_VFS=local everywhere 2023-06-09 02:29:24 +02:00
introspection tests: Maybe skip introspection tests 2022-12-19 22:38:38 -05:00
performance build: Use a consistent style for Meson files 2020-12-15 12:46:59 +00:00
reftests reftests: Fix one reftest 2023-08-02 16:32:40 +01:00
tools Update tests 2023-08-05 15:02:00 -04:00
meson.build build: Fix building with introspection disabled and testsuite enabled 2023-07-23 19:30:30 -05:00
testutils.c testsuite: fix memleak 2023-06-05 05:33:07 +02:00
testutils.h testsuite: Make function arguments const 2021-11-30 14:12:10 +01:00