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

Implement visibility for layout_2020 #26909

Merged
merged 2 commits into from Jun 14, 2020
Merged

Conversation

@MDeiml
Copy link
Contributor

MDeiml commented Jun 13, 2020

Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #26841 (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___
@highfive
Copy link

highfive commented Jun 13, 2020

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

@highfive
Copy link

highfive commented Jun 13, 2020

Heads up! This PR modifies the following files:

  • @emilio: components/style/properties/longhands/inherited_box.mako.rs
@highfive
Copy link

highfive commented Jun 13, 2020

warning Warning warning

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

MDeiml commented Jun 13, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2020

@MDeiml: 🔑 Insufficient privileges: not in try users

@jdm
Copy link
Member

jdm commented Jun 13, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2020

Trying commit b85a5da with merge e5139f3...

bors-servo added a commit that referenced this pull request Jun 13, 2020
Implement visibility for layout_2020

<!-- Please describe your changes on the following line: -->
Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.

---
<!-- 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 #26841 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jun 14, 2020

@bors-servo retry try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

Trying commit b85a5da with merge 2f932bd...

bors-servo added a commit that referenced this pull request Jun 14, 2020
Implement visibility for layout_2020

<!-- Please describe your changes on the following line: -->
Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.

---
<!-- 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 #26841 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

💔 Test failed - status-taskcluster

@MDeiml
Copy link
Contributor Author

MDeiml commented Jun 14, 2020

These tests need to be updated (using './mach update-wpt'), but I'm not sure how I'm supposed to do that. If I just use the log from the tests it also disables the intermittents which have nothing to do with this change. That can't be right?

@SimonSapin
Copy link
Member

SimonSapin commented Jun 14, 2020

Hi @MDeiml. Your patch looks good.

It also disables hit testing (which answers questions like "what elements are under this mouse cursor?") for hidden elements and I wasn’t sure that it should. Unfortunately we don’t have a specification for hit testing, so the next best thing is looking at other engines. And indeed, visibility: hidden seems to inhibit :hover in Firefox and Chromium: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/8203

For updating expected results, update-wpt needs to be fed the the log files created by test-wpt --log-raw. On CI those are named test-wpt.log and published as "artifacts". When viewing a log file in the web interface, the "three dots" menu at the bottom left has a "Raw log" link. Copying those URLs for the two tasks gives:

curl -L \
    https://community-tc.services.mozilla.com/api/queue/v1/task/Uxg8re09Q66y5Aw4y31tnw/runs/0/artifacts/public/test-wpt.log \
    https://community-tc.services.mozilla.com/api/queue/v1/task/E_GKbQc3RcmHeidKPLdjmw/runs/0/artifacts/public/logs/live.log \
> /tmp/servo.log
./mach update-wpt --layout-2020 /tmp/servo.log
git status --short
 D tests/wpt/metadata-layout-2020/css/CSS2/positioning/position-relative-032.xht.ini
 D tests/wpt/metadata-layout-2020/css/CSS2/visufx/visibility-005.xht.ini
 D tests/wpt/metadata-layout-2020/css/CSS2/visufx/visibility-block-001.xht.ini
 M tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-001.html.ini
 M tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-001.html.ini
 M tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-002.html.ini
 M tests/wpt/metadata-layout-2020/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini
 M tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini
 M tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-iframes.html.ini
 M tests/wpt/metadata-layout-2020/css/cssom/serialize-values.html.ini
 D tests/wpt/mozilla/meta-layout-2020/css/visibility_hidden.html.ini
?? tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini
?? tests/wpt/metadata-layout-2020/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini
?? tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-001.html.ini

For tests already marked as intermittent in a way it doesn’t matter because CI ignores their result for the purpose of deciding wether to merge a PR. Still, to make a PR cleaner we can look at intermittents.log artifacts and manually revert some of the changes made by update-wpt. The tooling there is not great, sorry!

… and by the time I typed this up it looks like you’ve already managed :)

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

📌 Commit 046e059 has been approved by SimonSapin

bors-servo added a commit that referenced this pull request Jun 14, 2020
Implement visibility for layout_2020

<!-- Please describe your changes on the following line: -->
Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.

---
<!-- 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 #26841 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

Testing commit 046e059 with merge 7d22ddc...

@MDeiml
Copy link
Contributor Author

MDeiml commented Jun 14, 2020

Thanks for explaining it anyways

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

💡 This pull request was already approved, no need to approve it again.

  • This pull request is currently being tested. If there's no response from the continuous integration service, you may use retry to trigger a build again.
@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

📌 Commit 046e059 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

Testing commit 046e059 with merge 02bcee3...

bors-servo added a commit that referenced this pull request Jun 14, 2020
Implement visibility for layout_2020

<!-- Please describe your changes on the following line: -->
Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.

---
<!-- 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 #26841 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
@SimonSapin
Copy link
Member

SimonSapin commented Jun 14, 2020

Uh it looks like editing my comment that contains the "r+" command made Homu/Bors interpret that as a new command, which is arguably a bug, and then despite commenting "no need to approve again" it made and pushed a second merge commit triggering a second CI run, which is another bug.

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

💔 Test failed - status-taskcluster

@SimonSapin
Copy link
Member

SimonSapin commented Jun 14, 2020

Ah this patch also adds visibility: collapse to Layout 2013 so some tests started passing there and those expectations also need updating

@MDeiml MDeiml force-pushed the MDeiml:layout2020-visibility branch from 046e059 to 6701ded Jun 14, 2020
@SimonSapin
Copy link
Member

SimonSapin commented Jun 14, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

📌 Commit 6701ded has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

Testing commit 6701ded with merge 74cd81b...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2020

☀️ Test successful - status-taskcluster
Approved by: SimonSapin
Pushing 74cd81b to master...

@bors-servo bors-servo merged commit 74cd81b into servo:master Jun 14, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
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.

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