Summary: | REGRESSION (r100949): List items are rendered with incorrect height at bu.edu | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | alheureux | ||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | mitz, rniwa, robert | ||||
Priority: | P1 | Keywords: | InRadar, Regression | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://www.bu.edu/shs/wellness | ||||||
Attachments: |
|
Description
alheureux
2012-02-10 13:16:05 PST
*** This bug has been marked as a duplicate of bug 76465 *** I'm curious what from that bug is the duplicate here. The markup of the example given here does not include any empty elements. Is it more that the solution for the other bug solves this problem? (In reply to comment #3) > I'm curious what from that bug is the duplicate here. The markup of the example given here does not include any empty elements. Is it more that the solution for the other bug solves this problem? Here is a reduction: <!DOCTYPE html> <style> #list {border-bottom:1px dotted; border-top:1px dotted;} #list li {display:inline; line-height:1.3em;} #list li span {display:block; border-bottom:1px dotted; border-top:1px dotted;} </style> <body> <ul id="list"> <li> <span>Item One</span> </li> <li> <span>Item Two</span> </li> </ul> </body> </html> There's an extra empty linebox getting created for each list-item in WebKit. This should only get created if you put some text after the </span> tag - bug 76465 fixes this by avoiding the creation that line box unless there *is* some text. (In reply to comment #4) > (In reply to comment #3) > > I'm curious what from that bug is the duplicate here. The markup of the example given here does not include any empty elements. Is it more that the solution for the other bug solves this problem? > > Here is a reduction: > > <!DOCTYPE html> > <style> > #list {border-bottom:1px dotted; border-top:1px dotted;} > #list li {display:inline; line-height:1.3em;} > #list li span {display:block; border-bottom:1px dotted; border-top:1px dotted;} > </style> > <body> > <ul id="list"> > <li> > <span>Item One</span> > </li> > <li> > <span>Item Two</span> > </li> > </ul> > </body> > </html> > > There's an extra empty linebox getting created for each list-item in WebKit. This should only get created if you put some text after the </span> tag - bug 76465 fixes this by avoiding the creation that line box unless there *is* some text. Thanks very much Robert, I get it now. Here's to hoping it finds its way to Chrome soon and that Safari misses it =\ |