| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 #container { | 6 #container { |
| 7 width: 200px; | 7 width: 200px; |
| 8 height: 200px; | 8 height: 200px; |
| 9 overflow: scroll; | 9 overflow: scroll; |
| 10 margin: 20px; | 10 margin: 20px; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 function doTest() | 46 function doTest() |
| 47 { | 47 { |
| 48 if (!window.internals) | 48 if (!window.internals) |
| 49 return; | 49 return; |
| 50 | 50 |
| 51 var predecessor = document.getElementById('predecessor'); | 51 var predecessor = document.getElementById('predecessor'); |
| 52 var container = document.getElementById('container'); | 52 var container = document.getElementById('container'); |
| 53 predecessor.style.display = 'none'; | 53 predecessor.style.display = 'none'; |
| 54 window.internals.forceCompositingUpdate(document); | |
| 55 | 54 |
| 56 var pass = true; | 55 var pass = true; |
| 57 if (!didOptIn(container)) { | 56 if (!didOptIn(container)) { |
| 58 pass = false; | 57 pass = false; |
| 59 write('FAIL - did not opt in when our children are contiguous.')
; | 58 write('FAIL - did not opt in when our children are contiguous.')
; |
| 60 } | 59 } |
| 61 | 60 |
| 62 predecessor.style.display = ''; | 61 predecessor.style.display = ''; |
| 63 window.internals.forceCompositingUpdate(document); | |
| 64 | 62 |
| 65 if (didOptIn(container)) { | 63 if (didOptIn(container)) { |
| 66 pass = false; | 64 pass = false; |
| 67 write('FAIL - opted in when our children are not contiguous.'); | 65 write('FAIL - opted in when our children are not contiguous.'); |
| 68 } | 66 } |
| 69 | 67 |
| 70 if (pass) | 68 if (pass) |
| 71 write('PASS'); | 69 write('PASS'); |
| 72 } | 70 } |
| 73 | 71 |
| 74 window.addEventListener('load', doTest, false); | 72 window.addEventListener('load', doTest, false); |
| 75 </script> | 73 </script> |
| 76 </head> | 74 </head> |
| 77 | 75 |
| 78 <body> | 76 <body> |
| 79 <div> | 77 <div> |
| 80 <div class='positioned' id='predecessor'></div> | 78 <div class='positioned' id='predecessor'></div> |
| 81 <div id='container'> | 79 <div id='container'> |
| 82 <div class='scrolled'></div> | 80 <div class='scrolled'></div> |
| 83 </div> | 81 </div> |
| 84 </div> | 82 </div> |
| 85 <pre id='console'></pre> | 83 <pre id='console'></pre> |
| 86 </body> | 84 </body> |
| 87 </html> | 85 </html> |
| OLD | NEW |