Honour the CSS direction property.

Fix getValueFromPosition