Summary: Right now there is no way to test fixtures with `auto` widths, heights, or flex basis - even though we expose those functions. I updated gentest to generate those functions. Notably, position and margin (the other auto-able props) already account for this. I also created `YGAutoTest.html` to test this. Not really testing the capabilities of `auto` here, just if we can create a test about it. Reviewed By: NickGerleman Differential Revision: D64125522
26 lines
919 B
HTML
26 lines
919 B
HTML
<div id="auto_width" style="width: auto; height: 50px; flex-direction: row;">
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
</div>
|
|
|
|
<div id="auto_height" style="width: 50px; height: auto;">
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
</div>
|
|
|
|
<div id="auto_flex_basis" style="width: 50px; flex-basis: auto;">
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
<div style="width: 50px; height: 50px"></div>
|
|
</div>
|
|
|
|
<div id="auto_position" style="width: 50px; height: 50px;">
|
|
<div style="width: 25px; height: 25px; right: auto"></div>
|
|
</div>
|
|
|
|
<div id="auto_margin" style="width: 50px; height: 50px;">
|
|
<div style="width: 25px; height: 25px; margin-left: auto"></div>
|
|
</div>
|