Bug 9264 - Quirksmode: Floated items with trailing whitespace lose padding-right
Summary: Quirksmode: Floated items with trailing whitespace lose padding-right
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks: 9610
  Show dependency treegraph
 
Reported: 2006-06-02 14:54 PDT by Adele Peterson
Modified: 2022-07-22 21:42 PDT (History)
7 users (show)

See Also:


Attachments
test case (911 bytes, text/html)
2008-12-29 14:30 PST, Robert Blaut
no flags Details
Safari 15.6 matches Chrome but differs from Firefox (854.58 KB, image/png)
2022-07-22 09:38 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adele Peterson 2006-06-02 14:54:36 PDT
http://www.quirksmode.org/bugreports/archives/safari/index.html

"Safari will omit the right padding of an element in a floated container if that element has trailing whitespace. Workaround is to ensure any elements with padding have no whitespace before the closing tag.

(ppknote: The test page is a mess in IE Mac, but the bug is not the same)

Test page http://moshpit.org/quirksmode/safari_float.html
Workaround is included
Reported by: Alan Harder."
Comment 1 Joost de Valk (AlthA) 2006-06-24 13:59:26 PDT
Changing component, confirming the bug.
Comment 2 Robert Blaut 2008-12-29 14:30:20 PST
Created attachment 26298 [details]
test case
Comment 3 Ahmad Saleem 2022-07-22 09:38:44 PDT
Created attachment 461142 [details]
Safari 15.6 matches Chrome but differs from Firefox

I am not clear on expected result but based on rendering output Safari 15.6 on macOS 12.5 based on test case matches with Chrome Canary 105 but differs from Firefox Nightly 104 as can be seen from attached screenshot.

Appreciate if someone else can share more input on what direction should Webkit take here. Thanks!
Comment 4 Radar WebKit Bug Importer 2022-07-22 14:49:56 PDT
<rdar://problem/97457285>
Comment 5 Ryosuke Niwa 2022-07-22 21:42:23 PDT
Even though the rendering differs between WebKit/Blink and Gecko, the original bug being reported has been fixed -> Config Changed.