Add another nested percentage test

Summary: Add test covering a nested percentage container inside of a unconstraint container. This is something we ran into recently and want to make sure to cover in tests.

Reviewed By: astreet

Differential Revision: D4637519

fbshipit-source-id: a8fe3c7702c2ea0ad954cce80fbdf953bb23c997
This commit is contained in:
Emil Sjolander
2017-03-03 10:15:51 -08:00
committed by Facebook Github Bot
parent 0fde1424f0
commit e7d2792009
5 changed files with 363 additions and 5 deletions

View File

@@ -85,9 +85,18 @@
</div>
<div id="percent_within_flex_grow" style="flex-direction:row; width: 350px; height: 100px; align-items: stretch; ">
<div style="width:100px;"></div>
<div style="flex-grow: 1;">
<div style="width:100%;"></div>
<div style="width:100px;"></div>
<div style="flex-grow: 1;">
<div style="width:100%;"></div>
</div>
<div style="width: 100px;"></div>
</div>
<div id="percentage_container_in_wrapping_container" experiments="MinFlexFix" style="align-items: center; width: 200px; height: 200px; justify-content: center;">
<div>
<div style="alignItems: center; flex-direction: row; justify-content: center; width: 100%;">
<div style="width: 50px; height: 50px;"></div>
<div style="width: 50px; height: 50px;"></div>
</div>
<div style="width: 100px;"></div>
</div>
</div>
</div>