Support position: static
(absolute position relative a non-parent ancestor)
#212
Labels
enhancement
New feature or request
taffy
version0.1.0
Platform
Rust, with Bevy
What you did
I inserted a node with
PositionType::Absolute
as a child of a node withPositionType::Relative
and set its position to be 50px from the top:What went wrong
I expected the child node to be placed 50px from the top of the window; however, it was placed 50px from the top of its parent.
Additional information
Screenshot:
Recreation in HTML/CSS, with expected behaviour:
The text was updated successfully, but these errors were encountered: