Bug 36163 - Garbage shown outside HTML if HTML is absolutely positioned
Summary: Garbage shown outside HTML if HTML is absolutely positioned
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
: 38966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-16 04:40 PDT by Yuzo Fujishima
Modified: 2010-06-15 16:43 PDT (History)
10 users (show)

See Also:


Attachments
Screenshot (14.43 KB, image/png)
2010-03-16 04:40 PDT, Yuzo Fujishima
no flags Details
Testcase (194 bytes, text/html)
2010-03-16 04:40 PDT, Yuzo Fujishima
no flags Details
Patch (12.23 KB, patch)
2010-06-15 14:42 PDT, Simon Fraser (smfr)
hyatt: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuzo Fujishima 2010-03-16 04:40:09 PDT
Created attachment 50782 [details]
Screenshot

When HTML element is absolutely positioned, garbage can be shown outside HTML.

What steps will reproduce the problem?
1. Open the attached abs-pos-html.html. (Any HTML document
    where HTML element is absolutely positioned should do.)
2. Resize the browser a few times.
3. Observe the area outside of HTML, i.e., outside the red box.

What is the expected output? What do you see instead?
The page should be rendered cleanly.
Instead, the area outside the red box contains garbages,
e.g., gray lines. Please see the attached screenshot.

Firefox 3.6 and Opera 10.10  draws cleanly on OS X 10.5.8 and Vista SP1.
IE8 puts HTML at (0, 0), i.e., ignores the position property.

Both WebKit 455974 and Chrome 5.0.307.11 beta fail.
Comment 1 Yuzo Fujishima 2010-03-16 04:40:50 PDT
Created attachment 50783 [details]
Testcase

Open this file and try resizing the window a few times.
Comment 2 mitz 2010-03-16 07:40:50 PDT
See also bug 8423.
Comment 3 Simon Fraser (smfr) 2010-06-15 13:38:23 PDT
*** Bug 38966 has been marked as a duplicate of this bug. ***
Comment 4 Simon Fraser (smfr) 2010-06-15 14:42:47 PDT
Created attachment 58819 [details]
Patch
Comment 5 Dave Hyatt 2010-06-15 14:45:32 PDT
Comment on attachment 58819 [details]
Patch

r=me
Comment 6 Simon Fraser (smfr) 2010-06-15 15:01:07 PDT
http://trac.webkit.org/changeset/61215
Comment 7 WebKit Review Bot 2010-06-15 15:18:23 PDT
http://trac.webkit.org/changeset/61215 might have broken GTK Linux 64-bit Debug
The following changes are on the blame list:
http://trac.webkit.org/changeset/61214
http://trac.webkit.org/changeset/61215
Comment 8 Simon Fraser (smfr) 2010-06-15 16:43:26 PDT
Followup fix in http://trac.webkit.org/changeset/61226