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

Servo doesn't hit test correctly on anchor with background div #22829

Open
jdm opened this issue Feb 5, 2019 · 1 comment
Open

Servo doesn't hit test correctly on anchor with background div #22829

jdm opened this issue Feb 5, 2019 · 1 comment

Comments

@jdm
Copy link
Member

jdm commented Feb 5, 2019

<style>
  .tiles {
      background-color: red;
  }
  .tile-image {
      background-color: green;
      height: 100px;
      margin: 0px 0px 10px;
      width: 160px;
      border: 10px solid black;
  }
</style>
<body>
  <div class="tiles">
    <a target="_blank" rel="noopener noreferrer" href="https://duckduckgo.com/html/">
      <div class="tile-image"></div>
    </a>
  </div>
</body>

In every other browser, the mouse cursor remains a pointer when over the red background and the anchor is invoked when clicking. I can't figure out why this is the case, since the anchor element is clearly only the green div, but Servo behaves differently than every other browser.

@jdm
Copy link
Member Author

jdm commented Feb 5, 2019

Oh, it must be because the div is a block element. That's very confusing!

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

No branches or pull requests

1 participant