testsuite/gsk: add explicit dimensions to <svg> elements
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 28 Aug 2023 19:27:46 +0000 (15:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Sep 2023 19:18:51 +0000 (15:18 -0400)
commit2eb61946044de04bf487b5b97ccbf5e0b6e38fd5
tree5b61cce695f7a8725d8d89a3481ac02d09766f9c
parent6171070153eb00709e77a0e07d59b11163343ded
testsuite/gsk: add explicit dimensions to <svg> elements

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.
testsuite/gsk/compare/texture-scale-stripes.node
testsuite/gsk/compare/texture-url.node
testsuite/gsk/nodeparser/texture-scale-filters.node