Bug 33858

Summary: Right border not displayed on floated element
Product: WebKit Reporter: Paul Tarjan <webkit>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, lixoaqui, robert
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
URL: http://paulisageek.com/tmp/chrome_bug.html
Attachments:
Description Flags
Safari 15.5 matches other browsers none

Description Paul Tarjan 2010-01-19 12:56:37 PST
Test case:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html><head><style type="text/css">
div {
  float: left;
  clear: left;
  margin: 3px;
}
span {
  border: 1px solid;
}
</style></head><body>

<!-- does not show right border -->
<div><span>With trailing space, no width </span></div> 

<!-- does show right border -->
<div><span>No trailing space, no width</span></div>
<div style="width: 40ex;"><span>With trailing space, has width </span></div>
<div style="width: 40ex;"><span>No trailing space, has width</span></div>

</body></html>

I expect there to be a full border on all elements.
Comment 1 lixoaqui 2011-05-17 18:16:31 PDT
I confirm this is still happening, any workaround?
Comment 2 Robert Hogan 2013-11-18 22:16:50 PST
This looks OK to me on trunk. Can you confirm it's still a bug?
Comment 3 Ahmad Saleem 2022-06-02 05:08:11 PDT
Created attachment 459956 [details]
Safari 15.5 matches other browsers

I am not able to reproduce this bug using attached test case in Safari 15.5 on macOS 12.4. All other browsers also matches in the output as visible in the screenshot.

Testcase - https://jsfiddle.net/m8zkeqsp/show

I think this can be closed as "RESOLVED CONFIGURATION CHANGED". Thanks!
Comment 4 Alexey Proskuryakov 2022-06-02 08:51:50 PDT
Thank you for checking!