OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>recalcStyle for children when childrenAffectedByFocus</title> |
| 5 <style>:focus * { border: 1px solid lime; }</style> |
| 6 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 7 <script src="../../http/tests/inspector/timeline-test.js"></script> |
| 8 <script> |
| 9 function focusBody() { |
| 10 document.body.focus(); |
| 11 document.body.offsetWidth; |
| 12 } |
| 13 function test() { |
| 14 InspectorTest.startTimeline(function() { |
| 15 InspectorTest.evaluateInPage("focusBody()"); |
| 16 }); |
| 17 |
| 18 InspectorTest.waitForRecordType("RecalculateStyles", finish); |
| 19 function finish() { |
| 20 InspectorTest.printTimelineRecords("RecalculateStyles"); |
| 21 InspectorTest.completeTest(); |
| 22 } |
| 23 } |
| 24 </script> |
| 25 </head> |
| 26 <body onload="runTest()" tabIndex="1"> |
| 27 <div></div> |
| 28 <div></div> |
| 29 <div></div> |
| 30 <div></div> |
| 31 <div></div> |
| 32 <div></div> |
| 33 <div></div> |
| 34 <div></div> |
| 35 <div></div> |
| 36 <div></div> |
| 37 <div></div> |
| 38 <div></div> |
| 39 <div></div> |
| 40 <div></div> |
| 41 </body> |
| 42 </html> |
OLD | NEW |