Add tests for absolute positioning of children with padding in the parent
Summary: I was playing around with absolute children and padding and noticed an issue so adding tests to track. Made a github issue: https://github.com/facebook/yoga/issues/1436 Reviewed By: yungsters Differential Revision: D50670457 fbshipit-source-id: 4672d1e8b831a0a42509d95e91178944fc0f5c06
This commit is contained in:
committed by
Facebook GitHub Bot
parent
52ae53a7c8
commit
4f98bfe40a
@@ -100,3 +100,19 @@
|
||||
<div id="absolute_layout_percentage_height_based_on_padded_parent_and_align_items_center" style="position: relative; flex-direction:column; align-items:center; justify-content:center; width:100px; height:100px; padding-top:20px; padding-bottom:20px; ">
|
||||
<div style="position:absolute; width:100px; height:50%;"></div>
|
||||
</div>
|
||||
|
||||
<div id="absolute_layout_padding_left" data-disabled="true" style="width:200px; height:200px; padding-left:100px;">
|
||||
<div style="position:absolute; width:50px; height:50px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="absolute_layout_padding_right" data-disabled="true" style="width:200px; height:200px; padding-right:100px;">
|
||||
<div style="position:absolute; width:50px; height:50px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="absolute_layout_padding_top" data-disabled="true" style="width:200px; height:200px; padding-top:100px;">
|
||||
<div style="position:absolute; width:50px; height:50px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="absolute_layout_padding_bottom" style="width:200px; height:200px; padding-bottom:100px;">
|
||||
<div style="position:absolute; width:50px; height:50px;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user