Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples to not combine desity and width
Hey, thanks for making this library! sindresorhus#6 updated the codebase to not allow density and width when parsing. (Although, amusingly, it does still allow it when stringifying - kind of the opposite of the robustness principle.) This updates the readme to match so that the examples are correct and parse-able. On a related note, would you be interested in another PR to make stringifying more strict? Also, what about a not-strict mode that does it's best and doesn't throw errors? (It would be handy for my use-case. For the moment I'm just wrapping this in a try/catch and using the original value if it throws.)
- Loading branch information