Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting bug that I was just running up against which might be related. I was trying to draw some text in a small box, but, while it worked in all other browsers, Chrome 22 was adding what appeared to be extra line height for no reason. The code looked roughly like:

    <div><span>TEST</span></div>
    
    div > span {
        line-height: 0;
        margin: 0;
        padding: 0;
        font-size: 12px;
        display: block;
        height: 12px;
    }

Yet the text was being drawn dramatically outside of the box!

Turns out that this only happens in Chrome 22 when it's inside a list with list-style-type: disc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: