gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 684HTML 640Markdown 12TOML 62286 Definitions

⎇ main tests/xml/flex/content_size__content_box_rtl.xml HTML · 19 lines · 814 B History raw

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

1<test name="content_size__content_box_rtl" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div display="flex" box-sizing="content-box" direction="rtl" flex-direction="column" overflow-y="scroll" scrollbar-width="15" width="100px" height="100px">
5      <div box-sizing="content-box" direction="rtl" height="30px">
6        <text box-sizing="content-box" direction="rtl" 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="15" y="0" width="85" height="30">
15        <node x="0" y="-10" width="85" height="20"/>
16      </node>
17    </node>
18  </expectations>
19</test>