Bug 263862 - Filters are recalculated for each clipping area containing a webgl canvas
Summary: Filters are recalculated for each clipping area containing a webgl canvas
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Compositing (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-29 19:48 PDT by Kaiido
Modified: 2023-10-30 11:44 PDT (History)
2 users (show)

See Also:


Attachments
photo of the issue (270.83 KB, image/jpeg)
2023-10-29 19:48 PDT, Kaiido
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kaiido 2023-10-29 19:48:12 PDT
Created attachment 468406 [details]
photo of the issue

See this codepen: https://codepen.io/_-0-_/pen/RwvaPNN).  

When clipping a filtered WebGL canvas element the filter seems to be calculated from the clipped area instead of from the element's box.
This does happen only for when there is a WebGL canvas inside the filtered content, i.e. when the canvas requests a 2D context, it works as expected.

Also, it seems the filter is applied once more on the <body> tag, as can be seen when shrinking the frame vertically in the liked demo.

And one more peculiarity, trying to take a screenshot (macOS "Screenshot" app), the bug disappears from the screenshot, so I attach a photo of what I see, and beware that automated tests may be incorrect.
Comment 1 Radar WebKit Bug Importer 2023-10-30 11:44:45 PDT
<rdar://problem/117697558>