gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81412 Definiciones

⎇ main tests/xml/block/block_margin_auto_rtl__content_box_ltr.xml HTML · 17 líneas · 815 B Historia crudo

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

1<test name="block_margin_auto_rtl__content_box_ltr" use-rounding="true">
2  <viewport width="max-content" height="max-content"/>
3  <input>
4    <div display="block" box-sizing="content-box" direction="rtl" width="100px">
5      <div box-sizing="content-box" direction="ltr" width="20px" height="10px" margin-left="auto"/>
6      <div box-sizing="content-box" direction="ltr" width="20px" height="10px" margin-right="auto"/>
7      <div box-sizing="content-box" direction="ltr" width="20px" height="10px" margin-left="auto" margin-right="auto"/>
8    </div>
9  </input>
10  <expectations>
11    <node x="0" y="0" width="100" height="30">
12      <node x="80" y="0" width="20" height="10"/>
13      <node x="0" y="10" width="20" height="10"/>
14      <node x="40" y="20" width="20" height="10"/>
15    </node>
16  </expectations>
17</test>