godotengine / godotengine/godot
`clip_children` not working with new WebKit
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
Tested versions
- with 4.3.stable
- 4.4-dev2
- 4.6.stable
System information
M1 MacOS 15.0 (Safari 18.0), iOS 18.1. Tested with Forward+ and Compatibility
Issue description
WebKit (Safari on MacOS and all browsers on iOS) does not show the node when the clip_children value is set to anything other than Disabled.
But it seems like old WebKit doesn't have this issue:
air 2017
safari 16.4.1
mac os monterey 12.7.1
Iphone SE
iOS 15.8.2
Steps to reproduce
- Create Node
- Set clip_children to "Clip Only" or "Clip + Draw"
- Run in Browser
- Open in Safari
Minimal reproduction project (MRP)
Demo project: https://github.com/TABmk/godot4-webkit-mask-bug
Demo build: https://tabmk.github.io/godot4-webkit-mask-bug/webkit-mask-bug.html
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked minimal reproduction project and its demo build, following the listed steps in Safari on the reported macOS and iOS versions. Compare rendering with clip_children set to Disabled, Clip Only, and Clip + Draw; done means the node displays correctly for the non-Disabled settings in the affected WebKit environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100