| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 function doTest() | 44 function doTest() |
| 45 { | 45 { |
| 46 if (!window.internals) | 46 if (!window.internals) |
| 47 return; | 47 return; |
| 48 | 48 |
| 49 var predecessor = document.getElementById('predecessor'); | 49 var predecessor = document.getElementById('predecessor'); |
| 50 var container = document.getElementById('container'); | 50 var container = document.getElementById('container'); |
| 51 | 51 |
| 52 predecessor.style.zIndex = '5'; | 52 predecessor.style.zIndex = '5'; |
| 53 window.internals.forceCompositingUpdate(document); |
| 53 | 54 |
| 54 var pass = true; | 55 var pass = true; |
| 55 if (!didOptIn(container)) { | 56 if (!didOptIn(container)) { |
| 56 pass = false; | 57 pass = false; |
| 57 write('FAIL - did not opt in when our children are contiguous.')
; | 58 write('FAIL - did not opt in when our children are contiguous.')
; |
| 58 } | 59 } |
| 59 | 60 |
| 60 predecessor.style.zIndex = ''; | 61 predecessor.style.zIndex = ''; |
| 62 window.internals.forceCompositingUpdate(document); |
| 61 | 63 |
| 62 if (didOptIn(container)) { | 64 if (didOptIn(container)) { |
| 63 pass = false; | 65 pass = false; |
| 64 write('FAIL - opted in when our children are not contiguous.'); | 66 write('FAIL - opted in when our children are not contiguous.'); |
| 65 } | 67 } |
| 66 | 68 |
| 67 if (pass) | 69 if (pass) |
| 68 write('PASS'); | 70 write('PASS'); |
| 69 } | 71 } |
| 70 | 72 |
| 71 window.addEventListener('load', doTest, false); | 73 window.addEventListener('load', doTest, false); |
| 72 </script> | 74 </script> |
| 73 </head> | 75 </head> |
| 74 | 76 |
| 75 <body> | 77 <body> |
| 76 <div> | 78 <div> |
| 77 <div class='positioned' id='predecessor'></div> | 79 <div class='positioned' id='predecessor'></div> |
| 78 <div id='container'> | 80 <div id='container'> |
| 79 <div class='scrolled'></div> | 81 <div class='scrolled'></div> |
| 80 </div> | 82 </div> |
| 81 </div> | 83 </div> |
| 82 <pre id='console'></pre> | 84 <pre id='console'></pre> |
| 83 </body> | 85 </body> |
| 84 </html> | 86 </html> |
| OLD | NEW |