Learning_GTK4_tree/testsuite/gsk/compare/clip-coordinates-2d.node

23 lines
451 B
Plaintext
Raw Permalink Normal View History

2023-12-12 11:36:42 +01:00
/* This test checks that we get sharp clip boundaries
* for 2d transforms. Compare with clip-coordinates-3d.node,
* which uses a general transform and gets offscreen
* rendering with GL_LINEAR.
*/
transform {
transform: scale(2);
child: container {
color {
bounds: 0 0 50 50;
color: transparent;
}
clip {
clip: 10 10 30 30;
child: color {
bounds: 0 0 50 50;
color: red;
}
}
}
}