tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

⎇ main tests/xml/grid/grid_margins_fixed_end__content_box_ltr.xml HTML · 23 lines · 1.2 KB History raw

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

1<test name="grid_margins_fixed_end__content_box_ltr" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div display="grid" box-sizing="content-box" direction="ltr" padding-top="10px" padding-left="40px" padding-bottom="30px" padding-right="20px" grid-template-rows="40px 40px 40px" grid-template-columns="40px 40px 40px">
5      <div box-sizing="content-box" direction="ltr" align-self="end" justify-self="end" width="20px" height="20px" margin-top="1px" margin-left="4px" margin-bottom="3px" margin-right="2px"/>
6      <div box-sizing="content-box" direction="ltr"/>
7      <div box-sizing="content-box" direction="ltr"/>
8      <div box-sizing="content-box" direction="ltr"/>
9      <div box-sizing="content-box" direction="ltr"/>
10      <div box-sizing="content-box" direction="ltr"/>
11    </div>
12  </input>
13  <expectations>
14    <node x="0" y="0" width="180" height="160">
15      <node x="58" y="27" width="20" height="20"/>
16      <node x="80" y="10" width="40" height="40"/>
17      <node x="120" y="10" width="40" height="40"/>
18      <node x="40" y="50" width="40" height="40"/>
19      <node x="80" y="50" width="40" height="40"/>
20      <node x="120" y="50" width="40" height="40"/>
21    </node>
22  </expectations>
23</test>