Fixed touch-specs failure and added detection of negative percentage offsets (fix #3992)

Fixes #3992.

Unrelated change: Adds support for negative percentage offsets for the dest element, which is already supported in the bootstrap code.