Implement `direction` property (#906)
1<test name="block_direction_rtl__content_box_ltr" use-rounding="true">
2 <viewport width="max-content" height="max-content"/>
3 <input>
4 <div display="block" box-sizing="content-box" direction="rtl" width="100px">
5 <div box-sizing="content-box" direction="ltr" width="20px" height="10px"/>
6 <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
7 </div>
8 </input>
9 <expectations>
10 <node x="0" y="0" width="100" height="20">
11 <node x="80" y="0" width="20" height="10"/>
12 <node x="50" y="10" width="50" height="10"/>
13 </node>
14 </expectations>
15</test>