<?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>234639</bug_id>
          
          <creation_ts>2021-12-23 07:23:02 -0800</creation_ts>
          <short_desc>CSS transform: scale allied with box-shadow cause rendering glitch</short_desc>
          <delta_ts>2022-03-03 21:29:32 -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>Layout and Rendering</component>
          <version>Other</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>207586</dup_id>
          
          <bug_file_loc></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="Pedro Paulo">pedropaulosuzuki1</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1826552</commentid>
    <comment_count>0</comment_count>
      <attachid>447878</attachid>
    <who name="Pedro Paulo">pedropaulosuzuki1</who>
    <bug_when>2021-12-23 07:23:02 -0800</bug_when>
    <thetext>Created attachment 447878
Scales a div with a box-shadow and a transition

Hello everyone! Hope y&apos;all doing well!

Today I was testing one of my websites on GNOME Web 41.0 and I found out a visual glitch related to scaling (transform: scale(X);) when a box-shadow is applied (drop-shadow(0 0 shadow-size #hex-color;) and a transition (transition: transform transform-interval easing-function;) is also applied. It happened on a friend&apos;s iPhone too, on Safari. I created a minimal working example down below and I used a :hover state for applying the transform, as it seems to only happen when there is a back-and-forth with the container size. For you to reproduce, open the test file with a Webkit-based browser, then just hover over the green square. No issues seem to happen on Firefox and Chromium-based browsers, so it seems to be a Webkit issue.

## Minimal example:
```html
&lt;html&gt;
	&lt;head&gt;
		&lt;style&gt;
			body {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 100vw;
				height: 100vh;
			}
		
		    div {
				width: 180px;
				height: 270px;
				background-color: #7e7;
				filter: drop-shadow(0 0 50px #000f);
				transition: transform 50ms ease-in-out;
			}
			
			div:hover {
				transform: scale(1.2);
			}
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div&gt;&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;
```

Tested on GNOME Web 41.0 Flatpak (WebKitGTK 2.34.2) on Linux and on Safari in a friend&apos;s iPhone (probably up to date, but I cannot confirm if that holds true).

Might be related to #61234 (https://bugs.webkit.org/show_bug.cgi?id=61234), but I tested their example on GNOME Web 41.0 and it had no issues, so this issue seems to be different in some way, shape or form. (BTW, maybe #61234 can be closed? IDK).

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827243</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-30 07:23:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/87013865&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827989</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-01-04 10:08:06 -0800</bug_when>
    <thetext>Thanks for the report, I can reproduce. Looks bad!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848167</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-03-03 21:29:32 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 207586 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>447878</attachid>
            <date>2021-12-23 07:23:02 -0800</date>
            <delta_ts>2021-12-23 07:23:02 -0800</delta_ts>
            <desc>Scales a div with a box-shadow and a transition</desc>
            <filename>box_shadow_transform_scale.html</filename>
            <type>text/html</type>
            <size>430</size>
            <attacher name="Pedro Paulo">pedropaulosuzuki1</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8aGVhZD4KCQk8c3R5bGU+CgkJCWJvZHkgewoJCQkJZGlzcGxheTogZmxleDsKCQkJ
CWFsaWduLWl0ZW1zOiBjZW50ZXI7CgkJCQlqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKCQkJCXdp
ZHRoOiAxMDB2dzsKCQkJCWhlaWdodDogMTAwdmg7CgkJCX0KCQkKCQkgICAgZGl2IHsKCQkJCXdp
ZHRoOiAxODBweDsKCQkJCWhlaWdodDogMjcwcHg7CgkJCQliYWNrZ3JvdW5kLWNvbG9yOiAjN2U3
OwoJCQkJZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgNTBweCAjMDAwZik7CgkJCQl0cmFuc2l0aW9u
OiB0cmFuc2Zvcm0gNTBtcyBlYXNlLWluLW91dDsKCQkJfQoJCQkKCQkJZGl2OmhvdmVyIHsKCQkJ
CXRyYW5zZm9ybTogc2NhbGUoMS4yKTsKCQkJfQoJCTwvc3R5bGU+Cgk8L2hlYWQ+Cgk8Ym9keT4K
CQk8ZGl2PjwvZGl2PgoJPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>