Implement `direction` property (#906)
1<test name="measure_stretch_overrides_measure__content_box_rtl" use-rounding="true">
2 <viewport width="max-content" height="max-content"/>
3 <input>
4 <div box-sizing="content-box" direction="rtl" width="20px" height="10px">
5 <div box-sizing="content-box" direction="rtl" flex-grow="1" flex-basis="5px"/>
6 <text box-sizing="content-box" direction="rtl" flex-grow="1" flex-basis="5px">
7 H
8 </text>
9 </div>
10 </input>
11 <expectations>
12 <node x="0" y="0" width="20" height="10">
13 <node x="10" y="0" width="10" height="10"/>
14 <node x="0" y="0" width="10" height="10"/>
15 </node>
16 </expectations>
17</test>