blob: 1d058de8ea4624e6af67e3b55c283cfa2475519a [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
@keyframes anim {
from { fill: orange; }
to { fill: brown; }
rect { animation: anim 5s; }
defs { display: none; }
<rect x="0" y="0" width="100" height="100" id="target" fill="green" />
<use x="0" xlink:href="#target" />
test(() => {
// Triggers a style recalc with the <defs> element as the recalc root.
// Marking the rect instance under the <use> element style dirty during
// style recalc with <defs> as the root will leave the <use> rect dirty.
document.querySelector("defs").style.display = "block";
}, "This should not trigger any crashes or DCHECK failures.");