Add the 'direction' property and fix one RTL layout corner case.
auto merge of #2508 : SimonSapin/servo/direction, r=pcwalton