Handle percentage margins.
A percentage margin (e.g. "50%") is used to specify a percentage of the parent style's margin.
Added tests to check handling of percentage margin values.