Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNegative value on flex-basis should be rejected #15902
Comments
|
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
|
cc @Manishearth |
|
This can be fixed by adding |
|
Oh, scratch that. It looks like |
|
Instead of going for a lot of |
|
Hi, I like to work on this @highfive: assign me |
|
Hey @mrkalling! Thanks for your interest in working on this issue. It's now assigned to you! |
|
@mrkalling Did you start working on this? |
|
I have looked at it but I don't understand what is the problem. When I test to set flex-basis to a negative number servo seems to ignore it which is what we want, right? |
|
It looks like Servo's |
|
Probably adding a new line "parse_non_negative" if product == "gecko" else "parse",would be enough. |
|
@mrkalling ping? |
|
This is Gecko only, and I'm helping out someone working on this. |
Fixes servo#15902
Fixes servo#15902
Reject negative values of flex-basis. Fixes #15902 <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15902 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16274) <!-- Reviewable:end -->
Relevant code:
servo/components/style/properties/longhand/position.mako.rs
Lines 200 to 207 in 8b8eb5e
Should be an easy one although I cannot provide how to fix it without further investigation.