diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2023-01-27 19:18:10 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2023-01-27 20:22:18 +1030 |
commit | 9e59808ecb5f39e551e5e2ffbdab08c8ec66d21b (patch) | |
tree | de19fe59be58a137e9af25b109123892c37c2979 /test/svg | |
parent | c8695f050340bff1dc2b3a64cf8386c5ad19c274 (diff) | |
download | cairo-9e59808ecb5f39e551e5e2ffbdab08c8ec66d21b.tar.gz |
svg: test foreground colors
Convert the ft-svg-render-palette test to a color test that test
both palettes and foreground colors.
Diffstat (limited to 'test/svg')
-rw-r--r-- | test/svg/color.0.color0.svg (renamed from test/svg/palette.0.color0.svg) | 0 | ||||
-rw-r--r-- | test/svg/color.1.color1.svg (renamed from test/svg/palette.1.color1.svg) | 0 | ||||
-rw-r--r-- | test/svg/color.2.foreground-solid.svg | 4 | ||||
-rw-r--r-- | test/svg/color.3.foreground-alpha.svg | 4 | ||||
-rw-r--r-- | test/svg/color.4.foreground-linear.svg | 10 | ||||
-rw-r--r-- | test/svg/color.5.foreground-linear-alpha.svg | 10 | ||||
-rw-r--r-- | test/svg/color.6.foreground-radial.svg | 10 | ||||
-rw-r--r-- | test/svg/color.7.foreground-radial-alpha.svg | 10 |
8 files changed, 48 insertions, 0 deletions
diff --git a/test/svg/palette.0.color0.svg b/test/svg/color.0.color0.svg index 650dca898..650dca898 100644 --- a/test/svg/palette.0.color0.svg +++ b/test/svg/color.0.color0.svg diff --git a/test/svg/palette.1.color1.svg b/test/svg/color.1.color1.svg index 2858b35ca..2858b35ca 100644 --- a/test/svg/palette.1.color1.svg +++ b/test/svg/color.1.color1.svg diff --git a/test/svg/color.2.foreground-solid.svg b/test/svg/color.2.foreground-solid.svg new file mode 100644 index 000000000..cf77d65a6 --- /dev/null +++ b/test/svg/color.2.foreground-solid.svg @@ -0,0 +1,4 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <rect x="100" y="-750" width="800" height="500" + fill="currentColor" /> +</svg> diff --git a/test/svg/color.3.foreground-alpha.svg b/test/svg/color.3.foreground-alpha.svg new file mode 100644 index 000000000..fa67d4929 --- /dev/null +++ b/test/svg/color.3.foreground-alpha.svg @@ -0,0 +1,4 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <rect x="100" y="-750" width="800" height="500" + fill="currentColor" fill-opacity="0.5" /> +</svg> diff --git a/test/svg/color.4.foreground-linear.svg b/test/svg/color.4.foreground-linear.svg new file mode 100644 index 000000000..d2f8816c6 --- /dev/null +++ b/test/svg/color.4.foreground-linear.svg @@ -0,0 +1,10 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <defs> + <linearGradient id="grad" x1="33%" x21="66%"> + <stop offset="0%" stop-color="currentColor" stop-opacity="1" /> + <stop offset="100%" stop-color="red" stop-opacity="1" /> + </linearGradient> + </defs> + <rect x="100" y="-900" width="800" height="800" fill="url(#grad)" /> +</svg> + diff --git a/test/svg/color.5.foreground-linear-alpha.svg b/test/svg/color.5.foreground-linear-alpha.svg new file mode 100644 index 000000000..a3c453ad3 --- /dev/null +++ b/test/svg/color.5.foreground-linear-alpha.svg @@ -0,0 +1,10 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <defs> + <linearGradient id="grad" x1="33%" x21="66%"> + <stop offset="0%" stop-color="currentColor" stop-opacity="0.3" /> + <stop offset="100%" stop-color="red" stop-opacity="0.3" /> + </linearGradient> + </defs> + <rect x="100" y="-900" width="800" height="800" fill="url(#grad)" /> +</svg> + diff --git a/test/svg/color.6.foreground-radial.svg b/test/svg/color.6.foreground-radial.svg new file mode 100644 index 000000000..97622c2b4 --- /dev/null +++ b/test/svg/color.6.foreground-radial.svg @@ -0,0 +1,10 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <defs> + <radialGradient id="grad" cx="50%" cy="50%" + fx="0.75" fy="0.35" r="0.5"> + <stop offset="0%" stop-color="currentColor" stop-opacity="1" /> + <stop offset="100%" stop-color="blue" stop-opacity="1" /> + </radialGradient> + </defs> + <rect x="100" y="-900" width="800" height="800" fill="url(#grad)" /> +</svg> diff --git a/test/svg/color.7.foreground-radial-alpha.svg b/test/svg/color.7.foreground-radial-alpha.svg new file mode 100644 index 000000000..76d6628e0 --- /dev/null +++ b/test/svg/color.7.foreground-radial-alpha.svg @@ -0,0 +1,10 @@ +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> + <defs> + <radialGradient id="grad" cx="50%" cy="50%" + fx="0.75" fy="0.35" r="0.5"> + <stop offset="0%" stop-color="currentColor" stop-opacity="0.5" /> + <stop offset="100%" stop-color="blue" stop-opacity="0.5" /> + </radialGradient> + </defs> + <rect x="100" y="-900" width="800" height="800" fill="url(#grad)" /> +</svg> |