Use other edge and outside coordinates

This avoids a failing test due to anti-aliasing artifacts in Safari.