Repository navigation
[WIP] fix scroll area about scrollHeight and scrollWidth - #19469
tigercosmos wants to merge 1 commit into
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try |
[WIP] fix scroll area about scrollHeight and scrollWidth <!-- Please describe your changes on the following line: --> Currently `scrollHeight` will get the result that `max(height + padding, margin)` It should be `scrollHeight = height + padding + margin` --- <!-- 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 #19280 (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/19469) <!-- Reviewable:end -->
|
💔 Test failed - android |
|
@KiChjang This make many |
|
That is a problem affecting many PRs right now that we don't understand yet :( |
|
@jdm This PR has many |
| @@ -463,16 +463,16 @@ impl FragmentBorderBoxIterator for UnioningFragmentScrollAreaIterator { | |||
| let bottom_padding = (border_box.size.height.to_f32_px() - bottom_border - top_border) as i32; | |||
There was a problem hiding this comment.
This looks somewhat fishy to me, in the sense that margin accounts for writing-mode, but not padding... Not that it wasn't wrong before, though...
There was a problem hiding this comment.
Are you saying bottom_padding here is weird? What is writing-mode?
| let left = max(iterator.union_rect.origin.x, iterator.origin_rect.origin.x); | ||
| Rect::new(Point2D::new(left, iterator.origin_rect.origin.y), | ||
| Size2D::new(iterator.origin_rect.size.width, bottom)) | ||
| Size2D::new(iterator.union_rect.size.width, bottom)) |
There was a problem hiding this comment.
So, this also includes left and top margins, right? That looks wrong per https://drafts.csswg.org/cssom-view/#scrolling-area, isn't it?
|
All the passes and timeouts are known-intermittent. |
|
@bors-servo try |
|
@bors-servo try |
|
@bors-servo retry |
[WIP] fix scroll area about scrollHeight and scrollWidth <!-- Please describe your changes on the following line: --> Currently `scrollHeight` will get the result that `max(height + padding, margin)` It should be `scrollHeight = height + padding + margin` Same as `scrollWidth` --- <!-- 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 #19280 (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/19469) <!-- Reviewable:end -->
|
💔 Test failed - android |
{"status": "FAIL", "group": "default", "message": "assert_equals: scrollWidth should be 700 expected 700 but got 660", "stack": "nonQuirksFrame.onload/<@http://web-platform.test:8000/css/cssom-view/scrolling-quirks-vs-nonquirks.html:189:5\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1489:20\ntest@http://web-platform.test:8000/resources/testharness.js:511:9\nnonQuirksFrame.onload@http://web-platform.test:8000/css/cssom-view/scrolling-quirks-vs-nonquirks.html:188:3\n", "subtest": "scrollWidth/scrollHeight on the HTML body element in non-quirks mode", "test": "/css/cssom-view/scrolling-quirks-vs-nonquirks.html", "line": 128714, "action": "test_result", "expected": "PASS"}
{"status": "FAIL", "group": "default", "message": "assert_equals: initial scrollWidth should be 510 expected 510 but got 310", "stack": "@http://web-platform.test:8000/css/cssom-view/elementScroll-002.html:70:9\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1489:20\ntest@http://web-platform.test:8000/resources/testharness.js:511:9\n@http://web-platform.test:8000/css/cssom-view/elementScroll-002.html:67:5\n", "subtest": "Element scrollHeight/scrollWidth getter test with padding + height/width + margin", "test": "/css/cssom-view/elementScroll-002.html", "line": 148747, "action": "test_result", "expected": "PASS"}
{"status": "FAIL", "group": "default", "message": "assert_equals: initial scrollWidth should be 500 expected 500 but got 300", "stack": "@http://web-platform.test:8000/css/cssom-view/elementScroll-002.html:76:9\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1489:20\ntest@http://web-platform.test:8000/resources/testharness.js:511:9\n@http://web-platform.test:8000/css/cssom-view/elementScroll-002.html:73:5\n", "subtest": "Element scrollHeight/scrollWidth getter test with height/width + margin", "test": "/css/cssom-view/elementScroll-002.html", "line": 148748, "action": "test_result", "expected": "PASS"} |
Currently
scrollHeightwill get the result thatmax(height + padding, margin)It should be
scrollHeight = height + padding + marginSame as
scrollWidth./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is