<?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>67950</bug_id>
          
          <creation_ts>2011-09-12 13:04:56 -0700</creation_ts>
          <short_desc>-webkit-transform removes border-radius clipping on child nodes</short_desc>
          <delta_ts>2022-10-03 17:36:53 -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>Compositing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>68196</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=230636</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=140535</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=68196</see_also>
          <bug_file_loc>http://jsfiddle.net/DkXuR/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Niklas">niklas.nordlund</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adam.gamble</cc>
    
    <cc>arturs.vonda+webkit</cc>
    
    <cc>dbates</cc>
    
    <cc>fujii</cc>
    
    <cc>me</cc>
    
    <cc>shanestephens</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tyler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>465751</commentid>
    <comment_count>0</comment_count>
    <who name="Niklas">niklas.nordlund</who>
    <bug_when>2011-09-12 13:04:56 -0700</bug_when>
    <thetext>When using border-radius on parent element (with overflow:hidden) the child nodes are clipped according to the radius. However, is any -webkit-transform property is used on the parent or the child nodes the border-radius is lost.

Example available here: http://jsfiddle.net/DkXuR/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495310</commentid>
    <comment_count>1</comment_count>
    <who name="Aron Allen">me</who>
    <bug_when>2011-11-03 03:18:55 -0700</bug_when>
    <thetext>I can confirm this bug as well.

The latest Firefox release renders the content properly, but the rendering bug is in both Chrome and Safari at the moment.

Look at my switch project to see the big, and compare with the rendering in Firefox

http://aronallen.com/samples/switch/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538591</commentid>
    <comment_count>2</comment_count>
    <who name="Arturs Vonda">arturs.vonda+webkit</who>
    <bug_when>2012-01-19 03:33:24 -0800</bug_when>
    <thetext>I have observed same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>643579</commentid>
    <comment_count>3</comment_count>
    <who name="Tyler Crompton">tyler</who>
    <bug_when>2012-06-07 08:40:15 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; When using border-radius on parent element (with overflow:hidden) the child nodes are clipped according to the radius. However, is any -webkit-transform property is used on the parent or the child nodes the border-radius is lost.
&gt; 
&gt; Example available here: http://jsfiddle.net/DkXuR/

The border-radius is still there. It&apos;s just not hiding the overflowed content. See http://jsfiddle.net/DkXuR/5/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>831705</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-02-13 00:45:01 -0800</bug_when>
    <thetext>&lt;rdar://problem/13205704&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881296</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Gamble">adam.gamble</who>
    <bug_when>2022-07-07 05:39:18 -0700</bug_when>
    <thetext>I cannot reproduce the issue in original fiddle. But a very similar bug still exists: https://jsfiddle.net/3umcnxdv/

This happens when applying `translateZ` to a child element. 

As a workaround, setting `clip-path: border-box` to the outer element prevents overflow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882012</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-07-10 21:04:32 -0700</bug_when>
    <thetext>Anything that makes the border-radius element a css stacking context should fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882037</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Gamble">adam.gamble</who>
    <bug_when>2022-07-11 02:23:11 -0700</bug_when>
    <thetext>Thanks, yes I noticed `isolation: isolate` on the outer element also worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882578</commentid>
    <comment_count>8</comment_count>
      <attachid>460826</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-07-12 14:26:41 -0700</bug_when>
    <thetext>Created attachment 460826
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902958</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-10-03 15:32:28 -0700</bug_when>
    <thetext>https://jsfiddle.net/3umcnxdv/ and the attachment render as circles for me in recent builds. Is there any bug left here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902993</commentid>
    <comment_count>10</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-10-03 17:36:53 -0700</bug_when>
    <thetext>Nothing. 254253@main fixed the bug.

*** This bug has been marked as a duplicate of bug 68196 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460826</attachid>
            <date>2022-07-12 14:26:41 -0700</date>
            <delta_ts>2022-07-12 14:26:41 -0700</delta_ts>
            <desc>test case</desc>
            <filename>a.html</filename>
            <type>text/html</type>
            <size>432</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+Cgk8c3R5bGU+CgkgLm91dGVyIHsKICAg
ICAgICAgICAgIHdpZHRoOiAzMDBweDsKICAgICAgICAgICAgIGhlaWdodDogMzAwcHg7CiAgICAg
ICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgICAgICBvdmVyZmxvdzogaGlkZGVu
OwoJIH0KCSAuaW5uZXIgewogICAgICAgICAgICAgYmFja2dyb3VuZDogZ3JlZW47CiAgICAgICAg
ICAgICBoZWlnaHQ6IDEwMCU7CgkgICAgIHdpbGwtY2hhbmdlOiB0cmFuc2Zvcm07CgkgfQoJPC9z
dHlsZT4KICAgIDwvaGVhZD4KICAgIDxib2R5PgoJWW91IHNob3VsZCBzZWUgYSBncmVlbiBjaXJj
bGUuCgk8ZGl2IGNsYXNzPSJvdXRlciI+CgkgICAgPGRpdiBjbGFzcz0iaW5uZXIiPgoJICAgIDwv
ZGl2PgoJPC9kaXY+CiAgICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>