tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Definitions

⎇ main tests/xml/flex/rounding_fractial_input_6__content_box_rtl.xml HTML · 27 lines · 1.1 KB History raw

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

1<test name="rounding_fractial_input_6__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="7px">
5      <div box-sizing="content-box" direction="rtl" flex-wrap="wrap" width="50%">
6        <div box-sizing="content-box" direction="rtl" width="2px" height="10px"/>
7        <div box-sizing="content-box" direction="rtl" width="2px" height="10px"/>
8      </div>
9      <div box-sizing="content-box" direction="rtl" flex-wrap="wrap" width="50%">
10        <div box-sizing="content-box" direction="rtl" width="2px" height="10px"/>
11        <div box-sizing="content-box" direction="rtl" width="2px" height="10px"/>
12      </div>
13    </div>
14  </input>
15  <expectations>
16    <node x="0" y="0" width="7" height="20">
17      <node x="4" y="0" width="3" height="20">
18        <node x="2" y="0" width="2" height="10"/>
19        <node x="2" y="10" width="2" height="10"/>
20      </node>
21      <node x="0" y="0" width="4" height="20">
22        <node x="2" y="0" width="2" height="10"/>
23        <node x="2" y="10" width="2" height="10"/>
24      </node>
25    </node>
26  </expectations>
27</test>