Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <style type="text/css"> |
michael@0 | 5 | #parent { |
michael@0 | 6 | width: 200px; |
michael@0 | 7 | } |
michael@0 | 8 | #block1 { |
michael@0 | 9 | height: 40px; |
michael@0 | 10 | margin-bottom: 10%; |
michael@0 | 11 | background-color: green; |
michael@0 | 12 | } |
michael@0 | 13 | #block2 { |
michael@0 | 14 | height: 40px; |
michael@0 | 15 | background-color: green; |
michael@0 | 16 | } |
michael@0 | 17 | </style> |
michael@0 | 18 | <script type="text/javascript"> |
michael@0 | 19 | function test() { |
michael@0 | 20 | document.getElementById('block2').style.marginTop = '25%'; |
michael@0 | 21 | document.documentElement.removeAttribute('class'); |
michael@0 | 22 | } |
michael@0 | 23 | document.addEventListener('MozReftestInvalidate', test, false); |
michael@0 | 24 | </script> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <div id="parent"> |
michael@0 | 28 | <div id="block1"></div> |
michael@0 | 29 | <div id="block2"></div> |
michael@0 | 30 | </div> |
michael@0 | 31 | </body> |
michael@0 | 32 | </html> |