Flexbox: Percentages should not resolve against stretched flex item with indefinite flex basis
Open
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
Assessment
This issue has not been assessed yet.