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
Conversation
Heads up! This PR modifies the following files:
|
There was a problem hiding this 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. |
There was a problem hiding this comment.
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?
@bors-servo r=emilio |
📌 Commit a6c01b6 has been approved by |
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 -->
💔 Test failed - linux-dev |
@bors-servo retry |
⌛ Testing commit a6c01b6 with merge dae80dc0423132f685b971a1c02425905295842d... |
💔 Test failed - android |
@bors-servo retry |
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 -->
r? @nox |
There was a problem hiding this 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: hasn't been.
@bors-servo r+ |
📌 Commit 4622b2d has been approved by |
⌛ Testing commit 4622b2d with merge d865ef8ccd83d83b12a70ab52628eedafe0a290a... |
💔 Test failed - android |
@bors-servo r- Err, please fix the grammar nit :) |
@bors-servo r=emilio |
📌 Commit acb7242 has been approved by |
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 -->
☀️ 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 |
This should fix bug 1331530.
This change is