grouping-empty-bounds.html (912B)
1 <!DOCTYPE html> 2 <html lang="en" class='reftest-wait'> 3 <meta charset="utf-8"> 4 <title>This testcase might create a non-empty display list with an empty set of drawing commands / items in the EventRecorder</title> 5 6 <style> 7 8 body { 9 margin: 0; 10 } 11 12 .animated-opacity { 13 animation: opacity-animation 1s linear alternate infinite; 14 } 15 16 @keyframes opacity-animation { 17 from { 18 opacity: 0; 19 } 20 to { 21 opacity: 1; 22 } 23 } 24 25 </style> 26 27 <svg style="width: 100px; height: 100px;"> 28 <rect class="animated-opacity" x="0" y="0" width="100" height="100"/> 29 <rect x="0" y="0" width="10" height="10" id="toremove"/> 30 <g transform="translate(10 10)"><rect x="120" y="0" width="1" height="1"/></g> 31 </svg> 32 33 <script> 34 35 window.addEventListener("MozReftestInvalidate", () => { 36 var elem = document.getElementById("toremove"); 37 elem.parentNode.removeChild(elem); 38 document.documentElement.removeAttribute('class'); 39 }); 40 41 </script>