2023-10-23 18:20:24 -07:00
|
|
|
<!-- The top level divs in each test are needed so that each div overlays each
|
|
|
|
other and the top measurement is accurate -->
|
2023-12-04 19:35:30 -08:00
|
|
|
<div id="static_position_insets_have_no_effect_left_top">
|
2023-10-23 18:20:24 -07:00
|
|
|
<div style="width: 100px; height: 100px; position: static; top: 50px; left: 50px;">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-12-04 19:35:30 -08:00
|
|
|
<div id="static_position_insets_have_no_effect_right_bottom">
|
2023-10-23 18:20:24 -07:00
|
|
|
<div style="width: 100px; height: 100px; position: static; bottom: 50px; right: 50px;">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_insets_relative_to_positioned_ancestor">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_insets_relative_to_positioned_ancestor_deep">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_width_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_width_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_width_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_height_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_height_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_height_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_left_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_left_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_left_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_right_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_right_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_right_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_top_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_top_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_top_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_bottom_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_bottom_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_bottom_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_margin_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_margin_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_margin_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_padding_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_padding_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_padding_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_border_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_border_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_border_percentage">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_absolute_child_containing_block_padding_box">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_containing_block_padding_box">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_containing_block_padding_box">
|
2023-10-23 18:20:24 -07:00
|
|
|
<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>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_relative_child_containing_block_content_box">
|
2023-10-23 18:20:24 -07:00
|
|
|
<div style="width: 400px; height: 400px; padding: 100px; position: relative">
|
|
|
|
<div style="height:50px; width: 50%; position: relative">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-12-07 21:25:45 -08:00
|
|
|
<div id="static_position_static_child_containing_block_content_box">
|
2023-10-23 18:20:24 -07:00
|
|
|
<div style="width: 400px; height: 400px; padding: 100px; position: relative">
|
|
|
|
<div style="height:50px; width: 50%; position: static">
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-23 18:20:24 -07:00
|
|
|
</div>
|