testsuite: Add a test for repeating gradients

Make sure scaling the image also scales the color stop lookup.
This commit is contained in:
Benjamin Otte
2023-06-08 12:52:33 +02:00
parent e3cc3f7841
commit 0a0f0d9e7e
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
transform {
transform: scale(10);
child: repeating-linear-gradient {
bounds: 0 0 5 5;
start: 0 0;
end: 0 1;
stops: 0 white, 0.5 white, 0.5 black, 1 black;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

View File

@@ -80,6 +80,7 @@ compare_render_tests = [
'repeat-empty-child-bounds',
'repeat-negative-coords',
'repeat-texture',
'repeating-gradient-scaled',
'scale-textures-negative-ngl',
'scale-up-down',
'scaled-cairo',