[Webkit-unassigned] [Bug 139199] New: <br/> adds the descent of the current font to the line height even if there is no text in the line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 2 14:32:08 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=139199

            Bug ID: 139199
           Summary: <br/> adds the descent of the current font to the line
                    height even if there is no text in the line
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

Created attachment 242447
  --> https://bugs.webkit.org/attachment.cgi?id=242447&action=review
Safari-Rendering

Open the following html in WebKit:

<html>
<body>
  <img height="10" width="100" style="border: 1px solid blue">
  <br/>
  <img height="100" width="10" style="border: 1px solid purple">
  <br/>
  <img height="10" width="100%" style="border: 1px solid blue">
  <br/>
  <img height="100" width="10" style="border: 1px solid purple">
</body>
</html>

Result: The first two image rectangles do not touch with other image rectangles. But the last two rectangles touch each other.
Expected: In FireFox and IE, the four image rectangles touch each other. It looks like in WebKit, when <br/> forces a new line creation (the first two images), the descent of the font is added to the line runs height. But when the a new line is created because of wrapping (the third image), nothing is added to the runs height.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141202/7206aae5/attachment-0002.html>


More information about the webkit-unassigned mailing list