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

Frozen items do not guarantee complete distribution of free space #11405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gitspeaks
Copy link

Per sections 9.7(3) and 9.7(4), the loop at 9.7(5) may begin with all flex items already frozen and with initial free space remaining that is not distributed.

Example:

<!DOCTYPE html>
<style>
  .flex {
    display: flex;
    flex-flow: row nowrap;
    width: 100px;
    background: red;    
  }
  .flex > div {    
    flex: 0 1 auto;
  }
</style>
<div class="flex">
  <div style="background-color: orange">A</div>
  <div style="background-color: blue">B</div>
  <div style="background-color: green">C</div>
</div>

I am submitting the pull request under the CC0 license

@gitspeaks
Copy link
Author

This is particularly important for allowing remaining free space for 9.5. Main-Axis Alignment

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.

1 participant