Bug 167510 - CSS clip:rect "auto" keyword not working when set with JavaScript
Summary: CSS clip:rect "auto" keyword not working when set with JavaScript
Status: RESOLVED DUPLICATE of bug 166830
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-27 05:44 UTC by Ed Phillips
Modified: 2008-07-27 06:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Phillips 2008-07-27 05:44:45 UTC
Version:            (using KDE 4.0.5)
Installed from:    Unlisted Binary Package
OS:                Other

The "auto" keyword does not work with the CSS clip attribute when set with JavaScript. Here is a test case:


http://visualmenu.com/internal/bug-reports/kde/clip/test.htm


I ran the test case on an OpenSUSE Live CD running KDE/Konqueror 4.04.

What you see is a full rectangle at the top of the page. The expected behavior is for the top half of the rectangle to be clipped.
Comment 1 Maksim Orlovich 2008-07-27 06:12:32 UTC
Indeed --- the CSS parser doesn't like it for some reason..
konqueror(14911)/khtml (css) DOM::CSSStyleDeclarationImpl::setProperty: CSSStyleDeclarationImpl::setProperty invalid property: [ "clip" ] value: [ "rect(50px,auto,auto,auto)" ]
Comment 2 Maksim Orlovich 2008-07-27 06:20:44 UTC

*** This bug has been marked as a duplicate of 166830 ***