| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 #firstCell { | 5 #firstCell { |
| 6 border-right: 3px solid #e5ecf9; | 6 border-right: 3px solid #e5ecf9; |
| 7 width: 12em; | 7 width: 12em; |
| 8 padding: 0.5em .5em .5em 0; | 8 padding: 0.5em .5em .5em 0; |
| 9 font-size: 95%; | 9 font-size: 95%; |
| 10 } | 10 } |
| 11 #content { | 11 #content { |
| 12 position: relative; | 12 position: relative; |
| 13 } | 13 } |
| 14 #fixedTable { | 14 #fixedTable { |
| 15 table-layout: fixed; | 15 table-layout: fixed; |
| 16 } | 16 } |
| 17 #firstFixedCell { | 17 #firstFixedCell { |
| 18 width: 21.2px; | 18 width: 21.2px; |
| 19 margin: 0.3px; | 19 margin: 0.3px; |
| 20 padding: 0.1px; | 20 padding: 0.1px; |
| 21 } | 21 } |
| 22 </style> | 22 </style> |
| 23 <script src="../js/resources/js-test-pre.js"></script> | 23 <script src="../../resources/js-test.js"></script> |
| 24 </head> | 24 </head> |
| 25 | 25 |
| 26 <body> | 26 <body> |
| 27 <table width="100%" cellpadding="0" cellspacing="0" border="0"> | 27 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 28 <tbody class="collapse"> | 28 <tbody class="collapse"> |
| 29 <tr> | 29 <tr> |
| 30 <td id="firstCell"> | 30 <td id="firstCell"> |
| 31 <div id="content"> | 31 <div id="content"> |
| 32 <table cellspacing="0" cellpadding="0"> | 32 <table cellspacing="0" cellpadding="0"> |
| 33 <tbody> | 33 <tbody> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 var fixedExpectedWidth = String(fixedCell.getBoundingClientRect().wi
dth); | 71 var fixedExpectedWidth = String(fixedCell.getBoundingClientRect().wi
dth); |
| 72 fixedEl.style.width = fixedEl.getBoundingClientRect().width + "px"; | 72 fixedEl.style.width = fixedEl.getBoundingClientRect().width + "px"; |
| 73 if (fixedCell.getBoundingClientRect().width == fixedExpectedWidth) | 73 if (fixedCell.getBoundingClientRect().width == fixedExpectedWidth) |
| 74 testPassed('Cell in FixedTable has expected size'); | 74 testPassed('Cell in FixedTable has expected size'); |
| 75 else | 75 else |
| 76 shouldBe('fixedCell.getBoundingClientRect().width', fixedExpecte
dWidth); | 76 shouldBe('fixedCell.getBoundingClientRect().width', fixedExpecte
dWidth); |
| 77 | 77 |
| 78 </script> | 78 </script> |
| 79 </body> | 79 </body> |
| 80 </html> | 80 </html> |
| OLD | NEW |