Skip to content
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

Grid/width depends on height tests #300

Merged

Conversation

nicoburns
Copy link
Collaborator

Objective

The CSS Grid algorithm requires repeating the track sizing algorithm a second time to account for cases where the width of a node depends on it's height. This PR:

  • Implements vertical writing support for leaf nodes in gentests (not in taffy itself)
  • Adds a gentest using this that requires the relayout code
  • Makes the axis module public so that the gentest measure_func can use it.

I also tried to create a test using a flexbox column-wrap node as a child which should also exercise this code path. However the behaviour of these nodes in Chrome/Firefox is a bit odd (essentially as if they don't do the second layout pass), and I couldn't get that test to pass (and I'm not sure if I even want to as our behaviour seems better!), so I'm just leaving it out for the time being.

Copy link
Collaborator

@Weibye Weibye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nicoburns nicoburns merged commit 4f43428 into DioxusLabs:main Dec 27, 2022
@nicoburns nicoburns mentioned this pull request Jan 4, 2023
87 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants