tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 229Rust 8TOML 3CSS 1310 Definitions

⎇ main tests/xml/grid/grid_overflow_rows__content_box_ltr.xml HTML · 25 lines · 1.1 KB History raw

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

1<test name="grid_overflow_rows__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" grid-template-rows="40px 40px" grid-template-columns="min-content max-content 10px 20%">
5      <text box-sizing="content-box" direction="ltr" grid-column-start="1" grid-column-end="span 4">
6        HHHHHHHHHHHHHHHH​HHHHHHHHHHHHHHHH
7      </text>
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 box-sizing="content-box" direction="ltr"/>
12      <div box-sizing="content-box" direction="ltr"/>
13    </div>
14  </input>
15  <expectations>
16    <node x="0" y="0" width="320" height="80">
17      <node x="0" y="0" width="320" height="40"/>
18      <node x="0" y="40" width="43" height="40"/>
19      <node x="43" y="40" width="203" height="40"/>
20      <node x="246" y="40" width="10" height="40"/>
21      <node x="256" y="40" width="64" height="40"/>
22      <node x="0" y="80" width="43" height="0"/>
23    </node>
24  </expectations>
25</test>