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 upimplement overflow directions in layout/query.rs #20867
Open
Labels
Comments
bors-servo
added a commit
that referenced
this issue
May 28, 2018
fix logic in overflow_direction, also add a FIXME <!-- Please describe your changes on the following line: --> This PR fix #19477, which the logic is obviously wrong. However, it is impossible to add a test for this. Due to #20867, the ` overflow_direction` is a hard code now. It never go to other conditions. I add a FIXME there, and also add a SPEC link. --- <!-- 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 #19477(github issue number if applicable). <!-- Either: --> - [ ] 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. --> <!-- 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/20868) <!-- Reviewable:end -->
|
Could someone help to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
overflow_directionin the layout is just a hard code which is always to beOverflowDirection::RightAndDownSPEC: https://drafts.csswg.org/cssom-view/#overflow-directions
servo/components/layout/query.rs
Lines 388 to 399 in 0ff6f32