You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
simple_scroll_to_fragment.html is now a perma-failure #19268
This regressed sometime on November 13, because there were no failures reported prior to that date, and since then there are >60 failures every day. This wasn't noticed because it's marked as intermittent at #14606.
You are correct that the test does not pass in Firefox. However in Servo we have a layout bug that makes the test pass (which we should fix in another issue). #19127 made the test not pass in Servo, in a way that is very different from the way that it does not pass in Firefox. Does that make sense?
In fact, I think padding, margin, overflow all have some incomplete logic, and will cause scrolling wrong, too. I believe #19466, #19477 are related to this assuming.
@tigercosmos In that case, perhaps the best thing to do here is to remove the code for "Step 10" for SetScrollTop and SetScrollLeft in order to allow scrolling from script to work, but also continuing to have the tests pass. What do you think?
In my opinion, "step 10" is followed by the SPEC to implement, and I thought this part is correct.
The key makes SetScrollTop wrong, which is in the test, is caused by scrollHeight getter, which influences "step 10".
So, removing the code in "step 10" doesn't solve the issue, and we should fix scrollHeight getter first. However, padding, margin, overflow are incomplete currently, makes fixing scrollHeight more difficult.
In other word, if we remove code, we just avoid the problem, not fix the problem.
@tigercosmos Another alternative is to remove all the new steps from SetScrollTop. In addition to the issue you mention, w3c/csswg-drafts#1526 also causes scrolling from script to fail for nodes with overflow:scroll.
@mrobinson I agree with you, that overflow:scroll might be a potential reason why this test failed, too. So now we have more than one factors to influence this test.
Rather than removing the code, I would prefer do the following.
(We can remove code now, but we still need to fix them in the future.)
@tigercosmos Since you say it is going to take a while to fix the issue, I think it makes sense to remove the code now in order to ensure that Servo can scroll from script. I can open a PR for this.
Activity
jdm commentedon Nov 17, 2017
This regression was caused by #19127. cc @tigercosmos
jdm commentedon Nov 17, 2017
See
./mach test-wpt tests/wpt/mozilla/tests/mozilla/simple_scroll_to_fragment.htmlto reproduce.tigercosmos commentedon Nov 17, 2017
I will check for it tomorrow.
tigercosmos commentedon Nov 18, 2017
This is what I saw on Firefox
simple_scroll_to_fragment.htmlsimple_scroll_to_fragment_ref.htmlLooks like it is the test problem?
@jdm How do you think?
jdm commentedon Nov 18, 2017
It does seem like the test was incorrect, but the change #19127 made no green appear at all.
tigercosmos commentedon Nov 18, 2017
The test want to test if two show as the same, but we can see they are not equal.
Or the red area(scroll bar maybe) will not be counted in testing?
jdm commentedon Nov 18, 2017
You are correct that the test does not pass in Firefox. However in Servo we have a layout bug that makes the test pass (which we should fix in another issue). #19127 made the test not pass in Servo, in a way that is very different from the way that it does not pass in Firefox. Does that make sense?
tigercosmos commentedon Nov 18, 2017
I see. very weird.
Assume the wrong is right...
tigercosmos commentedon Nov 18, 2017
what #19127 did is function
scrollTopsimple_scroll_to_fragment.htmlhas a line:I would add a new test to check out whether
scrollTopwill return100.If yes, that would be layout problem; if not, it is really caused by #19127
tigercosmos commentedon Nov 18, 2017
From
servo/components/script/dom/element.rs
Lines 366 to 376 in b2b51d3
Change to this will pass the test.
Although I have find a workaround for this issue, I think the most important reason is from #19280
tigercosmos commentedon Nov 19, 2017
@highfive assign me
highfive commentedon Nov 19, 2017
Hey @tigercosmos! Thanks for your interest in working on this issue. It's now assigned to you!
tigercosmos commentedon Nov 23, 2017
test for this web-platform-tests/wpt#8409
tigercosmos commentedon Nov 25, 2017
this one should be continue after #19280 done and web-platform-tests/wpt#8409 done.
mrobinson commentedon Jan 17, 2018
Here's a related cssom-view issue: w3c/csswg-drafts#1526
tigercosmos commentedon Jan 17, 2018
@highfive: unassigned me.
Cannot solve this in short term.
mrobinson commentedon Jan 17, 2018
I wonder if it makes sense to back out the original PR for the moment, since it breaks scrolling from script?
tigercosmos commentedon Jan 17, 2018
The origin PR did fix many tests. This is the only case that failed. Beside, this issue is caused by #19280 more precisely.
tigercosmos commentedon Jan 17, 2018
In fact, I think
padding,margin,overflowall have some incomplete logic, and will cause scrolling wrong, too. I believe #19466, #19477 are related to this assuming.mrobinson commentedon Jan 17, 2018
@tigercosmos In that case, perhaps the best thing to do here is to remove the code for "Step 10" for SetScrollTop and SetScrollLeft in order to allow scrolling from script to work, but also continuing to have the tests pass. What do you think?
tigercosmos commentedon Jan 17, 2018
Do you mean code in
simple_scroll_to_fragment.html?In my opinion, "step 10" is followed by the SPEC to implement, and I thought this part is correct.
The key makes
SetScrollTopwrong, which is in the test, is caused byscrollHeightgetter, which influences "step 10".So, removing the code in "step 10" doesn't solve the issue, and we should fix
scrollHeightgetter first. However,padding,margin,overfloware incomplete currently, makes fixingscrollHeightmore difficult.In other word, if we remove code, we just avoid the problem, not fix the problem.
mrobinson commentedon Jan 17, 2018
@tigercosmos Another alternative is to remove all the new steps from SetScrollTop. In addition to the issue you mention, w3c/csswg-drafts#1526 also causes scrolling from script to fail for nodes with overflow:scroll.
tigercosmos commentedon Jan 17, 2018
@mrobinson I agree with you, that
overflow:scrollmight be a potential reason why this test failed, too. So now we have more than one factors to influence this test.Rather than removing the code, I would prefer do the following.
(We can remove code now, but we still need to fix them in the future.)
Some work we need to do:
scrollHeight, which influenceshas_overflow()has_scrolling_box()in step 10. Should consider not onlyhiddendue to [cssom-view] "Elements and viewports have an associated scrol..." w3c/csswg-drafts#1526servo/components/script/dom/element.rs
Lines 1963 to 1969 in 7a87337
mrobinson commentedon Jan 17, 2018
@tigercosmos Since you say it is going to take a while to fix the issue, I think it makes sense to remove the code now in order to ensure that Servo can scroll from script. I can open a PR for this.
tigercosmos commentedon Jan 17, 2018
Sure. Once the test pass, this issue will close.
I will open a new issue to mention that some work above still need to do.
Temporarily disable spec compliant script scrolling
mrobinson commentedon Dec 14, 2024
This seems to be passing in modern layout so closing for now.