Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <style> | |
| 3 #parent { | |
| 4 height: 100px; | |
| 5 width: 100px; | |
| 6 } | |
| 7 | |
| 8 #child { | |
| 9 height: 100%; | |
| 10 width: 100%; | |
| 11 background: red; | |
| 12 } | |
| 13 </style> | |
| 14 | |
| 15 There should be no red square below. | |
| 16 <table id="parent"> | |
| 17 <tr> | |
| 18 <td> | |
| 19 <div id="child" data-expected-height="0"></div> | |
| 20 </td> | |
| 21 </tr> | |
| 22 </table> | |
| 23 | |
| 24 <script src="../../resources/check-layout.js"></script> | |
| 25 <script> | |
| 26 checkLayout('#child'); | |
|
mstensho (USE GERRIT)
2016/01/21 20:21:33
I suggest that you check #parent instead (which wi
dgrogan
2016/01/22 00:08:09
Good call. Done.
| |
| 27 </script> | |
| OLD | NEW |