testsuite: Add clip-translate-offscreen test

This was an experiment where an offscreen was translated inside an
existing clip.

Because renderers try to limit offscreens to the clip rect, this is
interesting, because they might get the translation wrong.
This commit is contained in:
Benjamin Otte 2023-05-10 21:56:53 +02:00
parent 8d528350b9
commit 853e8719c6
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
color {
bounds: 0 0 50 50;
color: rgb(0,0,0);
}
clip {
clip: 10 10 30 30;
child: transform {
transform: translate(10, 10);
child: opacity {
opacity: 0.8;
child: color {
bounds: -50 -50 100 100;
color: rgb(255,0,0);
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View File

@ -31,6 +31,7 @@ compare_render_tests = [
'clipped-repeat-3d-ngl',
'clipped_rounded_clip',
'clip-nested1',
'clip-translate-offscreen',
'color-blur0',
'color-matrix-identity',
'color-matrix-parsing',