diff --git a/testsuite/gsk/compare/stroke-opacity.node b/testsuite/gsk/compare/stroke-opacity.node new file mode 100644 index 0000000000..9e48b7aa63 --- /dev/null +++ b/testsuite/gsk/compare/stroke-opacity.node @@ -0,0 +1,28 @@ +opacity { + child: stroke { + child: opacity { + opacity: 0.4; + child: color { + bounds: 0 0 50 50; + color: rgb(255,0,0); + } + } + path: "\ +M 15 5\ +L 35 5\ +L 35 15\ +L 45 15\ +L 45 35\ +L 35 35\ +L 35 45\ +L 15 45\ +L 15 35\ +L 5 35\ +L 5 15\ +L 15 15\ +Z"; + line-width: 10; + line-cap: butt; + line-join: miter; + } +} diff --git a/testsuite/gsk/compare/stroke-opacity.png b/testsuite/gsk/compare/stroke-opacity.png new file mode 100644 index 0000000000..b737158b2d Binary files /dev/null and b/testsuite/gsk/compare/stroke-opacity.png differ diff --git a/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.node b/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.node new file mode 100644 index 0000000000..c863a97f04 --- /dev/null +++ b/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.node @@ -0,0 +1,26 @@ +stroke { + child: transform { + transform: translate3d(0, 0, 1); + child: color { + bounds: 0 0 50 50; + color: rgb(255,0,0); + } + } + path: "\ +M 15 5\ +L 35 5\ +L 35 15\ +L 45 15\ +L 45 35\ +L 35 35\ +L 35 45\ +L 15 45\ +L 15 35\ +L 5 35\ +L 5 15\ +L 15 15\ +Z"; + line-width: 10; + line-cap: butt; + line-join: miter; +} diff --git a/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.png b/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.png new file mode 100644 index 0000000000..319bb9b44a Binary files /dev/null and b/testsuite/gsk/compare/stroke-with-3d-contents-nogl-nocairo.png differ diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index f8f8285671..767103b33d 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -117,6 +117,8 @@ compare_render_tests = [ 'shadow-opacity', 'shrink-rounded-border', 'stroke', + 'stroke-opacity', + 'stroke-with-3d-contents-nogl-nocairo', 'texture-coords', 'texture-scale-filters-nocairo', 'texture-scale-magnify-10000x',