tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

⎇ main tests/xml/flex/measure_stretch_overrides_measure__content_box_rtl.xml HTML · 17 lines · 644 B History raw

Implement `direction` property (#906) 60601a657 · Kane Wang ·

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>