Bug 167510

Summary: CSS clip:rect "auto" keyword not working when set with JavaScript
Product: [Applications] konqueror Reporter: Ed Phillips <mymymy>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:

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 ***