gecko-dev/layout/reftests/svg/smil/anim-change-display-none-for-ancestor-elem.html
Mantaroh Yoshinaga cbf08f5f05 Bug 1322970 - Use primary frame for checking throttle instead of using style context. r=dholbert,hiro
This changeset will skip finding the first SMIL animation function to affect the sandwich from multiple functions if element hasn't primary frame when composing attributes.
This mean that target element's animation don't need to animate in the following cases.
- ancestor elements has display:none attribute.
- target element have display:none attribute.
- ancestor element's tag produces a non-rendering subtree, by definition (like <desc>).

MozReview-Commit-ID: 253qTpBLc8L

--HG--
extra : rebase_source : c6f0eff440fa5448fc28e5283be68b6e33335b9e
2017-02-02 15:23:22 +09:00

26 lines
734 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Test animation in a subtree that dynamically becames 'display:none'</title>
</head>
<body style="background-color: lime;">
<div id="target">
<svg>
<rect width="100%" height="100%" fill="blue">
<animate attributeName="fill" from="brown" to="red" dur="100s"/>
</rect>
</svg>
</div>
<script>
document.addEventListener('MozReftestInvalidate', function() {
var target = document.getElementById("target");
target.style.display = "none";
requestAnimationFrame(function(time) {
document.documentElement.removeAttribute("class");
});
});
</script>
</body>
</html>