mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
c5adf3e3d9
Closes #9268. r? @mbrubeck Source-Repo: https://github.com/servo/servo Source-Revision: 71d49fc73dd0f3fe42757d87cb60b98c9454d5fa
25 lines
527 B
HTML
25 lines
527 B
HTML
<!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>
|