mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
1db696be79
Look for nodes like subsurface { clip { texture {} } }, and use the clip to provide a source rectangle for subsetting the texture. Update affected tests, and add a new one.
13 lines
255 B
Plaintext
13 lines
255 B
Plaintext
subsurface {
|
|
child: transform {
|
|
transform: scale(1);
|
|
child: clip {
|
|
clip: 4 4 40 40;
|
|
child: texture {
|
|
bounds: 0 0 48 48;
|
|
texture: url('data:image/svg+xml;utf-8,<svg width="24" height="24"></svg>');
|
|
}
|
|
}
|
|
}
|
|
}
|