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
Implement Element.scrollTop and Element.scrollLeft #9650
@izgzhen I looked into it a bit when I logged the issue. It can be done by only writing Rust (the bindings to JS are already in place). I suspect there won't be much code to write, most likely the difficulty will be in finding how to access the data you need.
@peterjoel Thanks. So should I simply copy & paste your stub code into my master branch servo or work on your forked branch? I favor the former one since it is simpler, but I am not sure about your idea.
@izgzhen Create your own branch from master. Any related changes from my fork are already merged. (Unless I forgot something and you're talking about something specific?)
Activity
Stub for element.scrollTop and scrollLeft
izgzhen commentedon Mar 3, 2016
I am interested to take this issue. But I am a new comer and wonder if it would be relatively easy to work out.
peterjoel commentedon Mar 4, 2016
@izgzhen I looked into it a bit when I logged the issue. It can be done by only writing Rust (the bindings to JS are already in place). I suspect there won't be much code to write, most likely the difficulty will be in finding how to access the data you need.
izgzhen commentedon Mar 4, 2016
@peterjoel Thanks. So should I simply copy & paste your stub code into my master branch servo or work on your forked branch? I favor the former one since it is simpler, but I am not sure about your idea.
SimonSapin commentedon Mar 4, 2016
Note that these API can make elements with
overflow: hiddenscroll. Test case:http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3962
peterjoel commentedon Mar 4, 2016
@izgzhen Create your own branch from master. Any related changes from my fork are already merged. (Unless I forgot something and you're talking about something specific?)
izgzhen commentedon Mar 4, 2016
@peterjoel I mean this peterjoel@17b4253 change. It is not in master branch.
peterjoel commentedon Mar 4, 2016
@izgzhen Ah, yes I forgot I did that. Yes, either copy it or pull from my fork into yours. Copying sounds easiest.
Auto merge of #9968 - izgzhen:scroll, r=asajeffrey
timvandermeij commentedon Apr 20, 2016
Fixed by #9968?
servo: Merge #9968 - Implement scroll, scrollLeft, scrollTop and frie…
servo: Merge #9968 - Implement scroll, scrollLeft, scrollTop and frie…
servo: Merge #9968 - Implement scroll, scrollLeft, scrollTop and frie…