Bug 15051 - body margin problems with (padding|margin)-left on inline elements
Summary: body margin problems with (padding|margin)-left on inline elements
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 523.x (Safari 3)
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Robert Hogan
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-08-22 12:37 PDT by mathuaerknedam
Modified: 2013-07-30 23:35 PDT (History)
8 users (show)

See Also:


Attachments
testcase xhtml (1.16 KB, application/xhtml+xml)
2007-08-22 12:43 PDT, mathuaerknedam
no flags Details
odd margin + text outside margin, webkit nightly (22.83 KB, image/png)
2007-08-22 12:44 PDT, mathuaerknedam
no flags Details
normal margin + text outside margin, webkit nightly (22.94 KB, image/png)
2007-08-22 12:44 PDT, mathuaerknedam
no flags Details
test in Camino nightly (15.37 KB, image/png)
2007-08-22 12:45 PDT, mathuaerknedam
no flags Details
Patch (6.51 KB, patch)
2013-07-29 15:37 PDT, Robert Hogan
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (617.64 KB, application/zip)
2013-07-30 02:11 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 (646.50 KB, application/zip)
2013-07-30 04:13 PDT, Build Bot
no flags Details
Patch (6.75 KB, patch)
2013-07-30 13:07 PDT, Robert Hogan
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 (1.17 MB, application/zip)
2013-07-30 16:01 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion (1.39 MB, application/zip)
2013-07-30 19:13 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathuaerknedam 2007-08-22 12:37:29 PDT
It is probably necessary to change the window size to see the two behaviors described.

1) Text will fall outside the right margin.

2) the size of the right margin will change.

The behaviors are triggered the application of margin-left or padding-left to the elements, though the test.xhtml only includes padding-left. Margin-right or padding-right are fine. The only styles applied are "body {border: 1px solid rgb(255, 0, 0);}" and ".message {padding-left: 2em;}". "adding "word-wrap: break-word;" to the body had no effect.

I've checked this in the lasted nightly, but it also exists in Safari 2.0.4. Firefox 2.0.0.6 does not exhibit this behavior. 

This might be related to #14826.
Comment 1 mathuaerknedam 2007-08-22 12:43:02 PDT
Created attachment 16077 [details]
testcase xhtml
Comment 2 mathuaerknedam 2007-08-22 12:44:00 PDT
Created attachment 16078 [details]
odd margin + text outside margin, webkit nightly
Comment 3 mathuaerknedam 2007-08-22 12:44:49 PDT
Created attachment 16079 [details]
normal margin + text outside margin, webkit nightly
Comment 4 mathuaerknedam 2007-08-22 12:45:44 PDT
Created attachment 16080 [details]
test in Camino nightly
Comment 5 mathuaerknedam 2011-09-16 07:19:04 PDT
Still exists, even with webkit-svn-r95145 on SL or Lion.
Comment 6 Robert Hogan 2013-07-29 15:37:47 PDT
Created attachment 207673 [details]
Patch
Comment 7 Build Bot 2013-07-30 02:11:09 PDT
Comment on attachment 207673 [details]
Patch

Attachment 207673 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1283547

New failing tests:
editing/selection/leak-document-with-selection-inside.html
css2.1/t100801-c42-ibx-ht-00-d-a.html
fast/writing-mode/border-radius-clipping-vertical-lr.html
Comment 8 Build Bot 2013-07-30 02:11:12 PDT
Created attachment 207701 [details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-04  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 9 Build Bot 2013-07-30 04:13:03 PDT
Comment on attachment 207673 [details]
Patch

Attachment 207673 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1297236

New failing tests:
css2.1/t100801-c42-ibx-ht-00-d-a.html
fast/writing-mode/border-radius-clipping-vertical-lr.html
Comment 10 Build Bot 2013-07-30 04:13:05 PDT
Created attachment 207718 [details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 11 Robert Hogan 2013-07-30 13:07:06 PDT
Created attachment 207759 [details]
Patch
Comment 12 Build Bot 2013-07-30 16:01:36 PDT
Comment on attachment 207759 [details]
Patch

Attachment 207759 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1293475

New failing tests:
fast/borders/rtl-border-03.html
fast/borders/rtl-border-01.html
fast/borders/rtl-border-04.html
fast/writing-mode/border-radius-clipping-vertical-lr.html
fast/borders/rtl-border-02.html
Comment 13 Build Bot 2013-07-30 16:01:38 PDT
Created attachment 207780 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 14 Build Bot 2013-07-30 19:13:37 PDT
Comment on attachment 207759 [details]
Patch

Attachment 207759 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1289603

New failing tests:
fast/borders/rtl-border-03.html
fast/borders/rtl-border-01.html
fast/borders/rtl-border-04.html
fast/writing-mode/border-radius-clipping-vertical-lr.html
fast/borders/rtl-border-02.html
Comment 15 Build Bot 2013-07-30 19:13:39 PDT
Created attachment 207797 [details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06  Port: mac-mountainlion  Platform: Mac OS X 10.8.4