forked from AuroraMiddleware/gtk
testsuite: Add unaligned-offscreen test
Tests whether text rendered to an offscreen node unaligned with the pixel grid introduces blurriness.
This commit is contained in:
parent
85a6517d65
commit
1c733857b3
23
testsuite/gsk/compare/unaligned-offscreen.node
Normal file
23
testsuite/gsk/compare/unaligned-offscreen.node
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
blend {
|
||||||
|
mode: normal;
|
||||||
|
top: transform {
|
||||||
|
child: blend {
|
||||||
|
top: text {
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
font: "Cantarell Bold 11";
|
||||||
|
glyphs: "|||||||||||||||||||||||";
|
||||||
|
}
|
||||||
|
bottom: text {
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
font: "Cantarell Bold 11";
|
||||||
|
glyphs: "===========";
|
||||||
|
offset: 0 13;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
transform: translate(1.5, 15.5);
|
||||||
|
}
|
||||||
|
bottom: color {
|
||||||
|
color: red;
|
||||||
|
bounds: 0 0 100 30;
|
||||||
|
}
|
||||||
|
}
|
BIN
testsuite/gsk/compare/unaligned-offscreen.png
Normal file
BIN
testsuite/gsk/compare/unaligned-offscreen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 412 B |
@ -83,6 +83,7 @@ compare_render_tests = [
|
|||||||
'repeat-texture',
|
'repeat-texture',
|
||||||
'transform-in-transform',
|
'transform-in-transform',
|
||||||
'transform-in-transform-in-transform',
|
'transform-in-transform-in-transform',
|
||||||
|
'unaligned-offscreen',
|
||||||
'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
|
'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user