Add css3 values for writing-mode

- Rebased and squashed @yaniswang's pr
- Added test

Fixes gh-49