mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
7a0e27b6e8
Without an explicit width, height, and viewBox, there is no single correct way to render an SVG. In the absense of said information, librsvg is capable of making a guess by rendering the SVG to a Cairo surface and then analyzing that surface; however, this process is merely heuristic. There are three GTK tests for SVG images that are missing dimensions. While this is not a violation of the SVG specification, it does implicitly couple the test to the librsvg rendering heuristic. In this commit we add that dimension information so that the expected result is unambiguous.
8 lines
244 B
Plaintext
8 lines
244 B
Plaintext
clip {
|
|
clip: 3950 3950 100 100;
|
|
child: texture-scale {
|
|
bounds: 0 0 19991 19991;
|
|
filter: nearest;
|
|
texture: url('data:,<svg width="10" height="10" viewBox="0 0 10 10"><rect width="10" height="10" style="fill:red" /></svg>');
|
|
}
|
|
} |