<?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>233469</bug_id>
          
          <creation_ts>2021-11-24 01:06:57 -0800</creation_ts>
          <short_desc>iOS Safari CSS clip-path applied incorrectly inside overflow hidden container</short_desc>
          <delta_ts>2021-11-29 02:56:03 -0800</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>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>231852</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231852</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=126207</see_also>
          <bug_file_loc>https://codepen.io/jelmerdemaat/pen/WNEPjJO</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="Jelmer de Maat">post</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817600</commentid>
    <comment_count>0</comment_count>
      <attachid>445078</attachid>
    <who name="Jelmer de Maat">post</who>
    <bug_when>2021-11-24 01:06:57 -0800</bug_when>
    <thetext>Created attachment 445078
HTML file showing the bug on iOS

Bug #231852 status is RESOLVED FIXED, but it isn&apos;t fixed.

Attached HTML file shows multiple examples of an incorrectly applied CSS `clip-path` when the parent element has an `overflow` of:

- hidden
- auto
- overlay
- scroll

The `clip-path` is correctly restored when an animation is applied to the target element. Note that the defined SVG clip path has an attribute of clipPathUnits=&quot;objectBoundingBox&quot;.

This happens on iOS Safari in every version I test it with (13, 14, 15).

When `transform: translate3d(0,0,0):` is applied to the target &lt;img&gt; element, the entire element disappears. Not sure if related to this issue.

This last issue also appears in Safari for macOS.

Link to the same attachment as Codepen demo: https://codepen.io/jelmerdemaat/pen/WNEPjJO</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818106</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-11-28 17:42:36 -0800</bug_when>
    <thetext>Bug 231852 was fixed just a month ago, and the fix hasn&apos;t shipped in iOS yet (we cannot discuss the timeline of when it will ship). You can verify the fix on macOS with Safari Technology Preview.

&gt; When `transform: translate3d(0,0,0):` is applied to the target &lt;img&gt; element, the entire element disappears. Not sure if related to this issue.

This still reproduces. Please file a new report if you believe this to be a WebKit bug.

*** This bug has been marked as a duplicate of bug 231852 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818136</commentid>
    <comment_count>2</comment_count>
    <who name="Jelmer de Maat">post</who>
    <bug_when>2021-11-28 23:54:46 -0800</bug_when>
    <thetext>Thanks, works in Safari Technology Preview indeed. Sorry I hadn&apos;t realised it being fixed already.

Will take a closer look at the other issue and submit a new one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818171</commentid>
    <comment_count>3</comment_count>
    <who name="Jelmer de Maat">post</who>
    <bug_when>2021-11-29 02:56:03 -0800</bug_when>
    <thetext>Created a new issue at https://bugs.webkit.org/show_bug.cgi?id=233553</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>445078</attachid>
            <date>2021-11-24 01:06:57 -0800</date>
            <delta_ts>2021-11-24 01:06:57 -0800</delta_ts>
            <desc>HTML file showing the bug on iOS</desc>
            <filename>ios-clip-path.html</filename>
            <type>text/html</type>
            <size>2371</size>
            <attacher name="Jelmer de Maat">post</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDxtZXRhIGNoYXJz
ZXQ9IlVURi04IiAvPgoKICAgIDx0aXRsZT5CdWcgU1ZHIGNsaXAgcGF0aCBvbiBpT1M8L3RpdGxl
PgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwg
aW5pdGlhbC1zY2FsZT0xIiAvPgogICAgPGxpbmsKICAgICAgcmVsPSJzdHlsZXNoZWV0IgogICAg
ICBocmVmPSJodHRwczovL2NkbmpzLmNsb3VkZmxhcmUuY29tL2FqYXgvbGlicy9ub3JtYWxpemUv
NS4wLjAvbm9ybWFsaXplLm1pbi5jc3MiCiAgICAvPgoKICAgIDxzdHlsZT4KICAgICAgaW1nLAog
ICAgICAuc3F1YXJlIHsKICAgICAgICAtd2Via2l0LWNsaXAtcGF0aDogdXJsKCNib3ctc2hhcGUp
OwogICAgICAgIGNsaXAtcGF0aDogdXJsKCNib3ctc2hhcGUpOwogICAgICB9CgogICAgICAuY29u
dGFpbmVyIHsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAuY29ycmVj
dGVkIHsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDAsIDAsIDApOwogICAgICB9Cgog
ICAgICAuc3F1YXJlIHsKICAgICAgICB3aWR0aDogMjUwcHg7CiAgICAgICAgaGVpZ2h0OiAyNTBw
eDsKICAgICAgICBiYWNrZ3JvdW5kOiBibHVldmlvbGV0OwogICAgICB9CgogICAgICBAa2V5ZnJh
bWVzIHNsaWRlIHsKICAgICAgICB0byB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgo
MTAwJSk7CiAgICAgICAgfQogICAgICB9CgogICAgICAuY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ZGU+IGluc2lkZQogICAgICAgIDxj
b2RlPm92ZXJmbG93OiBoaWRkZW47PC9jb2RlPiBjb250YWluZXI6CiAgICAgIDwvcD4KCiAgICAg
IDxpbWcgc3JjPSJodHRwczovL3BsYWNlaW1nLmNvbS8yNTAvMjUwL25hdHVyZSIgd2lkdGg9IjI1
MCIgaGVpZ2h0PSIyNTAiIC8+CiAgICA8L2Rpdj4KCiAgICA8ZGl2IGNsYXNzPSJjb250YWluZXIi
PgogICAgICA8cD4KICAgICAgICBDbGlwcGVkIChidXQgaW52aXNpYmxlPykgPGNvZGU+Jmx0O2lt
ZyZndDs8L2NvZGU+IGluc2lkZQogICAgICAgIDxjb2RlPm92ZXJmbG93OiBoaWRkZW47PC9jb2Rl
PiBjb250YWluZXIgYmVjYXVzZSBvZgogICAgICAgIDxjb2RlPnRyYW5zZm9ybTogdHJhbnNsYXRl
M2QoMCwwLDApPC9jb2RlPjoKICAgICAgPC9wPgoKICAgICAgPGltZwogICAgICAgIHNyYz0iaHR0
cHM6Ly9wbGFjZWltZy5jb20vMjUwLzI1MC9uYXR1cmUiCiAgICAgICAgd2lkdGg9IjI1MCIKICAg
ICAgICBoZWlnaHQ9IjI1MCIKICAgICAgICBjbGFzcz0iY29ycmVjdGVkIgogICAgICAvPgogICAg
PC9kaXY+CgogICAgPGRpdiBjbGFzcz0iY29udGFpbmVyIj4KICAgICAgPHA+V3JvbmdseSBjbGlw
cGVkIGRpdjo8L3A+CiAgICAgIDxkaXYgY2xhc3M9InNxdWFyZSI+PC9kaXY+CiAgICA8L2Rpdj4K
CiAgICA8ZGl2IGNsYXNzPSJjb250YWluZXIiPgogICAgICA8cD5Db3JyZWN0bHkgY2xpcHBlZCBk
aXYsIGFuaW1hdGluZzo8L3A+CiAgICAgIDxkaXYgY2xhc3M9InNxdWFyZSBhbmltYXRpbmciPjwv
ZGl2PgogICAgPC9kaXY+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>