Bug 41625 - REGRESSION (Safari 4 - 5): Buttons are badly rendered when added dynamically from JavaScript
Summary: REGRESSION (Safari 4 - 5): Buttons are badly rendered when added dynamically ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Major
Assignee: Nobody
URL: http://incubator.myxwiki.org/xwiki/bi...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 10:17 PDT by Marius Florea
Modified: 2010-07-06 13:22 PDT (History)
2 users (show)

See Also:


Attachments
HTML code snippet to reproduce the bug (392 bytes, text/html)
2010-07-05 10:17 PDT, Marius Florea
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Florea 2010-07-05 10:17:08 PDT
Created attachment 60552 [details]
HTML code snippet to reproduce the bug

Buttons added from JavaScript to an HTML element (the container) that doesn't have a fixed size are badly displayed: some parts of the button are not displayed. The amount of hidden content seems to be proportional with the padding of the container. Scrolling or resizing the browser window forces the page to be redrawn and the button is then displayed correctly.

I'm able to reproduce the problem both on WinXP+Safari5.0(7533.16) and MacOS+Safari5.
Comment 1 Marius Florea 2010-07-05 10:28:04 PDT
The added button is entirely hidden if the container has a fixed height.
Comment 2 Alexey Proskuryakov 2010-07-06 13:22:41 PDT
Confirmed with shipping Safari 5 and with ToT. Works fine in Safari 4.