-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support position: static
(absolute position relative a non-parent ancestor)
#212
Comments
Thanks for the report! At the moment it is positioned as if it was the only child of its parent, which as you point out is not correct. We need to verify the exact behavior in the specs before implementing a fix. |
This isn't really a bug. It's a (currently) unsupported feature. The default value of Taffy doesn't support |
PositionType::Absolute
position: static
(absolute position relative a non-parent ancestor)
Yoga has started implementing this and has some test fixtures in this PR facebook/yoga#1434 |
position: static
(absolute position relative a non-parent ancestor)position: static
(absolute position relative a non-parent ancestor)
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: