gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62286 Definitions

⎇ main tests/xml/flex/align_content_center_wrapped__content_box_ltr.xml HTML · 23 lines · 1.2 KB History raw

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

1<test name="align_content_center_wrapped__content_box_ltr" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div box-sizing="content-box" direction="ltr" flex-wrap="wrap" align-content="center" width="120px" height="100px">
5      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
6      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
7      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
8      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
9      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
10      <div box-sizing="content-box" direction="ltr" width="50px" height="10px"/>
11    </div>
12  </input>
13  <expectations>
14    <node x="0" y="0" width="120" height="100">
15      <node x="0" y="35" width="50" height="10"/>
16      <node x="50" y="35" width="50" height="10"/>
17      <node x="0" y="45" width="50" height="10"/>
18      <node x="50" y="45" width="50" height="10"/>
19      <node x="0" y="55" width="50" height="10"/>
20      <node x="50" y="55" width="50" height="10"/>
21    </node>
22  </expectations>
23</test>