testsuite: Test we don't crash with overly large nodes

... when these nodes are used as children of a complex transform nodes
and we lose the clip.
This commit is contained in:
Benjamin Otte 2023-06-04 19:17:33 +02:00
parent 72b35a32fd
commit 2b59c4cf16
5 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,17 @@
/* a normal clip */
clip {
clip: 0 0 50 50;
/* a 3D transform */
child: transform {
transform: rotateX(1);
/* a node that forces an offscreen */
child: rounded-clip {
clip: -30000 -30000 60000 60000 / 5;
child: color {
/* way too big, but it's clipped, so no problem */
bounds: -30000 -30000 60000 60000;
color: red;
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

View File

@ -0,0 +1,13 @@
clip {
clip: 0 0 50 50;
child: transform {
transform: rotate(1);
child: rounded-clip {
clip: -30000 -30000 60000 60000 / 5;
child: color {
bounds: -30000 -30000 60000 60000;
color: rgb(255,0,0);
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

View File

@ -112,6 +112,8 @@ compare_render_tests = [
'texture-scale-offset',
'texture-scale-stripes',
'texture-url',
'transform-huge-child',
'transform-huge-child-3d-nocairo',
'transform-in-transform',
'transform-in-transform-in-transform',
'z-transform-clipping-bounds-nocairo',