Debian Codegraph @

testsuite/gsk/compare/shrink-rounded-border.node

raw
1 /* We clip out the transparent region inside the
2 border so we can check that the shrinking of
3 the inside works properly.
4 Comment out the clip to see the actual border
5 */
6
7 clip {
8 /* blame sqrt(2) for those numbers:
9 The shrunkrect should be 40 40 70 70 / 70 0
10 70/sqrt(2) = 49.4974747...
11 40 + 49 = 89 and 40 + 70 - 49 = 61,
12 giving you:
13 */
14 clip: 61 61 28 28;
15 child: border {
16 outline: 0 0 150 150 / 150 0 150 0;
17 widths: 40;
18 }
19 }