mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests Check child_change instead of change for explicit inherit. Additionally, re-ordered checks in ComputedStyle::ComputeDifference() and removed the full ComputedStyle comparison which did extra comparisons of inherited data. Bug: 958393 Change-Id: Ib798a688cc27719417326d6b3a6e75ce3595fa50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594575 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#657180} -- wpt-commits: 9096bad60d267d4d8d4651e0d798bd3d71fa2cb8 wpt-pr: 16662
26 lines
807 B
HTML
26 lines
807 B
HTML
<!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>
|