mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +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
266 B
Plaintext
13 lines
266 B
Plaintext
subsurface {
|
|
child: clip {
|
|
clip: 0 0 200 200;
|
|
child: transform {
|
|
transform: translate(16, 16);
|
|
child: texture {
|
|
texture: url('data:image/svg+xml;utf-8,<svg width="16" height="16"></svg>');
|
|
bounds: 0 0 16 16;
|
|
}
|
|
}
|
|
}
|
|
}
|