mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #9428 - pcwalton:incorporeal-shadows, r=mbrubeck
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 -->
This commit is contained in:
commit
71d49fc73d
2 changed files with 47 additions and 16 deletions
24
tests/html/shadow-hit-test.html
Normal file
24
tests/html/shadow-hit-test.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Clicking under the shadow should still activate the green div. -->
|
||||
<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('You clicked me!')"></div>
|
||||
<div class="red"></div>
|
Loading…
Add table
Add a link
Reference in a new issue