mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
testsuite: Add a test for previous fix
Fill a rectangle with fractional coordinates << 1.0 but scale it up so that it ends up being nice integers. Makes sure that nobody does any bad rounding here.
This commit is contained in:
parent
017aea1952
commit
a0e9d93b4c
14
testsuite/gsk/compare/fill-scaled-up.node
Normal file
14
testsuite/gsk/compare/fill-scaled-up.node
Normal file
@ -0,0 +1,14 @@
|
||||
transform {
|
||||
transform: scale(80);
|
||||
child: container {
|
||||
fill {
|
||||
child: color {
|
||||
bounds: -0.125 -0.125 0.25 0.25;
|
||||
color: rgb(0,0,0);
|
||||
}
|
||||
path: "\
|
||||
M -0.125 -0.125 h 0.25 v 0.25 h -0.25 z";
|
||||
fill-rule: winding;
|
||||
}
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/fill-scaled-up.png
Normal file
BIN
testsuite/gsk/compare/fill-scaled-up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 B |
@ -70,6 +70,7 @@ compare_render_tests = [
|
||||
'fill',
|
||||
'fill-clipped-nogl',
|
||||
'fill-opacity',
|
||||
'fill-scaled-up',
|
||||
'fill-with-3d-contents-nogl-nocairo',
|
||||
'huge-height',
|
||||
'huge-width',
|
||||
|
Loading…
Reference in New Issue
Block a user