mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +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.
12 lines
303 B
Plaintext
12 lines
303 B
Plaintext
/* Add a color node to blow up the bounds so that
|
|
we can test the texture bounds work. */
|
|
color {
|
|
bounds: 0 0 50 50;
|
|
color: white;
|
|
}
|
|
|
|
texture {
|
|
bounds: 10 10 30 30;
|
|
texture: url('data:,<svg width="10" height="10" viewBox="0 0 10 10"><rect width="10" height="10" style="fill:red"/></svg>');
|
|
}
|