Trying to understand the default HTML rules for element stacking order. Are there any restrictions regarding the order of parents and children or sibling elements in a single row? Or is it solely dependent on CSS?
For clarification, consider this example where element A is stacked above element B: Link
Take a scenario with complex parent-child combinations like this:
<div id="A">
<div id="B">
<div id="D"></div>
</div>
<div id="C"></div>
</div>
Hoping the question is clear.
UPDATE: Based on the response below, it's been determined that by default HTML will stack elements coming after others above previous elements when their position is either fixed or absolute.
Check out this link: https://jsfiddle.net/s8nzaoh9/