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

Implement scrollgrab #7672

Closed
paulrouget opened this issue Sep 18, 2015 · 6 comments
Closed

Implement scrollgrab #7672

paulrouget opened this issue Sep 18, 2015 · 6 comments
Assignees

Comments

@paulrouget
Copy link
Contributor

When scrolling, we want to be able to give a parent layer the priority.

Relevant bugzilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=912666

@paulrouget
Copy link
Contributor Author

In this test, we want to div to scroll before the iframe:

<style>
  div {
    height: 400px;
    width: 400px;
    overflow: scroll;
    border: 20px solid red;
  }

  h1 {
    height: 20px;
  }

  iframe {
    background: white;
    height: 400px;
    width: 400px;
    border: none;
  }

</style>

<div mozscrollgrab="true">
  <h1>foo</h1>
  <iframe src="http://paulrouget.com" mozbrowser="true"></iframe>
</div>

@paulrouget
Copy link
Contributor Author

@paulrouget
Copy link
Contributor Author

We should use a CSS property and propose it to www-style.

@paulrouget
Copy link
Contributor Author

@glennw / @pcwalton could you describe what would need to be done to implement this?

@pcwalton
Copy link
Contributor

Probably just have a flag on the scroll layer, propagate that down through all the layers of WebRender data structures, and use that to determine which layer should scroll when dispatching scroll events in WR.

@paulrouget
Copy link
Contributor Author

This was relevant for Firefox OS, and for browserhtml when we were building scrollout toolbar based on scrollgrab and snappoints. It is not the case anymore, and scrollgrab is not part of any spec.

Closing.

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

No branches or pull requests

2 participants