Add test for polygon offset.

Test for crbug.com/371604.