Bug 241641

Summary: Transformed element with overflow:hidden fails to clip positioned descendants
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, fred.wang, glenn, Hironori.Fujii, koivisto, kondapallykalyan, mrobinson, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=114338
https://bugs.webkit.org/show_bug.cgi?id=229999
https://bugs.webkit.org/show_bug.cgi?id=242673
Attachments:
Description Flags
Testcase
none
WIP patch
none
test case 2
none
WIP patch
none
Patch none

Description Simon Fraser (smfr) 2022-06-15 12:03:02 PDT
Created attachment 460257 [details]
Testcase

See testcase; transform creates containing block for positioned descendants, but we fail to account for that when clipping.
Comment 1 Radar WebKit Bug Importer 2022-06-22 12:03:17 PDT
<rdar://problem/95711859>
Comment 2 Fujii Hironori 2022-07-06 21:58:13 PDT
Created attachment 460729 [details]
WIP patch
Comment 3 Simon Fraser (smfr) 2022-07-06 22:05:30 PDT
Comment on attachment 460729 [details]
WIP patch

This code should use canContainFixedPositionObjects()/canContainAbsolutelyPositionedObjects() so that it has the right behavior for will-change, filters etc.
Comment 4 Fujii Hironori 2022-07-07 14:38:16 PDT
Created attachment 460746 [details]
test case 2

Thank you for the advise.
Comment 5 Fujii Hironori 2022-07-07 18:10:15 PDT
Created attachment 460753 [details]
WIP patch
Comment 6 Fujii Hironori 2022-07-10 22:49:34 PDT
Created attachment 460788 [details]
Patch
Comment 7 Fujii Hironori 2022-07-12 13:03:04 PDT
*** Bug 229999 has been marked as a duplicate of this bug. ***
Comment 8 EWS 2022-07-12 13:25:47 PDT
Committed 252387@main (c35d5dd9cfd7): <https://commits.webkit.org/252387@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 460788 [details].