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

Set flex-basis to 0% when omitted in flex shorthand. #17073

Merged
merged 1 commit into from May 29, 2017

Conversation

upsuper
Copy link
Contributor

@upsuper upsuper commented May 29, 2017

This should fix bug 1331530.


This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/specified/length.rs, components/style/properties/helpers.mako.rs, components/style/properties/shorthand/position.mako.rs
  • @emilio: components/style/values/specified/length.rs, components/style/properties/helpers.mako.rs, components/style/properties/shorthand/position.mako.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 29, 2017
@highfive
Copy link

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with that bit.

flex_basis: basis.unwrap_or(longhands::flex_basis::SpecifiedValue::zero()),
// Per spec, this should be SpecifiedValue::zero(), but all
// browsers currently agree on using `0%`. This is a spec
// change which hasn't be adopted by browsers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you link to the either the spec change or the bug?

@upsuper
Copy link
Contributor Author

upsuper commented May 29, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit a6c01b6 has been approved by emilio

@highfive highfive assigned emilio and unassigned nox May 29, 2017
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 29, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit a6c01b6 with merge 71372d0...

bors-servo pushed a commit that referenced this pull request May 29, 2017
Set flex-basis to 0% when omitted in flex shorthand.

This should fix [bug 1331530](https://bugzilla.mozilla.org/show_bug.cgi?id=1331530).

<!-- 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/17073)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 29, 2017
@upsuper
Copy link
Contributor Author

upsuper commented May 29, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

⌛ Testing commit a6c01b6 with merge dae80dc0423132f685b971a1c02425905295842d...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels May 29, 2017
@bors-servo
Copy link
Contributor

💔 Test failed - android

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 29, 2017
@upsuper
Copy link
Contributor Author

upsuper commented May 29, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

⌛ Testing commit a6c01b6 with merge c47f215...

bors-servo pushed a commit that referenced this pull request May 29, 2017
Set flex-basis to 0% when omitted in flex shorthand.

This should fix [bug 1331530](https://bugzilla.mozilla.org/show_bug.cgi?id=1331530).

<!-- 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/17073)
<!-- Reviewable:end -->
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label May 29, 2017
@upsuper
Copy link
Contributor Author

upsuper commented May 29, 2017

r? @nox

@highfive highfive assigned nox and unassigned emilio May 29, 2017
Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sigh, I guess.

flex_basis: basis.unwrap_or(longhands::flex_basis::SpecifiedValue::zero()),
// Per spec, this should be SpecifiedValue::zero(), but all
// browsers currently agree on using `0%`. This is a spec
// change which hasn't be adopted by browsers:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: hasn't been.

@emilio
Copy link
Member

emilio commented May 29, 2017

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 4622b2d has been approved by emilio

@highfive highfive assigned emilio and unassigned nox May 29, 2017
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 29, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 4622b2d with merge d865ef8ccd83d83b12a70ab52628eedafe0a290a...

@bors-servo
Copy link
Contributor

💔 Test failed - android

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 29, 2017
@emilio
Copy link
Member

emilio commented May 29, 2017

@bors-servo r-

Err, please fix the grammar nit :)

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels May 29, 2017
@upsuper
Copy link
Contributor Author

upsuper commented May 29, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit acb7242 has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 29, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit acb7242 with merge 76daf46...

bors-servo pushed a commit that referenced this pull request May 29, 2017
Set flex-basis to 0% when omitted in flex shorthand.

This should fix [bug 1331530](https://bugzilla.mozilla.org/show_bug.cgi?id=1331530).

<!-- 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/17073)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: emilio
Pushing 76daf46 to master...

@bors-servo bors-servo merged commit acb7242 into servo:master May 29, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 29, 2017
@upsuper upsuper deleted the flex-basis-zero branch May 30, 2017 00:58
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.

None yet

5 participants