| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/run-after-layout-and-paint.js"></script> | |
| 5 <script src="resources/test-runner-geometry-logging.js"></script> | |
| 6 <style> | |
| 7 div { | |
| 8 background-image: paint(logging-green); | |
| 9 background-color: red; | |
| 10 } | |
| 11 </style> | |
| 12 <script> | |
| 13 function runTest() { | |
| 14 testRunnerGeometryLogging([{ | |
| 15 func: function(el) { | |
| 16 el.style.width = '100px'; | |
| 17 el.style.height = '100px'; | |
| 18 }, | |
| 19 expected: {width: 100, height: 100}, | |
| 20 }, { | |
| 21 func: function(el) { | |
| 22 el.style.width = '200px'; | |
| 23 el.style.height = '200px'; | |
| 24 }, | |
| 25 expected: {width: 200, height: 200}, | |
| 26 }, { | |
| 27 func: function(el) { | |
| 28 el.style.width = '100px'; | |
| 29 el.style.height = '100px'; | |
| 30 if (window.internals) | |
| 31 window.internals.setPageScaleFactor(2); | |
| 32 }, | |
| 33 expected: {width: 100, height: 100}, | |
| 34 }]); | |
| 35 } | |
| 36 </script> | |
| 37 </head> | |
| 38 <body onload="runTest()"> | |
| 39 <p>This tests the geometry information in the paint callback.</p> | |
| 40 <p>See the devtools console for test output.</p> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |