testsuite: Add clipped overly large paths

... to make sure that renderers clip any masks they generate for paths.
This commit is contained in:
Benjamin Otte 2023-12-29 07:13:49 +01:00
parent fff8198393
commit 4fac0f713a
5 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,10 @@
clip {
clip: 0 0 50 50;
child: fill {
path: "M 0 0 h 32768 v 32768 h -32768 z";
child: color {
color: blue;
bounds: 0 0 32768 32768;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

View File

@ -0,0 +1,11 @@
clip {
clip: 0 0 50 50;
child: stroke {
path: "M 25 25 h 32718 v 32718 h -32718 z";
child: color {
color: blue;
bounds: 0 0 32768 32768;
}
line-width: 50;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

View File

@ -67,6 +67,7 @@ compare_render_tests = [
'empty-texture',
'empty-transform',
'fill',
'fill-clipped-nogl',
'fill-opacity',
'fill-with-3d-contents-nogl-nocairo',
'huge-height',
@ -120,6 +121,7 @@ compare_render_tests = [
'shadow-opacity',
'shrink-rounded-border',
'stroke',
'stroke-clipped-nogl',
'stroke-opacity',
'stroke-with-3d-contents-nogl-nocairo',
'texture-coords',