mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
d5bf3c2cd1
don't render a clip to a texture if the new clip does not intersect with any of the corners of the currently rounded clip. Fixes #2770
41 lines
508 B
Plaintext
41 lines
508 B
Plaintext
/* Force offscreen drawing by creating a clip that
|
|
cannot be expressed using a single rounded rect */
|
|
rounded-clip {
|
|
clip: 0 0 100 100 / 0 50 50 50;
|
|
child: clip {
|
|
clip: 0 0 80 50;
|
|
child: color {
|
|
bounds: 0 0 300 500;
|
|
color: teal;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
color {
|
|
bounds: 75 6 5 5;
|
|
color: black;
|
|
}
|
|
|
|
|
|
color {
|
|
bounds: 70 4 5 5;
|
|
color: black;
|
|
}
|
|
|
|
color {
|
|
bounds: 65 2 5 5;
|
|
color: black;
|
|
}
|
|
|
|
color {
|
|
bounds: 55 0 10 5;
|
|
color: black;
|
|
}
|
|
|
|
|
|
color {
|
|
bounds: 40 0 15 2;
|
|
color: black;
|
|
}
|