Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix #12193 Servo displays upper level Thai character in wrong place. #12905
Conversation
highfive
commented
Aug 17, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon. |
highfive
commented
Aug 17, 2016
|
Great find! Could you add a reftest for this to make sure it doesn't regress? Thanks :) |
|
@bors-servo: try |
Fix #12193 Servo displays upper level Thai character in wrong place. <!-- Please describe your changes on the following line: --> --- <!-- 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` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- 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/12905) <!-- Reviewable:end -->
|
|
highfive
commented
Aug 17, 2016
|
|
No luck, there wasn't a pre-existing test covering this, so you should create one as @pcwalton says. The word-break-break-all-007.htm test doesn't seem intermittent, and seems related to this PR, so it deserves some investigation too. You don't need to do anything about the perspective test, that's #12891. Thanks for your PR! :) |
… wrong place.
|
A reftest was just added. |
|
@bors-servo: r=pcwalton,emilio |
|
|
Fix #12193 Servo displays upper level Thai character in wrong place. <!-- Please describe your changes on the following line: --> --- <!-- 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` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- 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/12905) <!-- Reviewable:end -->
|
What about the test failure for |
|
@KiChjang Hmm... I thought it was intermittent, but apparently it's not? Then it'll fail. @bors-servo: r- Yeah, it deserves some more investigation, @mbrubeck seemed to think they were passing accidentally in #11303, but yeah, agreed. @veer66 can you check if they were passing by accident before your patch or not? |
|
|
highfive
commented
Aug 18, 2016
|
|
According to /word-break-break-all-007.htm, after applying the patch, document.getElementById('testspan').offsetWidth returns 0. Please give a hint where the code for obtaining offsetWidth is. |
|
This is what you're looking for: servo/components/layout/query.rs Line 777 in 4cefbcc Thanks! |
|
document.getElementById('testspan').offsetWidth returned 0 for /word-break-break-all-007.htm even before the patch was applied. I keep investigating. |
|
word-break-break-all-007.htm test should fail before apply patch. By increasing div.test width to 420px, In Servo (2eb0328), it looks like picture below: However, I should look like this: |
|
When I just change width of div in word-break-break-all-007.htm to 370px, the test can be passed. In brief, the problem occurs because document.getElementById('testspan').offsetWidth always return 0. |
|
It seems to me we might have been passing that test accidentally, but I'll let @pcwalton confirm if that's the case. |
|
See #13442 |


veer66 commentedAug 17, 2016
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is