added test for auto margin and fixed those layouts
This commit is contained in:
@@ -124,3 +124,19 @@
|
||||
<div id="margin_should_not_be_part_of_max_width" style="width: 250px; height: 250px;">
|
||||
<div style="width: 100px; height: 100px; max-width: 100px; margin-left: 20px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right:auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_fix_left_auto_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: 10px; margin-right: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_fix_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right: 10px;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user