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

shadow prevents clicks #9865

Closed
paulrouget opened this issue Mar 3, 2016 · 1 comment
Closed

shadow prevents clicks #9865

paulrouget opened this issue Mar 3, 2016 · 1 comment

Comments

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Mar 3, 2016

Clicking on the green div under the shadow doesn't print 42.

<style>
  .green {
    background: green;
    position: absolute;
    top: 45px;
    left: 170px;
    width: 100px;
    height: 50px;
  }
  .red {
    background: red;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    box-shadow: 100px 0 0 rgba(0,0,0,0.1);
  }
</style>
<div class="green" onclick="console.log(42)"></div>
<div class="red"></div>
@paulrouget
Copy link
Contributor Author

@paulrouget paulrouget commented Mar 3, 2016

This has been fixed before: #9428

metajack added a commit to metajack/servo that referenced this issue Mar 4, 2016
This was originally servo#9428 but got accidentally reverted during rebase in

Fixes servo#9865.
bors-servo added a commit that referenced this issue Mar 4, 2016
Unrevert the fix for hit testing through shadows

This was originally #9428 but got accidentally reverted during rebase in

Fixes #9865.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9866)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.