mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
8d528350b9
commit
853e8719c6
17
testsuite/gsk/compare/clip-translate-offscreen.node
Normal file
17
testsuite/gsk/compare/clip-translate-offscreen.node
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/clip-translate-offscreen.png
Normal file
BIN
testsuite/gsk/compare/clip-translate-offscreen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 167 B |
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user