OLD | NEW |
---|---|
1 <html> | |
2 <head> | |
3 <script> | |
4 window.onload = function() { | |
5 if (window.testRunner) | |
6 window.testRunner.dumpAsText(); | |
7 | |
8 var cell = document.getElementById("cell"); | |
9 var text = cell.firstElementChild; | |
10 var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputed Style(cell).getPropertyValue('padding-right')) + | |
11 parseInt(window.getComputed Style(cell).getPropertyValue('padding-left'))); | |
12 if (wdiff > 0) | |
13 text.innerText = "PASS"; | |
14 } | |
15 </script> | |
16 </head> | |
17 <body> | |
18 <div style="float: left;"> | 1 <div style="float: left;"> |
dgrogan
2016/04/27 03:14:04
The float makes a difference here but I am not yet
mstensho (USE GERRIT)
2016/04/27 12:19:48
An auto-width float is shrink-to-fit, which might
dgrogan
2016/04/27 20:24:05
Yeah, if that matches blink's current behavior and
| |
19 <table style="margin: 1px"> | 2 <table style="margin: 1px" data-expected-width="40"> |
20 <tr> | 3 <tr> |
21 <td></td> | 4 <td></td> |
22 <td id="cell" style="background-color: green; width: 100%; height: 30px"> | 5 <td id="cell" style="background-color: green; width: 100%; height: 30px" d ata-expected-width="32"> |
23 <span>FAIL</span> | 6 <div style="display:inline-block; width:30px;"></div> |
24 </td> | 7 </td> |
25 </tr> | 8 </tr> |
26 </table> | 9 </table> |
27 </div> | 10 </div> |
28 <div style="clear: left;">The green box should be the full width of the page.</d iv> | 11 <div style="clear: left;">Edge 25.10586.0.0 shows the green box as the full widt h of the page. So did Blink before Chrome 52. FireFox 48 agrees with Chrome 52.< /div> |
dgrogan
2016/04/27 03:14:04
I am a little worried that this is a bellwether fo
mstensho (USE GERRIT)
2016/04/27 12:19:48
Diverging from Edge for table layout certainly doe
dgrogan
2016/04/27 20:24:05
Yeah, this one we also change behavior from Edge t
| |
29 </body> | 12 <script src="../../resources/check-layout.js"></script> |
30 </html> | 13 <script> |
14 checkLayout('table'); | |
15 </script> | |
OLD | NEW |