mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #4530 : pcwalton/servo/pointer-events, r=mbrubeck
SVG-only values are not yet supported. r? @mbrubeck
This commit is contained in:
commit
a88e668091
4 changed files with 58 additions and 12 deletions
36
tests/html/pointer_events.html
Normal file
36
tests/html/pointer_events.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#overlay {
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
background: green;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
button {
|
||||
position: relative;
|
||||
top: 10px;
|
||||
width: 150px;
|
||||
height: 50px;
|
||||
border: solid black 2px;
|
||||
box-sizing: border-box;
|
||||
font: Helvetica bold;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
background: black;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button id=button>Click me!</button>
|
||||
<div id=overlay></div>
|
||||
<script>
|
||||
document.getElementById('button').addEventListener('click', function() { alert("Ouch!"); });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue