mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
60e37d3368
Add a clip-coordinates-2d test that is similar to clip-coordinates-3d, but actually uses a 2D transform.
23 lines
451 B
Plaintext
23 lines
451 B
Plaintext
/* 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;
|
|
}
|
|
}
|
|
}
|
|
}
|