tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 583HTML 275Markdown 8TOML 41586 Definiciones

⎇ main tests/xml/grid/grid_margins_fixed_start__content_box_rtl.xml HTML · 23 líneas · 1.2 KB Historia crudo

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

1<test name="grid_margins_fixed_start__content_box_rtl" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div display="grid" box-sizing="content-box" direction="rtl" 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="rtl" align-self="start" justify-self="start" width="20px" height="20px" margin-top="1px" margin-left="4px" margin-bottom="3px" margin-right="2px"/>
6      <div box-sizing="content-box" direction="rtl"/>
7      <div box-sizing="content-box" direction="rtl"/>
8      <div box-sizing="content-box" direction="rtl"/>
9      <div box-sizing="content-box" direction="rtl"/>
10      <div box-sizing="content-box" direction="rtl"/>
11    </div>
12  </input>
13  <expectations>
14    <node x="0" y="0" width="180" height="160">
15      <node x="138" y="11" width="20" height="20"/>
16      <node x="80" y="10" width="40" height="40"/>
17      <node x="40" y="10" width="40" height="40"/>
18      <node x="120" y="50" width="40" height="40"/>
19      <node x="80" y="50" width="40" height="40"/>
20      <node x="40" y="50" width="40" height="40"/>
21    </node>
22  </expectations>
23</test>