Skip to content

Conversation

@apexskier
Copy link

Two issues were fixed

  • now suppports all shorthand variations (grow/shrink/basis, grow/shrink, and grow). Previously it didn't support grow/shrink
  • Also allows 0 as a value for grow/shrink. Because the logic checked token.match(NUMBER) directly, a zero value evaluated as false.

resolves #37

Two issues were fixed
- now suppports all shorthand variations (grow/shrink/basis,
  grow/shrink, and grow). Previously it didn't support grow/shrink
- Also allows `0` as a value for grow/shrink. Because the logic checked
  `token.match(NUMBER)` directly, a zero value evaluated as false.
@jacobp100
Copy link
Contributor

jacobp100 commented May 15, 2017

I've fixed this in another branch. In terms of the flex order, it should be spec compliant. I'm not too sure what cases you were trying to get to work, but if you think there's a case or two missing, feel free to open another bug! But thanks anyway for helping!

@jacobp100 jacobp100 closed this May 15, 2017
@apexskier
Copy link
Author

I think your fix was good!

mxstbr added a commit that referenced this pull request May 22, 2017
Fix parsing various shorthands when a value is zero (fixes #38)
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.

Error: Failed to parse declaration "flex: 0 1"

2 participants