table-row-opacity-dynamic-2.html (844B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <title>Test for bug 1224251</title> 4 <style> 5 6 body { background: white; color: black } 7 8 table { 9 padding: 0; 10 border-spacing: 0; 11 border: none; 12 width: 15em; 13 } 14 15 tr { 16 background: rgba(0, 0, 255, 0.8); 17 } 18 19 td { 20 border: none; 21 } 22 23 </style> 24 25 26 <table> 27 <tr style="opacity: 0.8"><td>cell</td></tr> 28 </table> 29 30 <script> 31 32 var tr = document.getElementsByTagName("tr")[0]; 33 34 // Not sure why, but to make this test fail without the patch, this has to 35 // be a setTimeout(0) rather than waiting for MozReftestInvalidate. 36 setTimeout(step1, 0); 37 38 function step1() { 39 tr.style.opacity = "0.8"; 40 setTimeout(step2, 0); 41 } 42 43 function step2() { 44 tr.style.opacity = "0.8"; 45 setTimeout(step3, 0); 46 } 47 48 function step3() { 49 tr.style.opacity = ""; 50 51 document.documentElement.classList.remove("reftest-wait"); 52 } 53 54 </script>