Bug 36772

Summary: CSS clip:auto; clips to box borders instead of removing clipping
Product: WebKit Reporter: Brian Huisman <bhuisman>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alexanderdunphy, hyatt, kling, koivisto, macpherson, menard, rwlbuis, udaykiran4u, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://www.howtocreate.co.uk/working/clipauto.html
Attachments:
Description Flags
Test case showing hidden box-shadow and generated content when using clip:auto;
none
Proposed Patch none

Description Brian Huisman 2010-03-29 12:50:21 PDT
Created attachment 51952 [details]
Test case showing hidden box-shadow and generated content when using clip:auto;

According to the CSS specifications, a clip value of "auto" should remove all clipping from an absolutely positioned element.  http://www.w3.org/TR/CSS21/visufx.html#clipping  "auto: The element does not clip."

However, in WebKit browsers, a clip value of "auto" is treated the same as clip:rect(auto, auto, auto, auto) resulting in clipping that clips to all four edges of the box.  This has the effect of hiding box elements that extend beyond the box border such as box-shadow and generated content.
Comment 1 Alex Dunphy 2012-03-14 05:07:14 PDT
Encountered this bug today, confirmed that it is still present in Webkit nightly build as of 2012-03-14.
Comment 2 Uday Kiran 2012-05-03 02:02:48 PDT
Created attachment 139973 [details]
Proposed Patch
Comment 3 Andreas Kling 2012-05-03 02:16:57 PDT
Comment on attachment 139973 [details]
Proposed Patch

Looks great. r=me
Comment 4 WebKit Review Bot 2012-05-03 03:02:10 PDT
Comment on attachment 139973 [details]
Proposed Patch

Clearing flags on attachment: 139973

Committed r115953: <http://trac.webkit.org/changeset/115953>
Comment 5 WebKit Review Bot 2012-05-03 03:02:16 PDT
All reviewed patches have been landed.  Closing bug.