Implement `direction` property (#906)
1<test name="border_no_child__content_box_rtl" use-rounding="true">
2 <viewport width="max-content" height="max-content"/>
3 <input>
4 <div box-sizing="content-box" direction="rtl" border-top="10px" border-left="10px" border-bottom="10px" border-right="10px"/>
5 </input>
6 <expectations>
7 <node x="0" y="0" width="20" height="20"/>
8 </expectations>
9</test>