Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script type="text/javascript"> | |
| 5 function runTest() { | |
| 6 outer = document.getElementById('outer'); | |
|
Julien - ping for review
2014/05/07 00:35:29
"var outer" to avoid attaching outer to the global
| |
| 7 outer.style.width = '100px'; | |
| 8 window.checkLayout("#outer", document.getElementById("test-outpu t")); | |
| 9 }; | |
| 10 </script> | |
| 11 <script src="../../resources/check-layout.js"></script> | |
| 12 <style> | |
| 13 #outer { | |
| 14 display: table; | |
| 15 table-layout: fixed; | |
| 16 } | |
| 17 #inner { | |
| 18 display: table-cell; | |
| 19 height: 50px; | |
| 20 background-color: green; | |
| 21 min-width: 200px; | |
| 22 } | |
| 23 </style> | |
| 24 </head> | |
| 25 <body onload="runTest()"> | |
| 26 Tests that the width of table changes on changing the table width to new width.New width should be 100. | |
|
Julien - ping for review
2014/05/07 00:35:29
Awesome that you considered mentioning the new wid
| |
| 27 <div id="outer" data-expected-width="100"> | |
| 28 <div id="inner"></div> | |
| 29 </div> | |
| 30 <div id="test-output"></div> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |