mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Update web-platform-tests to revision c0a3e93389bdcc9e8ad12d3988e4568d48b78c9d
This commit is contained in:
parent
84786add22
commit
686c6b89ed
826 changed files with 8235 additions and 522 deletions
36
tests/wpt/web-platform-tests/inert/frame/button.html
Normal file
36
tests/wpt/web-platform-tests/inert/frame/button.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button#background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
line-height: 53px;
|
||||
}
|
||||
|
||||
button.clicked {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
button.clicked::after {
|
||||
content: " (clicked)";
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button id="background">background</button>
|
||||
<script>
|
||||
document.body.addEventListener('click', (e) => {
|
||||
e.target.classList.add('clicked');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue