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 `word-break: keep-all` (#9673) #13414

Merged
merged 4 commits into from Sep 30, 2016
Merged

Implement `word-break: keep-all` (#9673) #13414

merged 4 commits into from Sep 30, 2016

Conversation

@flacerdk
Copy link
Contributor

flacerdk commented Sep 25, 2016

Implement the keep-all value for the word-break property, as specified in CSS.

The relevant CSSWG tests (in tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #9673.
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Sep 25, 2016

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

@highfive
Copy link

highfive commented Sep 25, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/longhand/inherited_text.mako.rs
@highfive
Copy link

highfive commented Sep 25, 2016

warning Warning warning

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

stshine commented Sep 25, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Sep 25, 2016

Trying commit 0c80d84 with merge 6675ea8...

bors-servo added a commit that referenced this pull request Sep 25, 2016
Implement `word-break: keep-all` (#9673)

<!-- Please describe your changes on the following line: -->
Implement the `keep-all` value for the `word-break` property, as specified in [CSS](https://drafts.csswg.org/css-text-3/#word-break-property).

The relevant CSSWG tests (in `tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm`) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)

---
<!-- 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 #9673.

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

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

bors-servo commented Sep 25, 2016

💔 Test failed - linux-dev

@jdm
Copy link
Member

jdm commented Sep 25, 2016

@flacerdk Could you be more specific about the JS that's not working and how it is not doing so?

@jdm
Copy link
Member

jdm commented Sep 25, 2016

http://build.servo.org/builders/linux-rel/builds/3348/steps/test_3/logs/stdio shows a lot of "FAIL [expected PASS]" results, but also a bunch of "PASS [expected FAIL]" for /css-text-3_dev/html/css3-text-line-break-jazh-* tests.

@jdm
Copy link
Member

jdm commented Sep 25, 2016

Oh, I bet you're hitting #12939, since the tests are checking offsetWidth of a span :<

@jdm
Copy link
Member

jdm commented Sep 25, 2016

@highfive highfive assigned mbrubeck and unassigned jdm Sep 25, 2016
@flacerdk
Copy link
Contributor Author

flacerdk commented Sep 25, 2016

Indeed that seems to be the problem with the word-break tests.

I had overlooked the line-break ones; I'll take a look into that now.

@flacerdk flacerdk closed this Sep 26, 2016
@flacerdk flacerdk force-pushed the flacerdk:master branch from 0c80d84 to d00639c Sep 26, 2016
@flacerdk flacerdk reopened this Sep 26, 2016
@flacerdk
Copy link
Contributor Author

flacerdk commented Sep 26, 2016

Oops, looks like I messed up with rebasing and accidentally closed this.

The line-break tests should pass now. There are some other tests that are not passing on my machine, but they also seem to be failing when I build HEAD, so hopefully it's just an issue with my local setup.

@emilio
Copy link
Member

emilio commented Sep 26, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Sep 26, 2016

Trying commit f16cff4 with merge 4c6cf8a...

bors-servo added a commit that referenced this pull request Sep 26, 2016
Implement `word-break: keep-all` (#9673)

<!-- Please describe your changes on the following line: -->
Implement the `keep-all` value for the `word-break` property, as specified in [CSS](https://drafts.csswg.org/css-text-3/#word-break-property).

The relevant CSSWG tests (in `tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm`) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)

---
<!-- 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 #9673.

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

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

bors-servo commented Sep 26, 2016

@emilio
Copy link
Member

emilio commented Sep 26, 2016

I'm surprised no text expectations change, can you write a reftest that tests this if there isn't, please? Thanks! :)

@jdm
Copy link
Member

jdm commented Sep 26, 2016

Note: docs on writing tests exist.

@flacerdk
Copy link
Contributor Author

flacerdk commented Sep 26, 2016

I'll work on that; I suppose I can write versions of the currently existing tests that don't depend on #12939 being fixed.

@jdm
Copy link
Member

jdm commented Sep 26, 2016

Certainly I don't think it's necessary to duplicate all of them, but a couple representative ones demonstrating the correct functioning of keep-all would be valuable.

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 27, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Sep 28, 2016

Testing commit fb66abb with merge 8f451cf...

bors-servo added a commit that referenced this pull request Sep 28, 2016
Implement `word-break: keep-all` (#9673)

<!-- Please describe your changes on the following line: -->
Implement the `keep-all` value for the `word-break` property, as specified in [CSS](https://drafts.csswg.org/css-text-3/#word-break-property).

The relevant CSSWG tests (in `tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm`) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)

---
<!-- 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 #9673.

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

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

bors-servo commented Sep 28, 2016

💔 Test failed - mac-dev-unit

@KiChjang
Copy link
Member

KiChjang commented Sep 28, 2016

@bors-servo retry

@flacerdk
Copy link
Contributor Author

flacerdk commented Sep 29, 2016

Did the buildbot die?

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 29, 2016

@bors-servo r+ retry

@bors-servo
Copy link
Contributor

bors-servo commented Sep 29, 2016

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

  • There's another pull request that is currently being tested, blocking this pull request: #13323
@bors-servo
Copy link
Contributor

bors-servo commented Sep 29, 2016

📌 Commit fb66abb has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Sep 29, 2016

Testing commit fb66abb with merge 2e65d8a...

bors-servo added a commit that referenced this pull request Sep 29, 2016
Implement `word-break: keep-all` (#9673)

<!-- Please describe your changes on the following line: -->
Implement the `keep-all` value for the `word-break` property, as specified in [CSS](https://drafts.csswg.org/css-text-3/#word-break-property).

The relevant CSSWG tests (in `tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm`) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)

---
<!-- 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 #9673.

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

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

bors-servo commented Sep 29, 2016

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Sep 29, 2016

bors-servo added a commit that referenced this pull request Sep 30, 2016
Implement `word-break: keep-all` (#9673)

<!-- Please describe your changes on the following line: -->
Implement the `keep-all` value for the `word-break` property, as specified in [CSS](https://drafts.csswg.org/css-text-3/#word-break-property).

The relevant CSSWG tests (in `tests/wpt/css-tests/css-text-3_dev/html/word-break-keep-all-*.htm`) do not currently pass. As far as I can tell, this is because the tests use some JavaScript code that is not working properly. (But then, it seems that most tests in this directory are failing at the moment. I'm not sure what can be done here for now.)

---
<!-- 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 #9673.

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

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

bors-servo commented Sep 30, 2016

Testing commit fb66abb with merge c944234...

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2016

@bors-servo bors-servo merged commit fb66abb into servo:master Sep 30, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
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.