mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transitions/#starting">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
div { height: inherit; }
|
||||
#outer { height: 50px; }
|
||||
#outer.collapsed {
|
||||
height: 0px;
|
||||
transition: height 0.01s;
|
||||
}
|
||||
</style>
|
||||
<div id="outer">
|
||||
<div>
|
||||
<div id="inner">You should only see a flash of red.</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
promise_test(t => {
|
||||
outer.offsetTop;
|
||||
outer.className = "collapsed";
|
||||
return (new Promise((resolve) => outer.addEventListener("transitionend", resolve))).then(() => {
|
||||
assert_equals(getComputedStyle(inner).height, "0px");
|
||||
});
|
||||
}, "Transitioned height, explicitly inherited down two DOM levels, should inherit correctly");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue