I just noticed, that orientation=flip does not work. It uses transform, which might get correct results on straight lines, but not on curved lines, as the following screenshot shows (it uses the example in index.html, but I added repeat=true).

I might have a solution for the problem.