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

`overflow:scroll` not works, cannot scroll, no scrollbar #20863

Open
tigercosmos opened this issue May 26, 2018 · 0 comments
Open

`overflow:scroll` not works, cannot scroll, no scrollbar #20863

tigercosmos opened this issue May 26, 2018 · 0 comments

Comments

@tigercosmos
Copy link
Collaborator

@tigercosmos tigercosmos commented May 26, 2018

Test case:

<!doctype html>
<div id="scroller1" style="height: 100px; width: 100px; overflow:scroll; background: red;">
    <div style="background: green; margin-top: 100px; margin-left: 100px; width: 100px; height: 100px;"></div>
</div>

the code above should be like the following, but in overflow:scroll only one block could be seen.

--------------
| red  | red   |
--------------
| red  | green |
--------------

In Firefox, there is a scroll bar that I can scroll it.
default

however, in Servo there is no scroll bar can scroll it. I cannot even use javascript to control it:
scroller1.scrollTop = 50;scroller1.scrollLeft = 50;
default

This is the probable reason why tests/wpt/web-platform-tests/css/cssom-view/elementScroll-002.html cannot pass.

related: #19466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.