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

Use floats to represent intended fixed position #11330

Merged
merged 1 commit into from May 31, 2016

Conversation

@mitchhentges
Copy link
Contributor

mitchhentges commented May 22, 2016

Thank you for contributing to Servo! Please replace each [ ] by [X] when the step is complete, and replace __ with appropriate data:

  • ./mach build -d does not report any errors
  • ./mach test-tidy --faster does not report any errors
  • These changes fix #1516

Either:

  • There are tests for these changes

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.


This change is Reviewable

@highfive
Copy link

highfive commented May 22, 2016

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @KiChjang (or someone else) soon.

@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 59b72af to 849e67a May 22, 2016
@highfive
Copy link

highfive commented May 22, 2016

New code was committed to pull request.

@KiChjang
Copy link
Member

KiChjang commented May 24, 2016

Fails the WPT lint:

diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json

index 1b3f596..04adcb1 100644

--- a/tests/wpt/mozilla/meta/MANIFEST.json

+++ b/tests/wpt/mozilla/meta/MANIFEST.json

@@ -4108,16 +4108,16 @@

             "url": "/_mozilla/css/position_abs_width_percentage_a.html"

           }

         ],

-        "css/position_fixed_a.html": [

+        "css/position_fixed.html": [

           {

-            "path": "css/position_fixed_a.html",

+            "path": "css/position_fixed.html",

             "references": [

               [

-                "/_mozilla/css/position_fixed_b.html",

+                "/_mozilla/css/position_fixed_ref.html",

                 "=="

               ]

             ],

-            "url": "/_mozilla/css/position_fixed_a.html"

+            "url": "/_mozilla/css/position_fixed.html"

           }

         ],

         "css/position_fixed_background_color_a.html": [

@@ -10920,16 +10920,16 @@

           "url": "/_mozilla/css/position_abs_width_percentage_a.html"

         }

       ],

-      "css/position_fixed_a.html": [

+      "css/position_fixed.html": [

         {

-          "path": "css/position_fixed_a.html",

+          "path": "css/position_fixed.html",

           "references": [

             [

-              "/_mozilla/css/position_fixed_b.html",

+              "/_mozilla/css/position_fixed_ref.html",

               "=="

             ]

           ],

-          "url": "/_mozilla/css/position_fixed_a.html"

+          "url": "/_mozilla/css/position_fixed.html"

         }

       ],

       "css/position_fixed_background_color_a.html": [
@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 849e67a to 3186046 May 24, 2016
@highfive
Copy link

highfive commented May 24, 2016

New code was committed to pull request.

background: black;
top: 100px;
bottom: 30px;
float:left;

This comment has been minimized.

Copy link
@KiChjang

KiChjang May 24, 2016

Member

nit: Space after :.

@KiChjang
Copy link
Member

KiChjang commented May 24, 2016

r=me post-nit.

@mitchhentges
Copy link
Contributor Author

mitchhentges commented May 24, 2016

Thanks for catching that, sorry for missing it

@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 3186046 to 01190cd May 24, 2016
@highfive
Copy link

highfive commented May 24, 2016

New code was committed to pull request.

@KiChjang
Copy link
Member

KiChjang commented May 24, 2016

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented May 24, 2016

📌 Commit 01190cd has been approved by KiChjang

@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

Testing commit 01190cd with merge a7d8bb1...

bors-servo added a commit that referenced this pull request May 25, 2016
Use floats to represent intended fixed position

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 --faster` does not report any errors
- [X] These changes fix #1516

Either:
- [X] There are tests for these changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11330)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

💔 Test failed - mac-rel-css

@cbrewster
Copy link
Member

cbrewster commented May 25, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, windows are reusable. Rebuilding only linux-rel, mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

💔 Test failed - mac-rel-wpt

@highfive
Copy link

highfive commented May 25, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/position_fixed_a.html
  └   → /_mozilla/css/position_fixed_a.html 998f40ff66ec57b74253e256fa27d9168f9eb3c5
/_mozilla/css/position_fixed_b.html 1a6c482c7e6e5582fd4dac44a054962d296e82d8
Testing 998f40ff66ec57b74253e256fa27d9168f9eb3c5 == 1a6c482c7e6e5582fd4dac44a054962d296e82d8
@cbrewster
Copy link
Member

cbrewster commented May 25, 2016

bors-servo added a commit that referenced this pull request May 25, 2016
Use floats to represent intended fixed position

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 --faster` does not report any errors
- [X] These changes fix #1516

Either:
- [X] There are tests for these changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11330)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

Testing commit 01190cd with merge ad2eb5c...

@mbrubeck
Copy link
Contributor

mbrubeck commented May 25, 2016

@bors-servo r- force

This PR re-enables position_fixed_a.html so we shouldn't check it in if it's failing.

@bors-servo
Copy link
Contributor

bors-servo commented May 25, 2016

The build was interrupted to prioritize another pull request.

@cbrewster
Copy link
Member

cbrewster commented May 25, 2016

@mbrubeck ahh good catch, sorry about that!

@mitchhentges
Copy link
Contributor Author

mitchhentges commented May 25, 2016

That is ... really weird. I ran it ~50 times locally, and it passed every time. Maybe there's something special with the Mac build, or build agent? Can I get any more information on the failure?

@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 01190cd to de75884 May 25, 2016
@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 95d7500 to 319bb93 May 28, 2016
@highfive
Copy link

highfive commented May 28, 2016

New code was committed to pull request.

@emilio
Copy link
Member

emilio commented May 28, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 28, 2016

Trying commit 319bb93 with merge 7313c38...

bors-servo added a commit that referenced this pull request May 28, 2016
Use floats to represent intended fixed position

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 --faster` does not report any errors
- [X] These changes fix #1516

Either:
- [X] There are tests for these changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11330)
<!-- Reviewable:end -->
log Outdated
@@ -0,0 +1,95 @@
{"source": "web-platform-tests", "thread": "MainThread", "time": 1464458627264, "action": "log", "message": "Using 6 client processes", "level": "INFO", "pid": 3625}

This comment has been minimized.

Copy link
@emilio

emilio May 28, 2016

Member

This file would need to go before landing this btw

@mitchhentges
Copy link
Contributor Author

mitchhentges commented May 28, 2016

So, I've updated the tests to assume that the font will be rendered as black squres. Though two html files won't match up with ./mach run (because 'Ahem' is actually rendered), it will be rendered consistently as black squares on all machines.

It's OK that the font is a black screen, because this test checks the positioning of fixed and dynamically-sized containers. Since even black-square-rendered text is still dynamically sized, the test is still valid

@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 319bb93 to 51eed25 May 28, 2016
@highfive
Copy link

highfive commented May 28, 2016

New code was committed to pull request.

@mitchhentges
Copy link
Contributor Author

mitchhentges commented May 28, 2016

That would explain a lot of things. Maybe ./mach run is the thing that doesn't include the font?

I'll update the comment if we can confirm that Ahem is square-y. I thought it was a bug on my end that gnome-font-viewer was seeing squares

@emilio
Copy link
Member

emilio commented May 28, 2016

Whoops, sorry, deleted my previous comment thinking I had misread you but...

Yes, Ahem is AFAIK square-y, that's the point and why it's used for testing :-)

@emilio
Copy link
Member

emilio commented May 28, 2016

I think @mbrubeck can confirm it if you need more confirmation

@jdm
Copy link
Member

jdm commented May 29, 2016

Yes, Ahem doesn't contain actual letters, only solid squares.

@mitchhentges mitchhentges force-pushed the mitchhentges:1516-reference-test branch from 51eed25 to 94a884b May 29, 2016
@highfive
Copy link

highfive commented May 29, 2016

New code was committed to pull request.

@mitchhentges
Copy link
Contributor Author

mitchhentges commented May 29, 2016

I think that it's totally good now

@KiChjang
Copy link
Member

KiChjang commented May 31, 2016

bors-servo added a commit that referenced this pull request May 31, 2016
Use floats to represent intended fixed position

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 --faster` does not report any errors
- [X] These changes fix #1516

Either:
- [X] There are tests for these changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11330)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2016

Trying commit 94a884b with merge 05165b8...

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2016

@KiChjang
Copy link
Member

KiChjang commented May 31, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2016

📌 Commit 94a884b has been approved by KiChjang

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2016

Testing commit 94a884b with merge 55b0bb0...

bors-servo added a commit that referenced this pull request May 31, 2016
Use floats to represent intended fixed position

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 --faster` does not report any errors
- [X] These changes fix #1516

Either:
- [X] There are tests for these changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11330)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2016

@bors-servo bors-servo merged commit 94a884b into servo:master May 31, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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.

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