mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision b'14684f837eba364df3de2b6683d4eb5385333158'
This commit is contained in:
parent
f09561254d
commit
0431e20517
369 changed files with 4941 additions and 1492 deletions
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel=help href="mailto:jarhar@chromium.org">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id=target>target</div>
|
||||
<style>
|
||||
#target {
|
||||
display: none;
|
||||
transition: 1s;
|
||||
color: red;
|
||||
}
|
||||
#target.animated {
|
||||
transition: 1s;
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
test(() => {
|
||||
target.addEventListener('transitionstart', () => {
|
||||
assert_unreached('transitionstart should not be fired.');
|
||||
});
|
||||
target.classList.add('animated');
|
||||
assert_equals(target.getAnimations().length, 0,
|
||||
'There should not be any animations running.');
|
||||
}, 'Transitions and animations should not occur on display:none elements.');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue