Skip to content

touch-action on non-scrollable elements is not intersected properly #47737

Open

Description

@yezhizhen

Describe the bug:
About intersection:

When a gesture is started, the browser intersects the touch-action values of the touched element and its ancestors, up to the one that implements the gesture (in other words, the first containing scrolling element).

We should not scroll the following.

To Reproduce:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>touch-action: none on nested child</title>
<style>
  html, body { margin: 0; }

  .scroller {
    overflow: auto;
    height: 80vh;
    touch-action: auto;
    border: 2px solid #888;
  }
  .content { height: 200vh; }
  .trap {
    touch-action: none;
    width: 200px;
    height: 200px;
    background: red;
    color: white;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
  }
</style>
</head>
<body>
  <p>Starting a touch-drag on the red box should NOT scroll the page.</p>
  <div class="scroller" id="scroller">
    <div class="content">
      <div class="trap">touch-action: none<br></div>
    </div>
  </div>
</body>
</html>

Platform:
Touch enabled platform.

Activity

  1. self-assigned this
    on Sep 2, 2026
  2. added
    A-content/css
    C-has-manual-testcase
    on Sep 2, 2026
  3. yezhizhen commented on Sep 5, 2026

    @yezhizhen
    MemberAuthor

    While doing this, I notice 4 tests go from FAIL to ERROR (Move Target OOB from WebDriver).

    I think this is same reason as web-platform-tests/wpt#48968

    Such as

    }).then(function() {
    return clickInTarget("touch", btnComplete);
    .

    In 800x600, "Complete test" button is just not in-view. I confirmed this with Edge/Firefox.

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

Metadata

Metadata

Assignees

Labels

A-content/cssA-inputC-has-manual-testcase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions