Skip to content

Implement Element.scrollTop and Element.scrollLeft #9650

Closed

Activity

  1. added
    A-content/dom
    on Feb 15, 2016
  2. izgzhen commented on Mar 3, 2016

    @izgzhen
    Contributor

    I am interested to take this issue. But I am a new comer and wonder if it would be relatively easy to work out.

  3. peterjoel commented on Mar 4, 2016

    @peterjoel
    ContributorAuthor

    @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.

  4. izgzhen commented on Mar 4, 2016

    @izgzhen
    Contributor

    @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.

  5. SimonSapin commented on Mar 4, 2016

    @SimonSapin
    Member

    Note that these API can make elements with overflow: hidden scroll. Test case:

    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3962

    <body onload='for (i=0; i<4; i++) document.getElementsByTagName("p")[i].scrollLeft = (i+1) * 20'>
    <p style="overflow: hidden">Pseudopseudohypoparathyroidism
    <p style="overflow: auto">Pseudopseudohypoparathyroidism
    <p style="overflow: scroll">Pseudopseudohypoparathyroidism
    <p style="overflow: visible">Pseudopseudohypoparathyroidism
    <style>
    p { border: solid; width: 100px
  6. peterjoel commented on Mar 4, 2016

    @peterjoel
    ContributorAuthor

    @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?)

  7. izgzhen commented on Mar 4, 2016

    @izgzhen
    Contributor

    @peterjoel I mean this peterjoel@17b4253 change. It is not in master branch.

  8. peterjoel commented on Mar 4, 2016

    @peterjoel
    ContributorAuthor

    @izgzhen Ah, yes I forgot I did that. Yes, either copy it or pull from my fork into yours. Copying sounds easiest.

  9. added a commit that references this issue on Apr 20, 2016
  10. timvandermeij commented on Apr 20, 2016

    @timvandermeij
    Contributor

    Fixed by #9968?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions