<?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>223507</bug_id>
          
          <creation_ts>2021-03-19 04:31:36 -0700</creation_ts>
          <short_desc>Clipping with border-radius is not applied when there is a css transform and it is in a scrollable container</short_desc>
          <delta_ts>2021-03-20 03:12: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>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>216978</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="Brendan Donovan">brendan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741661</commentid>
    <comment_count>0</comment_count>
      <attachid>423717</attachid>
    <who name="Brendan Donovan">brendan</who>
    <bug_when>2021-03-19 04:31:36 -0700</bug_when>
    <thetext>Created attachment 423717
Reproduction of the bug

Overview:
Clipping using overflow: hidden and a border-radius stops working if a css transform (e.g. transform: scale(1)) is also applied AND it is in a scrollable container.

Demo:
https://codepen.io/brendandonovan/pen/gOLJgyx

Steps to reproduce:
1. Open the above link
2. Observe the second div in the scrollable container

Actual Behaviour:
When a div with overflow:hidden and a border radius has also has transform: scale(1) and is within a scrollable container it stops clipping the inner content.

Expected behaviour:
A div with overflow:hidden and a border-radius should continue to clip the inner content when it has a css transform applied and it is within a scrollable container.

Build Date &amp; Hardware: Date and hardware of the build in which you first encountered the bug.
Safari Version 14.0.3 (16610.4.3.1.7), macOS Big Sur 11.2.3 (20D91)

Additional Builds and Platforms:
Works as intended in Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741737</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-03-19 09:26:33 -0700</bug_when>
    <thetext>I think this is a dup of bug 216978.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742001</commentid>
    <comment_count>2</comment_count>
    <who name="Brendan Donovan">brendan</who>
    <bug_when>2021-03-20 03:12:53 -0700</bug_when>
    <thetext>Sorry, I was thrown off by the hover state in the description and did not notice the overflow condition in bug [216978](https://bugs.webkit.org/show_bug.cgi?id=216978). This is a duplicate.

*** This bug has been marked as a duplicate of bug 216978 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>423717</attachid>
            <date>2021-03-19 04:31:36 -0700</date>
            <delta_ts>2021-03-19 04:31:36 -0700</delta_ts>
            <desc>Reproduction of the bug</desc>
            <filename>Testcase.html</filename>
            <type>text/html</type>
            <size>963</size>
            <attacher name="Brendan Donovan">brendan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIiBkaXI9Imx0ciI+CiAgPGhlYWQ+CiAgICA8
bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAgICA8dGl0bGU+Qm9yZGVyLXJhZGl1cyBjbGlwcGluZyBw
cm9ibGVtPC90aXRsZT4KICAgIDxzdHlsZSBtZWRpYT0ic2NyZWVuIj4KICAgICAgLnNjcm9sbGVy
IHsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAg
aGVpZ2h0OiAyMDBweDsKICAgICAgICBib3JkZXI6IHNvbGlkIDJweCBibHVlOwogICAgICB9Cgog
ICAgICAuYm94IHsKICAgICAgICBtYXJnaW46IDIwcHggMCAyMHB4OwogICAgICAgIHdpZHRoOiAx
MDBweDsKICAgICAgICBoZWlnaHQ6IDEwMHB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7
CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICBib3JkZXI6IHNvbGlkIDFweCBibGFj
azsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CgogICAgICAuYnVnIHsK
ICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDEpOwogICAgICB9CgogICAgICAuY29udGVudHMgewog
ICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBiYWNrZ3Jv
dW5kLWNvbG9yOiByZWQ7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9oZWFkPgogIDxib2R5Pgog
ICAgPGRpdiBjbGFzcz0ic2Nyb2xsZXIiPgogICAgICA8ZGl2IGNsYXNzPSJib3giPgogICAgICAg
IDxkaXYgY2xhc3M9ImNvbnRlbnRzIj48L2Rpdj4KICAgICAgPC9kaXY+CiAgICAgIDxkaXYgY2xh
c3M9ImJveCBidWciPgogICAgICAgIDxkaXYgY2xhc3M9ImNvbnRlbnRzIj48L2Rpdj4KICAgICAg
PC9kaXY+CiAgICA8L2Rpdj4KICAgIDxkaXYgY2xhc3M9ImJveCBidWciPgogICAgICA8ZGl2IGNs
YXNzPSJjb250ZW50cyI+PC9kaXY+CiAgICA8L2Rpdj4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>