<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>98538</bug_id>
          
          <creation_ts>2012-10-05 11:20:02 -0700</creation_ts>
          <short_desc>overflow: hidden + border radius does not work when transform is added to child</short_desc>
          <delta_ts>2023-05-16 15:31:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>68196</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Drackett">drackett</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bmcouto</cc>
    
    <cc>dtrebbien</cc>
    
    <cc>mail</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>skowronkow</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>735799</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Drackett">drackett</who>
    <bug_when>2012-10-05 11:20:02 -0700</bug_when>
    <thetext>I have the following code to provide a mask to a child element on my page:

http://jsfiddle.net/hWCZ7/

However, when I apply a transform to the child element, the overflow is no longer hidden in a way that respects the border radius:

http://jsfiddle.net/hWCZ7/1/

Its a little worse with a 3D transform as well:

http://jsfiddle.net/hWCZ7/2/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>797030</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2012-12-24 11:35:14 -0800</bug_when>
    <thetext>Related:

http://stackoverflow.com/questions/12521870/webkit-issue-with-the-parents-curved-border-not-clipping-children-undergoing-an

The provided work-around, demonstrated at http://jsfiddle.net/pv2dc/2/ , still works in Safari 6.0.2, but I recently noticed that it no longer works in the latest version of Chrome for Mac, 23.0.1271.101.

It looks like this issue, in the case of a 2D transform, is a recent regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798123</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2012-12-29 05:33:16 -0800</bug_when>
    <thetext>Testing against http://jsfiddle.net/hWCZ7/1/ this issue in the case of a 2D transform was a temporary regression occurring somewhere in (r136242, r136298).  Because the latest version of Chrome, 23.0.1271.101, was built with WebKit @136278, this issue in the case of a 2D transform should correct itself with the next version of Chrome.

I have tested the latest nightly, r138561, as well as nightlies at various other revisions (r138461, r137986, r137862, r136298, r136242, r135851, r135516, r134433, and r130495) and I have not seen the issue demonstrated by http://jsfiddle.net/hWCZ7/1/

WebKit devs:  I would like to add a test for http://jsfiddle.net/hWCZ7/1/.  Can anyone offer some tips as to the best way to do this?  E.g. Would using an &quot;expected image&quot; work well or is this a bad idea because of slight antialiasing differences?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1028280</commentid>
    <comment_count>3</comment_count>
    <who name="Klaus Reinfeld">mail</who>
    <bug_when>2014-08-11 12:50:52 -0700</bug_when>
    <thetext>Still buggy in all today available Safari versions (even in iOS 8 and OSX 10.10)!

Chrome, Firefox and IE are fine today, only Safari is left.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1042362</commentid>
    <comment_count>4</comment_count>
    <who name="Bruno Couto">bmcouto</who>
    <bug_when>2014-10-17 04:59:00 -0700</bug_when>
    <thetext>Yes, this issue remains on IOS8 and OS X Yosemite. Please fix this ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063786</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-23 15:19:50 -0800</bug_when>
    <thetext>This is the same as bug 140535.

You can work around it in recent builds by making the element with overflow:hidden into a stacking context (e.g. position:relative, z-index:0).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935290</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-20 15:26:24 -0800</bug_when>
    <thetext>https://jsfiddle.net/hWCZ7/2/ - now works same in STP163 as Chrome Canary 112. At least, it looks to me.

As for http://jsfiddle.net/hWCZ7/1/, it also looks similar in STP163 and Chrome Canary 112.

Even testcase from StackOverflow now works fine - https://jsfiddle.net/pv2dc/

@Simon - Appreciate if you can guide, if I am testing this wrong and unable to see difference or is it fixed and we can close this now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935305</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-02-20 15:41:49 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 68196 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955469</commentid>
    <comment_count>8</comment_count>
    <who name="coderitual">skowronkow</who>
    <bug_when>2023-05-15 12:08:08 -0700</bug_when>
    <thetext>Hey, I think the bug is still there. I am able to reproduce it by changing initial fiddle. Here is the bug still present: 

https://jsfiddle.net/vsp1fca2/4/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955504</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-05-15 14:56:26 -0700</bug_when>
    <thetext>I see rounded corners in that example. Are you testing in a recent Safari Tech Preview?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955598</commentid>
    <comment_count>10</comment_count>
    <who name="coderitual">skowronkow</who>
    <bug_when>2023-05-15 23:05:12 -0700</bug_when>
    <thetext>hey Simon, yes I am testing using safari tech preview (169). I see rounded corners but there are artefacts around them. Sorry, I thought that it&apos;s related to this, but maybe it is separate issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955691</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-05-16 09:48:32 -0700</bug_when>
    <thetext>(In reply to coderitual from comment #10)
&gt; hey Simon, yes I am testing using safari tech preview (169). I see rounded
&gt; corners but there are artefacts around them. Sorry, I thought that it&apos;s
&gt; related to this, but maybe it is separate issue?

Looks like a different issue. Please file a new bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955772</commentid>
    <comment_count>12</comment_count>
    <who name="coderitual">skowronkow</who>
    <bug_when>2023-05-16 15:31:37 -0700</bug_when>
    <thetext>I’ll do it, thanks Simon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>