Added parsing of direction CSS attribute
Fixes #299