DioxusLabs / DioxusLabs/taffy

Flexbox: Percentages should not resolve against stretched flex item with indefinite flex basis

Open
#950 6 comments 0 reactions 1 assignee Claimed by @rit3sh-x View on GitHub
A-flexbox bug
Dominant language
Rust
Stars
3.6k
Forks
222
Avg merge
10h 41m
Merged PRs (30d)
40

Description

The inner percentage in the following HTML should not resolve (~should resolve against 0~ behave as auto):

```html






```

A definite `flex-basis` set on the middle `div` would make the percentage resolve.

See: https://github.com/servo/servo/issues/44384#issuecomment-4291660790

---

The fix for this is is probably to keep track of this within the out flexbox container's layout, and set the "parent height" to `None` in the case that the percentage ought not to resolve.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.