Trying to implement percentage correction when nesting
made classes support nesting in both relative and absolute mode