gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62286 Definiciones

⎇ main tests/xml/flex/content_size__content_box_ltr.xml HTML · 19 líneas · 813 B Historia crudo

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

1<test name="content_size__content_box_ltr" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div display="flex" box-sizing="content-box" direction="ltr" flex-direction="column" overflow-y="scroll" scrollbar-width="15" width="100px" height="100px">
5      <div box-sizing="content-box" direction="ltr" height="30px">
6        <text box-sizing="content-box" direction="ltr" position="absolute" flex-shrink="0" width="100%" height="20px" top="-10px">
7          HHHH​HHHH
8        </text>
9      </div>
10    </div>
11  </input>
12  <expectations>
13    <node x="0" y="0" width="100" height="100" scroll_width="0" scroll_height="0">
14      <node x="0" y="0" width="85" height="30">
15        <node x="0" y="-10" width="85" height="20"/>
16      </node>
17    </node>
18  </expectations>
19</test>