<?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>140535</bug_id>
          
          <creation_ts>2015-01-15 20:23:11 -0800</creation_ts>
          <short_desc>Border-radius clip of non-stacking composited descendant doesn&apos;t work</short_desc>
          <delta_ts>2022-08-31 14:40:14 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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=216978</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=230636</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=231360</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=238983</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=67950</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=244337</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>bicknellr</cc>
    
    <cc>kandalkar.abhijeet58</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>sun.shin</cc>
    
    <cc>thorton</cc>
    
    <cc>timdream</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1061758</commentid>
    <comment_count>0</comment_count>
      <attachid>244746</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-15 20:23:11 -0800</bug_when>
    <thetext>Created attachment 244746
Testcase

Attached testcase shows a big blue rectangle on Mac; it should get radius clipping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061776</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-15 22:03:52 -0800</bug_when>
    <thetext>I have a fix for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061782</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-15 22:17:44 -0800</bug_when>
    <thetext>Actually I take that back. This is the non-stacking context case, where we use m_ancestorClippingLayer, which is going to also need a mask equivalent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1062397</commentid>
    <comment_count>3</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2015-01-19 10:37:36 -0800</bug_when>
    <thetext>I guess it is came from the Container didn’t participate in overlap detection, so it couldn&apos;t clip child layer since later painting order of graphics layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211156</commentid>
    <comment_count>4</comment_count>
      <attachid>283687</attachid>
    <who name="Russell Bicknell">bicknellr</who>
    <bug_when>2016-07-14 14:48:28 -0700</bug_when>
    <thetext>Created attachment 283687
extra examples w/ exaggerated offsets

I found something recently that seems very closely related to this bug: composited descendants are positioned slightly differently than their ancestors. If the ancestor has a non-integer top or left (either set directly or during an animation) the descendant is sometimes positioned up or left by one *device* pixel. Maybe composited elements are aligned with floor and non-composited with normal rounding?

In the attached page, the examples labeled &quot;scale3d transform&quot; show both this bug and the positioning thing I mentioned. However, the two cases at the bottom might go against my float vs. normal rounding possibility: If top / left of the parent are integers but a transform applied to it translates it by some non-integer amount, then there isn&apos;t any noticeable difference in the positions of the parent and child. If the top / left of the parent are *not* integers, then you can still see the slight offset of the parent and child - even with a zero translate3d transform applied to the parent.

Also, if you zoom the page, you&apos;ll notice the offsets change but are never larger than one device pixel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211177</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-07-14 15:27:47 -0700</bug_when>
    <thetext>Please file that issue in a new bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211225</commentid>
    <comment_count>6</comment_count>
    <who name="Russell Bicknell">bicknellr</who>
    <bug_when>2016-07-14 16:36:02 -0700</bug_when>
    <thetext>Filed as 159794.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1681419</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-19 11:22:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/67414831&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1796161</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-09-22 12:05:51 -0700</bug_when>
    <thetext>*** Bug 216065 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895280</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-31 14:40:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 68196 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>244746</attachid>
            <date>2015-01-15 20:23:11 -0800</date>
            <delta_ts>2015-01-15 20:23:11 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>radius-clip-descendants.html</filename>
            <type>text/html</type>
            <size>566</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgICAgLmNvbnRh
aW5lciB7CiAgICAgICAgICAgIHdpZHRoOiA0MDBweDsKICAgICAgICAgICAgaGVpZ2h0OiAzMDBw
eDsKICAgICAgICAgICAgYm9yZGVyOiAycHggc29saWQgYmxhY2s7CiAgICAgICAgICAgIGJvcmRl
ci1yYWRpdXM6IDMwJTsKICAgICAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICB9CiAg
ICAgICAgCiAgICAgICAgLmNoaWxkIHsKICAgICAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAg
ICAgICB3aWR0aDogMTAwJTsKICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogYmx1ZTsKICAg
ICAgICB9CiAgICAgICAgCiAgICAgICAgLmNvbXBvc2l0ZWQgewogICAgICAgICAgICAtd2Via2l0
LXRyYW5zZm9ybTogdHJhbnNsYXRlWigwKTsKICAgICAgICB9CiAgICAgICAgCiAgICA8L3N0eWxl
Pgo8L2hlYWQ+Cjxib2R5Pgo8ZGl2IGNsYXNzPSJjb250YWluZXIiPgogICAgPGRpdiBjbGFzcz0i
Y29tcG9zaXRlZCBjaGlsZCI+CiAgICA8L2Rpdj4KPC9kaXY+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>283687</attachid>
            <date>2016-07-14 14:48:28 -0700</date>
            <delta_ts>2016-07-14 14:48:28 -0700</delta_ts>
            <desc>extra examples w/ exaggerated offsets</desc>
            <filename>scale3d-bug.html</filename>
            <type>text/html</type>
            <size>2771</size>
            <attacher name="Russell Bicknell">bicknellr</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlPgogICAgICBib2R5IHsK
ICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjIyOwogICAgICAgIGNvbG9yOiAjY2NjOwogICAg
ICB9CgogICAgICAuY29udGFpbmVyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAg
ICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgIH0KCiAgICAgIEBr
ZXlmcmFtZXMgc2xpZGUtYW5pbWF0aW9uIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0b3A6IDIw
cHg7CiAgICAgICAgICBsZWZ0OiAyMHB4OwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAg
ICAgIHRvcDogMTIwcHg7CiAgICAgICAgICBsZWZ0OiAyMjBweDsKICAgICAgICB9CiAgICAgIH0K
CiAgICAgIC5zbGlkZS1hbmltYXRpb24gewogICAgICAgIGFuaW1hdGlvbjogNjBzIGxpbmVhciBp
bmZpbml0ZSBzbGlkZS1hbmltYXRpb247CiAgICAgIH0KCiAgICAgIC5jaXJjbGUgewogICAgICAg
IHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDIwcHg7CiAgICAgICAgbGVmdDogMjBw
eDsKICAgICAgICBoZWlnaHQ6IDYwcHg7CiAgICAgICAgd2lkdGg6IDYwcHg7CiAgICAgICAgYmFj
a2dyb3VuZDogcmdiYSgwLCAyNTUsIDI1NSwgMSk7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsK
ICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgIH0KCiAgICAgIC5jaXJjbGUgPiAuY29u
dGVudCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGNvbnRlbnQ6ICcnOwog
ICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAg
ICAgIGhlaWdodDogMTAwJTsKICAgICAgICBiY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