proposed solution to #1568: percentage as attribute

Attempt to fix issue #1568.