Bug 27907 - CSS: negative 'margin-top:' in percent ignored
Summary: CSS: negative 'margin-top:' in percent ignored
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: http://xprsyrslf.be/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 18:31 PDT by Jeroen Op 't Eynde
Modified: 2022-09-24 06:02 PDT (History)
4 users (show)

See Also:


Attachments
html file showing this bug (4.20 KB, text/html)
2009-07-31 18:58 PDT, Jeroen Op 't Eynde
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Op 't Eynde 2009-07-31 18:31:18 PDT
Overview & Results:

Bug appears on http://xprsyrslf.be/ in the menu animation.
<div id="menu"> is initialy set to 'margin:-25%;' and gets animated by javascript.
Bug also gets reproduced without javascript.

Working with pixels instead of percents, works!
See http://xprsyrslf.be/testing_webkit.php
All percents are set to something in pixels here.

Steps to Reproduce:

Use negative percents for 'margin-top:' in your css.

Build Date & Platform: 

Build 2009-08-01 on Arch Linux (kernel: 2.6.30.2)
Webkit from svn: 46646-1 (Midori, Arora)
Latest Chromium build (don't know webkit version)
Comment 1 Jeroen Op 't Eynde 2009-07-31 18:58:44 PDT
Created attachment 33920 [details]
html file showing this bug

initial: no text visible
only without 'overflow:hidden;' on html,body: text visible but no 'margin-top:'
only without ' position:relative;' on div#ctr: seems to be fixed but attribute is mandatory for other elements to be working
Comment 2 Jeroen Op 't Eynde 2009-07-31 19:14:58 PDT
Attachment became irrelevant, probably shows a bug in Opera/Presto and not Webkit.
Comment 3 Ahmad Saleem 2022-09-24 06:02:28 PDT
Report seems to indicate that it was a bug in Opera/Presto rather than Webkit. Marking as "RESOLVED INVALID". Thanks!