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

style: Turn the CSS flexible box model on by default. #13590

Closed
wants to merge 1 commit into from

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Oct 4, 2016

@highfive
Copy link

highfive commented Oct 4, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/longhand/box.mako.rs, components/style/properties/longhand/position.mako.rs, components/style/properties/shorthand/position.mako.rs
@highfive
Copy link

highfive commented Oct 4, 2016

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@stshine
Copy link
Contributor

stshine commented Oct 4, 2016

@bors-servo try
Since column flexbox is still not implemented there may be some false-positives. But that may not be a big deal, I suppose.

bors-servo added a commit that referenced this pull request Oct 4, 2016
style: Turn the CSS flexible box model on by default.

See
https://groups.google.com/forum/#!topic/mozilla.dev.servo/MWBms2_BMJo
for discussion.

r? @larsbergstrom

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

bors-servo commented Oct 4, 2016

Trying commit 3383184 with merge 4f67355...

@bors-servo
Copy link
Contributor

bors-servo commented Oct 5, 2016

💔 Test failed - linux-rel-wpt

@highfive
Copy link

highfive commented Oct 5, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/dirty_viewport.html
  └   → /_mozilla/css/dirty_viewport.html 111b0141f71ae09366d1ce49dcece7c79df65484
/_mozilla/css/dirty_viewport_ref.html 068fd52a0e48bc9f97e4b141e6c2d91351ec8dc4
Testing 111b0141f71ae09366d1ce49dcece7c79df65484 == 068fd52a0e48bc9f97e4b141e6c2d91351ec8dc4
@stshine
Copy link
Contributor

stshine commented Oct 5, 2016

I am comfused that with prefs enabled on my local machine there are tens of tests passed. And how can the current failed test been affected?
cc @SimonSapin

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Oct 5, 2016

I'm in favor of this (and the code changes look good), provided that the changes in test expectations are reasonable. Flexbox is definitely starting to look better, and having it on by default will let us get more feedback, which is great while we also have multiple people actively working on it (especially @stshine and @shinglyu).

@stshine
Copy link
Contributor

stshine commented Oct 5, 2016

Sorry, did not notice the mailing list discussion before.
My original plan is to enable them after I have implemented column flexbox. But I fell into the rabbit hole of marking the flex items approperately during construction, and have been struggling in the mud of nsCSSFrameConstructor.cpp since then.
Since I may have digged too deep, IMHO it is generally good if you agree to enable them for practical reason if the number of false-positive tests enabled is small. And of course I hope to enable them, why not 😄

@pcwalton
Copy link
Contributor Author

pcwalton commented Oct 5, 2016

@stshine I'm not sure what you mean by "I am comfused that with prefs enabled on my local machine there are tens of tests passed." Could you rephrase?

@stshine
Copy link
Contributor

stshine commented Oct 5, 2016

@pcwalton If run the tests with flex related properties enabled in prefs.json there will be more than ten additional tests got passed.

@pcwalton
Copy link
Contributor Author

pcwalton commented Oct 5, 2016

@bors-servo: try

I don't understand how the above test could possibly be related and it passes locally.

@pcwalton
Copy link
Contributor Author

pcwalton commented Oct 5, 2016

@stshine With this patch, the same number of flexbox tests pass as with master. Looking at one of them, I think margin handling is making a whole bunch of them fail.

This is a good reason to land this IMO: we can't catch regressions without it.

@pcwalton pcwalton force-pushed the pcwalton:turn-flexbox-on branch from 3383184 to 806c6e9 Oct 5, 2016
@highfive highfive removed the S-tests-failed label Oct 5, 2016
@pcwalton
Copy link
Contributor Author

pcwalton commented Oct 5, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 5, 2016

Trying commit 806c6e9 with merge b43f4b9...

bors-servo added a commit that referenced this pull request Oct 5, 2016
style: Turn the CSS flexible box model on by default.

See
https://groups.google.com/forum/#!topic/mozilla.dev.servo/MWBms2_BMJo
for discussion.

r? @larsbergstrom

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

bors-servo commented Oct 5, 2016

💔 Test failed - linux-rel-css

@highfive
Copy link

highfive commented Oct 5, 2016

  ▶ TIMEOUT [expected FAIL] /css21_dev/html4/abspos-replaced-width-margin-000.htm
  │ 
  │ VMware, Inc.
  │ Gallium 0.4 on softpipe
  │ 3.3 (Core Profile) Mesa 12.0.1
  │ Shutting down the Constellation after generating an output file or exit flag specified
  └ thread panicked while processing panic. aborting.
@pcwalton
Copy link
Contributor Author

pcwalton commented Oct 5, 2016

@stshine
Copy link
Contributor

stshine commented Oct 5, 2016

flexbox_absolute-atomic.htm seems to be the only false-positives since it has a abs-pos child in the flex container and the current code does nothing about it. Otherwise this should be OK.

@jdm
Copy link
Member

jdm commented Oct 5, 2016

@bors-servo: retry

@bors-servo
Copy link
Contributor

bors-servo commented Oct 5, 2016

Trying commit 806c6e9 with merge 95285fe...

bors-servo added a commit that referenced this pull request Oct 5, 2016
style: Turn the CSS flexible box model on by default.

See
https://groups.google.com/forum/#!topic/mozilla.dev.servo/MWBms2_BMJo
for discussion.

r? @larsbergstrom

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

bors-servo commented Oct 6, 2016

@stshine
Copy link
Contributor

stshine commented Oct 6, 2016

See #12453 (comment) for an incomplete list of unimplemented features of flexbox if anyone is interested.

Copy link
Member

emilio left a comment

r=me with that if you want to get this landed. I think the consensus is that this is what most people wanted.

@@ -23,7 +23,7 @@
""".split()
if product == "gecko":
values += "-moz-box -moz-inline-box".split()
experimental_values = set("flex".split())
experimental_values = set()

This comment has been minimized.

Copy link
@emilio

emilio Oct 12, 2016

Member

can you get rid of this variable entirely and its use below too?

@jdm
Copy link
Member

jdm commented Nov 2, 2016

@pcwalton One small change required, then r+.

@stshine
Copy link
Contributor

stshine commented Nov 4, 2016

If this get merged it should close #12191, #12455 and #13576 .

@nox
Copy link
Member

nox commented Nov 7, 2016

Superseded by #14111.

@nox nox closed this Nov 7, 2016
@stshine stshine mentioned this pull request Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants
You can’t perform that action at this time.