Bug 33858 - Right border not displayed on floated element
Summary: Right border not displayed on floated element
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://paulisageek.com/tmp/chrome_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 12:56 PST by Paul Tarjan
Modified: 2022-06-02 08:51 PDT (History)
4 users (show)

See Also:


Attachments
Safari 15.5 matches other browsers (322.97 KB, image/png)
2022-06-02 05:08 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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!