devtools shows wrong height for table cell that holds a %height inline-block |
|||||
Issue descriptionChrome Version : 57.0.2987.110 -> 59.0.3051.3 (current canary) OS Version: at least Linux and Windows URLs (if applicable) : https://jsfiddle.net/dgrogan/1vq4zy9a/ Other browsers tested: Edge 13: OK Firefox 55.0a1: OK What steps will reproduce the problem? 1. Open https://jsfiddle.net/dgrogan/1vq4zy9a/ 2. Inspect the table cell that holds the green div What is the expected result? Height is 104, accounting for the height between the baseline and the bottom edge of the td's content box. (FF shows 104, Edge shows 103.8) What happens instead of that? Height is 100 https://jsfiddle.net/dgrogan/1vq4zy9a/ There is also probably a layout issue, as it appears that the div overflows the top of the cell. But Edge does the same thing. Changing the div's height to 100px instead of 100% makes Chrome correctly show the td height as 104: https://jsfiddle.net/dgrogan/1vq4zy9a/3/
,
Apr 6 2017
This is not a devtools issue, it's a layout problem. I believe it's chrome trying to recover from invalid states. the td is a "display: table-cell;", the div is a "display: inline-block;". If the td changes to "display: block" it works as expected or if the div is changed to some other displays it works. If you toggle the "display: inline-block" on the div, it shows more issues (possibly the same issue, but easier to recreate?) I am going to send it off to the layout team to further investigate.
,
Apr 6 2017
,
Apr 11 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 11 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by einbinder@chromium.org
, Mar 27 2017