-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests to eventually test position: static
Differential Revision: https://www.internalfb.com/diff/D50475939?entry_point=27 fbshipit-source-id: 1c8d51a21b98c378ebb2279e550c751547039c9f
- Loading branch information
1 parent
f47583d
commit 2f42c9d
Showing
4 changed files
with
8,389 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,326 @@ | ||
<div id="static_position_insets_have_no_effect" data-disabled="true" | ||
style="width: 100px; height: 100px; position: static; top: 50px; left: 50px;"> | ||
<!-- The top level divs in each test are needed so that each div overlays each | ||
other and the top measurement is accurate --> | ||
<div id="static_position_insets_have_no_effect_left_top" data-disabled="true"> | ||
<div style="width: 100px; height: 100px; position: static; top: 50px; left: 50px;"> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_insets_have_no_effect_right_bottom" data-disabled="true"> | ||
<div style="width: 100px; height: 100px; position: static; bottom: 50px; right: 50px;"> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_insets_relative_to_positioned_ancestor" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height: 100px; width: 100px; margin-left: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; position: absolute; top: 50px; left: 50px;"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_insets_relative_to_positioned_ancestor_deep" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height: 100px; width: 100px; margin-left: 100px; position: static"> | ||
<div style="height: 100px; width: 100px; margin-left: 100px; position: static"> | ||
<div style="height: 100px; width: 100px; margin-left: 100px; position: static"> | ||
<div style="height: 100px; width: 100px; margin-left: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; position: absolute; top: 50px; left: 50px;"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_width_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_width_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_width_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_height_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50%; width: 50px; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_height_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50%; width: 50px; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_height_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50%; width: 50px; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_left_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; left: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_left_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; left: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_left_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; left: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_right_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; right: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_right_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; right: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_right_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; right: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_top_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; top: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_top_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; top: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_top_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; top: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_bottom_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; bottom: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_bottom_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; bottom: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_bottom_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; bottom: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_margin_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; margin: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_margin_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; margin: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_margin_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; margin: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_padding_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; padding: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_padding_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; padding: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_padding_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; padding: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_border_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; border: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_border_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; border: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_border_percentage" data-disabled="true"> | ||
<div style="width: 200px; height: 200px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50px; border: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_containing_block_padding_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_containing_block_padding_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_containing_block_padding_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:100px; width: 100px; position: static"> | ||
<div style="height: 50px; width: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_absolute_child_containing_block_content_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:50px; width: 50%; position: absolute"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_relative_child_containing_block_content_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:50px; width: 50%; position: relative"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="static_position_static_child_containing_block_content_box" data-disabled="true"> | ||
<div style="width: 400px; height: 400px; padding: 100px; position: relative"> | ||
<div style="height:50px; width: 50%; position: static"> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.