Bug 175018

Summary: Border radius clipping does not correctly disable for descendants when using `will-transform`
Product: WebKit Reporter: eelco
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, dino, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.13   

Description eelco 2017-08-01 05:44:03 PDT
Live example here: https://jsfiddle.net/nxja91tc/4/

If there’s HTML like this:
<div id="outer">
<div id="inner">
</div>
</div>

With CSS like this:
div {
  width: 100px;
  height: 100px;  
}
#inner {
  background-color: blue;
  will-change: transform;
}
#outer {
  overflow: hidden;
  border-radius: 20px;
  background-color: red;
  will-change: transform;
}

Then disabling the border-radius of #outer (with JavaScript) to 0px will indeed disable the border radius, but only for #outer. The #inner div will stay clipped, causing red corners to show that should have been overlapped with blue.
Comment 1 Radar WebKit Bug Importer 2017-08-01 17:06:30 PDT
<rdar://problem/33666350>
Comment 2 Simon Fraser (smfr) 2017-08-01 22:18:58 PDT
We have a dup of this filed.
Comment 3 Ahmad Saleem 2023-08-16 15:43:05 PDT
I am not able to reproduce this bug in Safari 16.6 and STP176 and both matches with Chrome Canary 118 and Firefox Nightly 118 on linked JSFiddle.

Marking this as "RESOLVED CONFIGURATION CHANGED".