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 of a transformed element prevents clicks #9268

Closed
paulrouget opened this issue Jan 12, 2016 · 1 comment
Closed

shadow of a transformed element prevents clicks #9268

paulrouget opened this issue Jan 12, 2016 · 1 comment

Comments

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Jan 12, 2016

Affects: browserhtml (can't click on hamburger icon).

Both with and without webrender.

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

screen shot 2016-01-12 at 09 05 30

<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);
    transform: translateX(1px);
  }
</style>
<div class="green" onclick="console.log(42)"></div>
<div class="red"></div>
@jdm
Copy link
Member

@jdm jdm commented Jan 12, 2016

pcwalton added a commit to pcwalton/servo that referenced this issue Jan 26, 2016
bors-servo added a commit that referenced this issue Jan 26, 2016
Make hit tests against box shadows always fail.

Closes #9268.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9428)
<!-- 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
2 participants
You can’t perform that action at this time.