html - Chrome Table List rendering bug -


we encountering problem layout of styled unordered list inside of table cell in google chrome. problem not happening in firefox, safari or internet explorer.

the unordered list has styles applied margin-left , text-indent. spans associated each list item set "nowrap" white-space.

when list item text span wide enough reach right-hand edge of cell, can end getting displaced down , text overlap cell border. problem easiest duplicate when changing zoom settings inside chrome, can occur unpredictably when first rendering page or changing window size.

here's link displays html reproduces problem: http://www.grandavenue.com/codeexamples/chrome_table_list_bug.html

here's image of problem: chrome bug http://www.grandavenue.com/codeexamples/chrome_td_ul_bug.gif

here example html page reproduces problem:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <table border="1">     <tr>         <td>column text left</td>         <td align="left">             <ul style="list-style:disc inside none; margin-left: 2.0em; text-indent: -1.5em;">                 <li><span style="white-space: nowrap">example text fits</span></li>                 <li><span style="white-space: nowrap">example text doesn't fit</span></li>             </ul>         </td>         <td>column text right</td>     </tr> </table> </body> </html> 

i experiencing same problem. i'm using table center left aligned unordered list. there 1 column , 1 row. table element, nor td element have width defined , yet choses not make table wide enough prevent list test wrapping. can specify static width table, bad coding standards , centers text based on statically defined width, not actual text width. fortunatly, text isn't dynamic can use statically defined table width.

the problem not happen in other browser, chrome.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -