Repository navigation
Conversation
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
determine_content_based_container_widthmeasured the children of a block container withparent_size: Size::NONE, so a child's percentageheight/max-heightnever resolved during the intrinsic-width pass, even when the container has a definite or specified height. The final layout pass already resolves those percentages againstcontainer_percentage_resolution_height, so the two passes disagreed.This now passes that same height (minus the container's vertical padding and border) as the children's parent height in the intrinsic-width pass.
container_percentage_resolution_heightis moved up so both passes use it.Context
Found while checking Blitz with #1407/DioxusLabs/blitz#1491, which treat a min-content available block size as max-content.
css-flexbox/intrinsic-size/col-wrap-dynamic.html(awidth: max-content; height: 100pxblock holding acolumn wrapflex container withmax-height: 100%) only passed on Blitz main by accident. Themax-height: 100%didn't resolve, and theMinContentavailable height madecollect_flex_linesput every item on its own line. With the percentage resolved, the container wraps because of its real height.Blitz WPT (
css html) vs Blitz main with this patch: +4 (CSS2/normal-flow/intrinsic-size-with-anonymous-block,css-flexbox/percentage-heights-022,css-grid/grid-definition/grid-auto-repeat-aspect-ratio-002,css-writing-modes/two-levels-of-orthogonal-flows-fixed), -1 (col-wrap-dynamic). That one loss happens because Blitz keeps a stale child cache after the parent's height changes, since the cache key has noparent_size. The companion Blitz fix clears child caches on relayout damage. With both, Blitz gets +10 and loses nothing, and blitz#1491 on top also loses nothing.cargo test --workspacepasses.Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/2f57afb3bd9f442c81942accf1d4617b
Link to Bot: https://dioxus.staging.devinenterprise.com/org/dioxus-engineering/bots/aa009e38e66f4e3086e3d54bc74984ae
Open in Devin Desktop: https://dioxus.staging.devinenterprise.com/desktop/session/2f57afb3bd9f442c81942accf1d4617b?variant=devin-insiders