If you can use a two-pass solution, this may provide the solution:
p.s. style=line is not supported, you want style=solid