gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62286 Definitions

⎇ main tests/xml/flex/align_baseline_multiline_column__content_box_rtl.xml HTML · 27 lines · 1.3 KB History raw

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

1<test name="align_baseline_multiline_column__content_box_rtl" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div box-sizing="content-box" direction="rtl" flex-direction="column" flex-wrap="wrap" align-items="baseline" width="100px" height="100px">
5      <div box-sizing="content-box" direction="rtl" width="50px" height="50px"/>
6      <div box-sizing="content-box" direction="rtl" flex-direction="column" width="30px" height="50px">
7        <div box-sizing="content-box" direction="rtl" width="20px" height="20px"/>
8      </div>
9      <div box-sizing="content-box" direction="rtl" flex-direction="column" width="40px" height="70px">
10        <div box-sizing="content-box" direction="rtl" width="10px" height="10px"/>
11      </div>
12      <div box-sizing="content-box" direction="rtl" width="50px" height="20px"/>
13    </div>
14  </input>
15  <expectations>
16    <node x="0" y="0" width="100" height="100">
17      <node x="50" y="0" width="50" height="50"/>
18      <node x="50" y="50" width="30" height="50">
19        <node x="10" y="0" width="20" height="20"/>
20      </node>
21      <node x="0" y="0" width="40" height="70">
22        <node x="30" y="0" width="10" height="10"/>
23      </node>
24      <node x="0" y="70" width="50" height="20"/>
25    </node>
26  </expectations>
27</test>